fork(4) download
  1. def hoge():
  2. result = 0
  3. try:
  4. while True:
  5. line = map(int, raw_input().split())
  6. result += max(line)
  7. except EOFError:
  8. return result
  9.  
  10. if __name__=='__main__':
  11. print hoge()
Success #stdin #stdout 0.01s 7900KB
stdin
1 2 3 4 5
6 7 8 9 10
stdout
15