Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. fin = open('input.txt', 'r', encoding='utf-8')
  2. fout = open('output.txt', 'w', encoding='utf-8')
  3.  
  4. tables = 0
  5.  
  6. for line in fin:
  7. tables += (int(line) - 1) // 2 + 1
  8.  
  9. print(tables, file=fout)
  10. fin.close()
  11. fout.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement