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 12, 2024 11:31Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2024 11:3400000Error: expected "53687325386458244 ", got "53687325386432644 "
2Apr 12, 2024 11:3100000Error: expected "53686797577781865 ", got "53686797577525865 "
3Apr 12, 2024 11:3116,595200,123,336137,738,98902,293,760
4Apr 12, 2024 11:3116,599198,701,882137,771,83102,285,568
5Apr 12, 2024 11:3416,610195,773,189137,860,39602,289,664
6Apr 12, 2024 11:3416,612197,063,521137,881,87602,285,568
7Apr 12, 2024 11:3116,614203,528,139137,898,43002,301,952
8Apr 12, 2024 11:3116,615162,249,446136,905,000999,0002,265,088
9Apr 12, 2024 11:3416,618206,187,411137,925,79702,285,568
10Apr 12, 2024 11:3116,623200,596,902137,971,51802,289,664
11Apr 12, 2024 11:3116,629206,914,972138,021,31702,289,664
12Apr 12, 2024 11:3116,991170,550,577140,023,0001,000,0002,269,184
13Apr 12, 2024 11:3116,995163,987,586140,059,0001,000,0002,285,568
14Apr 12, 2024 11:3117,003164,504,498139,127,0002,001,0002,285,568
15Apr 12, 2024 11:3117,003169,693,823139,122,0002,001,0002,269,184
16Apr 12, 2024 11:3117,005169,676,389140,142,0001,001,0002,285,568
17Apr 12, 2024 11:3117,010166,886,675139,181,0002,002,0002,277,376
18Apr 12, 2024 11:3117,014163,617,769139,214,0002,003,0002,519,040
19Apr 12, 2024 11:3117,017171,108,084139,240,0002,003,0002,285,568
20Apr 12, 2024 11:3117,470200,219,860144,996,89102,281,472