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 21:57Joad NacerJoad NacerScore: 8,533Success
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 21:578,24392,302,90767,414,0001,006,0002,273,280
2May 9, 2024 21:578,25190,801,13466,473,0002,014,0002,281,472
3May 9, 2024 21:578,26297,251,66368,577,00002,281,472
4May 9, 2024 21:578,29598,219,18766,855,0001,995,0002,523,136
5May 9, 2024 21:578,29695,737,88466,860,0001,995,0002,281,472
6May 9, 2024 21:578,30389,473,08266,922,0001,997,0002,379,776
7May 9, 2024 21:578,517144,107,20570,690,75602,269,184
8May 9, 2024 21:578,533149,566,01370,823,25302,269,184
9May 9, 2024 21:578,737143,097,16072,517,07502,277,376
10May 9, 2024 21:578,85196,111,04972,459,0001,006,0002,281,472
11May 9, 2024 21:578,96896,399,37873,430,0001,005,0002,281,472
12May 9, 2024 21:579,139102,360,88173,856,0001,996,0002,523,136
13May 9, 2024 21:579,158103,223,07774,012,0002,000,0002,281,472
14May 9, 2024 21:579,170101,040,52174,111,0002,003,0002,281,472
15May 9, 2024 21:579,178103,718,02974,170,0002,004,0002,281,472