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 11:05GraceGraceError
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 11:0600000Error: expected "53684356865385827 ", got "53684392701099978 "
2May 31, 2024 11:056,22682,021,40551,674,00002,273,280
3May 31, 2024 11:056,24378,737,13250,817,000996,0002,400,256
4May 31, 2024 11:056,26975,743,64750,031,0002,001,0002,273,280
5May 31, 2024 11:056,36379,446,24751,816,000996,0002,400,256
6May 31, 2024 11:056,36483,863,84850,829,0001,993,0002,273,280
7May 31, 2024 11:056,36476,702,25350,829,0001,993,0002,510,848
8May 31, 2024 11:056,36681,640,60250,844,0001,993,0002,273,280
9May 31, 2024 11:056,36676,131,02751,821,0001,016,0002,273,280
10May 31, 2024 11:056,37183,359,28750,883,0001,995,0002,273,280
11May 31, 2024 11:056,37875,946,66850,944,0001,997,0002,273,280
12May 31, 2024 11:056,38072,793,90150,959,0001,998,0002,273,280
13May 31, 2024 11:056,38070,518,74651,956,000999,0002,400,256
14May 31, 2024 11:056,38278,951,23250,970,0001,998,0002,273,280
15May 31, 2024 11:056,38474,335,67751,988,000999,0002,519,040
16May 31, 2024 11:056,39476,076,67151,072,0002,002,0002,273,280
17May 31, 2024 11:056,39578,670,56351,076,0002,003,0002,273,280
18May 31, 2024 11:056,40776,418,09651,173,0002,006,0002,514,944
19May 31, 2024 11:056,41275,771,60352,215,0001,004,0002,400,256
20May 31, 2024 11:056,41277,364,89553,218,00002,400,256
21May 31, 2024 11:056,41275,004,90051,215,0002,008,0002,273,280
22May 31, 2024 11:056,46176,682,68751,640,0001,986,0002,273,280
23May 31, 2024 11:056,48882,642,04752,855,000997,0002,408,448
24May 31, 2024 11:056,50476,512,14151,984,0001,999,0002,408,448
25May 31, 2024 11:056,52082,031,17953,118,0001,002,0002,396,160
26May 31, 2024 11:056,572122,274,12154,547,74502,281,472
27May 31, 2024 11:056,587123,740,65954,670,01702,277,376
28May 31, 2024 11:056,587125,808,66854,673,02902,285,568
29May 31, 2024 11:056,633118,723,36755,056,30302,281,472
30May 31, 2024 11:056,635123,582,44555,071,90102,285,568
31May 31, 2024 11:056,646118,075,10055,164,50202,281,472
32May 31, 2024 11:056,650127,068,49755,192,68102,289,664
33May 31, 2024 11:056,724126,464,22955,810,26302,277,376
34May 31, 2024 11:056,798109,393,15056,420,11902,285,568