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 listApr 29, 2024 20:24Joad NacerJoad NacerScore: 8,199Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 22:337,799120,999,29864,729,73602,273,280
2Apr 29, 2024 20:247,799128,736,60264,734,54802,277,376
3Apr 29, 2024 22:337,807122,782,10864,800,13202,273,280
4Apr 29, 2024 22:337,858120,355,70165,219,40202,269,184
5Apr 29, 2024 20:247,989128,923,27066,311,05702,269,184
6Apr 29, 2024 20:248,037140,648,56066,705,49702,256,896
7Apr 29, 2024 22:338,18790,894,88665,951,0001,998,0002,285,568
8Apr 29, 2024 20:248,18991,596,65165,970,0001,999,0002,269,184
9Apr 29, 2024 20:248,19294,008,02365,993,0001,999,0002,285,568
10Apr 29, 2024 22:338,19290,366,18367,995,00002,265,088
11Apr 29, 2024 22:338,19390,728,14066,005,0002,000,0002,285,568
12Apr 29, 2024 20:248,19595,263,47766,022,0002,000,0002,285,568
13Apr 29, 2024 20:248,19697,671,36966,028,0002,000,0002,285,568
14Apr 29, 2024 22:338,19791,776,09967,035,0001,000,0002,285,568
15Apr 29, 2024 20:248,19990,883,27466,052,0002,001,0002,285,568
16Apr 29, 2024 22:338,19992,420,26767,051,0001,000,0002,527,232
17Apr 29, 2024 22:338,20090,288,08366,063,0002,001,0002,285,568
18Apr 29, 2024 22:338,20094,950,08966,059,0002,001,0002,285,568
19Apr 29, 2024 20:248,20490,823,44366,088,0002,002,0002,285,568
20Apr 29, 2024 20:248,20589,459,04766,099,0002,003,0002,519,040
21Apr 29, 2024 20:248,20693,129,25466,108,0002,003,0002,285,568
22Apr 29, 2024 22:338,20793,317,05066,114,0002,003,0002,285,568
23Apr 29, 2024 22:338,21395,336,33866,164,0002,004,0002,260,992
24Apr 29, 2024 20:248,26299,843,15467,570,0001,008,0002,260,992
25Apr 29, 2024 22:339,051101,889,22573,121,0002,003,0002,285,568
26Apr 29, 2024 22:339,06498,620,52773,225,0002,006,0002,260,992
27Apr 29, 2024 22:339,08896,498,71574,423,0001,005,0002,269,184
28Apr 29, 2024 20:249,111100,644,47374,614,0001,008,0002,285,568
29Apr 29, 2024 20:249,145100,074,70473,908,0001,997,0002,269,184
30Apr 29, 2024 20:249,149103,666,60973,935,0001,998,0002,285,568