Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open("input.txt", 'r')
- a = int(f.readline())
- b = int(f.readline())
- f.close()
- c = a+b
- f2 = open("output.txt", 'w')
- if c % 2 == 0:
- f2.write(str(c//2))
- else:
- f2.write(str(c//2)+'.5')
- f2.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement