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 9, 2024 22:23Steve HanSteve HanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 22:2900000Error: expected "53684815240482891 ", got "53684815214882891"
2May 9, 2024 22:2900000Error: expected "53681975440535121 ", got "53681972880509521"
3May 9, 2024 22:2800000Error: expected "53686598644761542 ", got "53686529821576390"
4May 9, 2024 22:2800000Error: expected "53684527415081820 ", got "53684370076120924"
5May 9, 2024 22:2700000Error: expected "53680613528875672 ", got "53329110882573464"
6May 9, 2024 22:279,253140,680,70376,797,44502,277,376
7May 9, 2024 22:349,254142,694,60576,807,02202,269,184
8May 9, 2024 22:379,254141,211,39376,810,88102,277,376
9May 9, 2024 22:379,256140,488,66276,823,31102,277,376
10May 9, 2024 22:279,258147,107,74876,838,72902,277,376
11May 9, 2024 22:379,280148,974,29077,020,94802,273,280
12May 9, 2024 22:269,331148,886,94477,450,49902,277,376
13May 9, 2024 22:269,337131,994,68077,497,28502,277,376
14May 9, 2024 22:239,359138,598,11377,677,78202,277,376
15May 9, 2024 22:239,362133,945,08377,700,91702,281,472
16May 9, 2024 22:269,362146,489,59877,703,82802,285,568
17May 9, 2024 22:349,516137,691,69778,986,36802,281,472
18May 9, 2024 22:279,525140,932,94979,058,02202,252,800
19May 9, 2024 22:349,533144,404,29679,123,11602,281,472
20May 9, 2024 22:239,558152,354,74579,333,22702,281,472