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 18:47Matt 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:0400000Error: expected "53691620676444333 ", got "53691620676441773 "
2Apr 10, 2024 18:4718,104205,613,291150,263,83002,285,568
3Apr 10, 2024 18:5918,675227,713,051155,005,51302,289,664
4Apr 10, 2024 18:4718,680220,940,111155,044,08402,289,664
5Apr 10, 2024 18:4718,685223,065,768155,081,98202,289,664
6Apr 10, 2024 18:5218,686222,264,122155,097,42802,285,568
7Apr 10, 2024 18:5218,687221,148,778155,101,62602,289,664
8Apr 10, 2024 18:5218,692214,438,722155,146,06102,297,856
9Apr 10, 2024 18:5919,887226,036,160165,059,95702,252,800
10Apr 10, 2024 18:5919,917233,702,557165,308,73902,289,664