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:39GraceGraceError
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:3900000Error: expected "53684678303015613 ", got "53684870359096910 "
2May 31, 2024 09:394,93964,318,26339,998,000999,0002,273,280
3May 31, 2024 09:394,94062,986,51239,006,0002,000,0002,404,352
4May 31, 2024 09:394,94262,899,42339,017,0002,000,0002,273,280
5May 31, 2024 09:394,94362,674,50839,027,0002,001,0002,400,256
6May 31, 2024 09:394,94459,958,02540,038,0001,000,0002,519,040
7May 31, 2024 09:394,94562,937,22339,039,0002,002,0002,400,256
8May 31, 2024 09:394,94767,290,98639,057,0002,002,0002,273,280
9May 31, 2024 09:394,94964,313,72239,074,0002,003,0002,273,280
10May 31, 2024 09:394,95064,703,19740,086,0001,002,0002,400,256
11May 31, 2024 09:394,95264,343,34539,095,0002,004,0002,273,280
12May 31, 2024 09:394,95262,227,26140,100,0001,002,0002,273,280
13May 31, 2024 09:394,95462,443,17039,110,0002,005,0002,273,280
14May 31, 2024 09:394,95467,607,68040,118,0001,002,0002,273,280
15May 31, 2024 09:394,95564,733,60739,117,0002,006,0002,396,160
16May 31, 2024 09:394,95564,211,17039,120,0002,006,0002,404,352
17May 31, 2024 09:394,95565,315,67440,121,0001,003,0002,400,256
18May 31, 2024 09:394,95663,432,80639,131,0002,006,0002,273,280
19May 31, 2024 09:394,95668,133,85239,126,0002,006,0002,273,280
20May 31, 2024 09:394,95767,068,63939,136,0002,007,0002,273,280
21May 31, 2024 09:394,95865,351,07740,147,0001,003,0002,396,160
22May 31, 2024 09:394,95966,204,91439,152,0002,007,0002,273,280
23May 31, 2024 09:394,96166,441,99839,169,0002,008,0002,273,280
24May 31, 2024 09:394,96762,928,13539,219,0002,011,0002,273,280
25May 31, 2024 09:394,97672,316,98439,285,0002,014,0002,273,280
26May 31, 2024 09:394,98571,648,62641,373,00002,273,280
27May 31, 2024 09:395,01368,303,43240,591,0001,014,0002,273,280
28May 31, 2024 09:395,17067,326,58641,913,000997,0002,396,160
29May 31, 2024 09:396,16871,985,91349,191,0002,007,0002,273,280
30May 31, 2024 09:396,17276,926,59349,220,0002,008,0002,273,280
31May 31, 2024 09:396,17472,698,46150,239,0001,004,0002,273,280
32May 31, 2024 09:396,18476,614,03850,325,0001,006,0002,273,280
33May 31, 2024 09:396,18773,254,71149,335,0002,013,0002,412,544
34May 31, 2024 09:396,19676,277,18550,422,0001,008,0002,273,280
35May 31, 2024 09:396,24282,388,69949,820,0001,992,0002,273,280
36May 31, 2024 09:396,24380,939,31450,820,000996,0002,392,064
37May 31, 2024 09:396,24575,980,70250,840,000996,0002,519,040
38May 31, 2024 09:396,354110,281,73052,736,80502,277,376
39May 31, 2024 09:396,451118,950,94353,541,14702,285,568
40May 31, 2024 09:396,467108,732,96453,672,22102,285,568
41May 31, 2024 09:396,473112,083,07553,724,01002,281,472
42May 31, 2024 09:396,474118,494,12553,732,13002,285,568
43May 31, 2024 09:396,477120,634,70553,757,49402,277,376
44May 31, 2024 09:396,486116,566,14053,830,27402,285,568
45May 31, 2024 09:396,519115,088,62654,108,83802,285,568
46May 31, 2024 09:396,525117,414,49554,157,68502,289,664