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 18:57Steve HanSteve HanScore: 18,984Success
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 18:5818,912216,707,074156,969,60102,289,664
2Apr 28, 2024 18:5818,948210,208,536157,268,15102,301,952
3Apr 28, 2024 18:5818,957220,163,472157,345,93602,293,760
4Apr 28, 2024 18:5718,959208,117,792157,357,20502,174,976
5Apr 28, 2024 18:5818,973215,133,899157,475,26002,301,952
6Apr 28, 2024 18:5718,976223,544,428157,500,96302,297,856
7Apr 28, 2024 18:5818,984217,130,617157,568,12002,293,760
8Apr 28, 2024 19:0018,987214,981,137157,590,30302,297,856
9Apr 28, 2024 18:5718,989225,481,502157,610,32802,174,976
10Apr 28, 2024 19:0019,023224,494,916157,889,53102,293,760
11Apr 28, 2024 18:5819,042218,692,974158,045,58002,297,856
12Apr 28, 2024 19:0019,045235,701,593158,075,16902,289,664