fork download
  1. file = open('mod.in')
  2. data = file.read()
  3.  
  4. a=int(data[0])
  5. b=int(data[1])
  6. file.close()
  7. ot=1
  8. for i in range(max(a,b)):
  9. if a%(i+2)==b%(i+2):
  10. ot=i+2
  11. break
  12.  
  13. print(ot)
  14. file = open('mod.out','w')
  15. file.write(ot)
  16. file.close()
  17.  
Runtime error #stdin #stdout #stderr 0.12s 23604KB
stdin
1000000000
987989797
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'mod.in'