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 listDec 11, 2023 04:26sliceteamsliceteamScore: 8,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 04:268,10993,976,36966,298,0001,004,0002,490,368
2Dec 11, 2023 04:268,14493,886,99266,591,0001,008,0002,306,048
3Dec 11, 2023 04:268,15097,780,40265,655,0001,989,0002,445,312
4Dec 11, 2023 04:268,48399,026,58770,408,00002,478,080
5Dec 11, 2023 04:268,49494,177,95070,497,00002,506,752
6Dec 11, 2023 04:268,50199,698,10870,559,00002,482,176
7Dec 11, 2023 04:268,50196,889,17869,548,0001,007,0002,473,984
8Dec 11, 2023 04:268,52995,714,79369,796,000997,0002,469,888
9Dec 11, 2023 04:268,60193,981,98270,380,0001,005,0002,465,792
10Dec 11, 2023 04:268,641102,361,08570,709,0001,010,0002,428,928
11Dec 11, 2023 04:268,66994,850,69869,951,0001,998,0002,449,408
12Dec 11, 2023 04:268,85497,740,97073,492,00002,506,752
13Dec 11, 2023 04:269,288133,328,91377,088,74102,277,376
14Dec 11, 2023 04:269,399140,150,78678,012,24002,265,088
15Dec 11, 2023 04:269,680134,682,09080,347,01102,248,704