Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listMay 23, 2025 12:17vahookvahookError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2025 12:1600000Error: expected "53686674261165329 ", got "53686671082915175 "stderr
2May 23, 2025 12:174,40458,160,91833,507,0003,046,0002,437,120
3May 23, 2025 12:174,41963,987,19832,600,0004,075,0002,273,280
4May 23, 2025 12:174,43766,538,00232,848,0003,981,0002,428,928
5May 23, 2025 12:174,43960,981,43333,855,0002,987,0002,465,792
6May 23, 2025 12:174,44262,255,76532,775,0004,096,0002,424,832
7May 23, 2025 12:174,45465,207,17134,971,0001,998,0002,273,280
8May 23, 2025 12:174,46361,289,70634,042,0003,003,0002,433,024
9May 23, 2025 12:174,50766,693,18634,378,0003,033,0002,531,328
10May 23, 2025 12:174,52460,368,02634,509,0003,044,0002,428,928
11May 23, 2025 12:174,52868,715,42634,539,0003,047,0002,469,888
12May 23, 2025 12:174,56961,157,13633,932,0003,992,0002,428,928
13May 23, 2025 12:174,58859,962,39335,077,0003,006,0002,420,736