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 31, 2024 09:52GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 09:5200000Error: expected "53685971915964231 ", got "53686121984639467 "
2May 31, 2024 09:525,09365,299,91841,265,0001,006,0002,396,160
3May 31, 2024 09:525,09465,248,00440,271,0002,013,0002,273,280
4May 31, 2024 09:525,09470,165,22841,271,0001,006,0002,273,280
5May 31, 2024 09:525,10067,614,04241,327,0001,007,0002,392,064
6May 31, 2024 09:525,10665,867,13342,376,00002,273,280
7May 31, 2024 09:525,10768,963,35641,383,0001,009,0002,273,280
8May 31, 2024 09:525,10764,186,59241,376,0001,009,0002,273,280
9May 31, 2024 09:525,10866,575,07641,384,0001,009,0002,400,256
10May 31, 2024 09:525,10974,635,09742,402,00002,273,280
11May 31, 2024 09:525,10969,249,63141,395,0001,009,0002,273,280
12May 31, 2024 09:525,11068,858,83942,417,00002,273,280
13May 31, 2024 09:525,11163,341,97141,409,0001,009,0002,273,280
14May 31, 2024 09:525,11264,979,46241,416,0001,010,0002,408,448
15May 31, 2024 09:525,11462,641,67541,438,0001,010,0002,281,472
16May 31, 2024 09:525,11570,108,90841,442,0001,010,0002,408,448
17May 31, 2024 09:525,11763,012,52142,472,00002,404,352
18May 31, 2024 09:525,11764,835,00542,471,00002,510,848
19May 31, 2024 09:525,11968,967,02641,480,0001,011,0002,273,280
20May 31, 2024 09:525,11962,138,78241,475,0001,011,0002,408,448
21May 31, 2024 09:525,12067,034,06041,486,0001,011,0002,273,280
22May 31, 2024 09:525,12064,111,74841,486,0001,011,0002,396,160
23May 31, 2024 09:525,12272,723,70042,510,00002,387,968
24May 31, 2024 09:525,12565,425,20241,529,0001,012,0002,273,280
25May 31, 2024 09:525,12669,769,60342,546,00002,396,160
26May 31, 2024 09:525,12663,679,62441,534,0001,013,0002,273,280
27May 31, 2024 09:525,12961,244,11541,554,0001,013,0002,396,160
28May 31, 2024 09:525,13271,545,01242,592,00002,408,448
29May 31, 2024 09:526,382118,336,97652,969,10802,285,568
30May 31, 2024 09:526,391104,173,43353,046,51302,289,664
31May 31, 2024 09:526,398109,544,04853,105,41202,281,472
32May 31, 2024 09:526,403124,692,62153,148,70702,293,760
33May 31, 2024 09:526,40375,711,42751,144,0002,005,0002,273,280
34May 31, 2024 09:526,403113,506,81853,148,19902,277,376
35May 31, 2024 09:526,413123,167,68553,225,91902,285,568
36May 31, 2024 09:526,415126,000,01753,241,64102,281,472
37May 31, 2024 09:526,42180,990,12551,286,0002,011,0002,273,280
38May 31, 2024 09:526,42475,907,96852,314,0001,006,0002,273,280
39May 31, 2024 09:526,425131,552,69053,331,06102,281,472
40May 31, 2024 09:526,42978,560,91752,357,0001,006,0002,387,968
41May 31, 2024 09:526,43672,949,88053,417,00002,273,280
42May 31, 2024 09:526,44373,520,63852,465,0001,008,0002,273,280
43May 31, 2024 09:526,44675,685,31852,492,0001,009,0002,400,256
44May 31, 2024 09:526,48480,479,47651,821,0001,993,0002,392,064
45May 31, 2024 09:526,48582,971,35651,831,0001,993,0002,392,064
46May 31, 2024 09:526,528112,666,59054,178,44202,277,376