import sys result = 0 for line in sys.stdin: result += int(line) print(result)
1 2 3 4 5 6 | import sys result = 0 for line in sys.stdin: result += int(line) print(result) |
import sys result = 0 for line in sys.stdin: result += int(line) print(result)
1 2 3 4 5 6 | import sys result = 0 for line in sys.stdin: result += int(line) print(result) |