Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fin = open('input.txt', 'r', encoding='utf-8')
- fout = open('output.txt', 'w', encoding='utf-8')
- tables = 0
- for line in fin:
- tables += (int(line) - 1) // 2 + 1
- print(tables, file=fout)
- fin.close()
- fout.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement