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 25, 2024 11:01GraceGraceScore: 11,038Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:0110,959112,768,34789,959,000999,0002,531,328
2May 25, 2024 11:0110,976113,319,88689,099,0002,002,0002,265,088
3May 25, 2024 11:0111,014113,821,69990,414,0001,004,0002,269,184
4May 25, 2024 11:0111,017113,902,31991,443,00002,285,568
5May 25, 2024 11:0111,020114,340,06590,464,0001,005,0002,285,568
6May 25, 2024 11:0111,029116,080,46290,536,0001,005,0002,285,568
7May 25, 2024 11:0111,032121,236,80790,560,0001,006,0002,285,568
8May 25, 2024 11:0111,038115,661,54290,608,0001,006,0002,281,472
9May 25, 2024 11:0111,053120,113,74790,743,000997,0002,285,568
10May 25, 2024 11:0111,060119,394,75589,804,0001,995,0002,285,568
11May 25, 2024 11:0111,066119,768,62490,847,000998,0002,260,992
12May 25, 2024 11:0111,069114,521,35290,877,000998,0002,269,184
13May 25, 2024 11:0111,196151,452,45792,923,42802,297,856
14May 25, 2024 11:0111,202161,630,35992,973,29902,285,568
15May 25, 2024 11:0111,206161,126,38893,012,09702,289,664