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