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 21, 2025 20:15vahookvahookError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2025 20:1300000Error: expected "53691631292379642 ", got "53691628114129488 "stderr
2May 21, 2025 20:154,47560,187,05533,131,0004,015,0002,273,280
3May 21, 2025 20:154,48057,870,76233,167,0004,020,0002,273,280
4May 21, 2025 20:154,48658,589,64534,218,0003,019,0002,461,696
5May 21, 2025 20:154,48754,456,64735,227,0002,013,0002,469,888
6May 21, 2025 20:154,49562,004,17833,278,0004,033,0002,273,280
7May 21, 2025 20:154,49861,638,09035,314,0002,017,0002,273,280
8May 21, 2025 20:154,50762,156,62335,385,0002,022,0002,433,024
9May 21, 2025 20:154,50764,581,84535,390,0002,022,0002,428,928
10May 21, 2025 20:154,51561,986,10835,446,0002,025,0002,433,024
11May 21, 2025 20:154,52570,446,79333,495,0004,060,0002,273,280
12May 21, 2025 20:154,53963,396,48335,641,0002,036,0002,424,832
13May 21, 2025 20:154,61260,657,16436,264,0002,014,0002,273,280