fork(1) download
  1. def nwd(a, b):
  2. while b != 0:
  3. pom = b
  4. b = a % b
  5. a = pom
  6. return a
  7. def ile(goscie, gospodarze):
  8. pom = nwd(goscie, gospodarze)
  9. return goscie // pom + gospodarze // pom
  10. print(ile(35,25))
  11.  
  12.  
Success #stdin #stdout 0.09s 14136KB
stdin
Standard input is empty
stdout
12