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 28, 2024 12:23Steve HanSteve HanScore: 19,329Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 12:3219,191223,550,607159,284,53902,297,856
2Apr 28, 2024 12:2419,219227,101,779159,514,35502,297,856
3Apr 28, 2024 12:2319,245215,882,815159,731,34102,293,760
4Apr 28, 2024 12:2319,246220,339,107159,738,52002,301,952
5Apr 28, 2024 12:2319,270231,152,605159,937,97202,174,976
6Apr 28, 2024 12:3219,290216,725,811160,110,94102,301,952
7Apr 28, 2024 12:2419,308225,501,762160,253,11602,293,760
8Apr 28, 2024 12:3019,329217,859,272160,428,75002,301,952
9Apr 28, 2024 12:3219,330221,690,907160,443,08302,297,856
10Apr 28, 2024 12:2419,547220,322,177162,236,81402,174,976
11Apr 28, 2024 12:3020,124229,668,331167,028,43402,297,856
12Apr 28, 2024 12:3020,460234,287,029169,819,81702,293,760
13Apr 28, 2024 12:2420,568240,573,948170,710,80802,301,952
14Apr 28, 2024 12:2420,818239,224,535172,789,95902,293,760
15Apr 28, 2024 12:2420,859241,961,069173,129,42502,256,896