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 10, 2024 19:13Matt 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 10, 2024 19:1000000Error: expected "53687314177879017 ", got "53687313921879017 "
2Apr 10, 2024 19:0600000Error: expected "53679709768691827 ", got "53679709768691571 "
3Apr 10, 2024 19:1318,780216,215,189155,874,93902,289,664
4Apr 10, 2024 19:0718,783211,664,303155,900,02702,285,568
5Apr 10, 2024 19:0718,794226,919,592155,991,46702,289,664
6Apr 10, 2024 19:1318,802211,990,959156,055,12402,297,856
7Apr 10, 2024 19:1320,006221,868,981166,053,50302,293,760
8Apr 10, 2024 19:0720,017226,065,537166,139,80402,289,664
9Apr 10, 2024 19:1320,120192,044,682164,997,0001,999,0002,277,376
10Apr 10, 2024 19:1320,123187,939,640165,021,0002,000,0002,285,568
11Apr 10, 2024 19:1320,125191,482,010165,036,0002,000,0002,269,184
12Apr 10, 2024 19:1320,125199,680,193166,040,0001,000,0002,269,184
13Apr 10, 2024 19:1320,126190,058,438166,045,0001,000,0002,269,184
14Apr 10, 2024 19:1320,128190,831,023165,065,0002,000,0002,265,088
15Apr 10, 2024 19:1320,129188,911,267166,070,0001,000,0002,285,568
16Apr 10, 2024 19:1320,129190,247,058165,070,0002,000,0002,519,040
17Apr 10, 2024 19:1320,131190,479,124165,090,0002,001,0002,285,568