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 31, 2024 15:41GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 15:4100000Error: expected "53680505371211012 ", got "53680516292912024 "
2May 31, 2024 15:4100000Error: No answer to stdout. Died or killed?
3May 31, 2024 15:425,435106,892,73845,113,73002,289,664
4May 31, 2024 15:425,435116,607,21045,110,33402,293,760
5May 31, 2024 15:415,439109,261,38345,146,22902,281,472
6May 31, 2024 15:415,439125,620,68345,143,40802,285,568
7May 31, 2024 15:415,442110,724,69045,169,80402,285,568
8May 31, 2024 15:415,445115,825,33045,197,23202,289,664
9May 31, 2024 15:425,448109,654,64545,219,95602,293,760
10May 31, 2024 15:415,458104,002,39145,301,50702,285,568
11May 31, 2024 15:415,464109,696,82545,352,44902,277,376
12May 31, 2024 15:415,472109,154,67545,420,72802,281,472
13May 31, 2024 15:415,481113,942,28145,488,42802,285,568
14May 31, 2024 15:415,494111,636,10545,600,62302,273,280