namemkazaza

Счет древних шизов

Sep 21st, 2020
1,003
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. f = open("input.txt", 'r')
  2. a = int(f.readline())
  3. b = int(f.readline())
  4. f.close()
  5. c = a+b
  6. f2 = open("output.txt", 'w')
  7. if c % 2 == 0:
  8.     f2.write(str(c//2))
  9. else:
  10.     f2.write(str(c//2)+'.5')
  11.     f2.close()
RAW Paste Data