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 27, 2024 13:43GraceGraceScore: 6,388Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:436,36680,190,52051,841,000996,0002,383,872
2May 27, 2024 13:436,36977,612,68350,868,0001,994,0002,260,992
3May 27, 2024 13:436,36984,771,62150,866,0001,994,0002,260,992
4May 27, 2024 13:436,37079,703,39450,879,0001,995,0002,260,992
5May 27, 2024 13:436,37079,959,53850,877,0001,995,0002,387,968
6May 27, 2024 13:436,37381,038,76950,897,0001,995,0002,523,136
7May 27, 2024 13:436,37380,125,40550,900,0001,996,0002,260,992
8May 27, 2024 13:436,37576,368,64650,915,0001,996,0002,383,872
9May 27, 2024 13:436,37678,939,45850,925,0001,997,0002,396,160
10May 27, 2024 13:436,37782,303,31950,928,0001,997,0002,375,680
11May 27, 2024 13:436,38079,758,69051,954,000999,0002,490,368
12May 27, 2024 13:436,38176,012,08350,967,0001,998,0002,260,992
13May 27, 2024 13:436,38278,325,50150,974,0001,999,0002,392,064
14May 27, 2024 13:436,38482,119,26150,992,0001,999,0002,523,136
15May 27, 2024 13:436,38677,651,51752,006,0001,000,0002,260,992
16May 27, 2024 13:436,38883,028,36351,020,0002,000,0002,383,872
17May 27, 2024 13:436,38984,550,14652,031,0001,000,0002,260,992
18May 27, 2024 13:436,425113,250,85953,327,72502,269,184
19May 27, 2024 13:436,430119,031,86753,368,66902,273,280
20May 27, 2024 13:436,432125,351,06753,384,50202,265,088
21May 27, 2024 13:436,433112,172,92153,397,40302,277,376
22May 27, 2024 13:436,444131,432,18953,482,74402,265,088
23May 27, 2024 13:436,48581,929,11252,826,000996,0002,260,992
24May 27, 2024 13:436,593117,105,24854,719,31002,260,992
25May 27, 2024 13:437,76394,391,94963,431,0001,006,0002,260,992
26May 27, 2024 13:437,78491,846,68463,601,0001,009,0002,519,040
27May 27, 2024 13:437,79093,133,17964,659,00002,379,776
28May 27, 2024 13:437,80594,995,66962,785,0001,993,0002,387,968
29May 27, 2024 13:437,80791,663,20463,800,000996,0002,260,992
30May 27, 2024 13:437,92887,922,03165,803,00002,260,992