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 30, 2024 11:10Steve HanSteve HanScore: 45,463Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2024 11:0045,266436,093,758375,710,18702,297,856
2Apr 30, 2024 11:0145,295439,831,478375,945,26802,301,952
3Apr 30, 2024 11:0545,342443,883,074376,339,22402,174,976
4Apr 30, 2024 11:0545,361436,917,233376,493,67302,179,072
5Apr 30, 2024 11:0545,374432,525,179376,604,35802,179,072
6Apr 30, 2024 11:0145,405448,975,800376,863,17102,301,952
7Apr 30, 2024 11:0045,423433,918,098377,008,67002,301,952
8Apr 30, 2024 11:0145,463441,652,889377,343,25402,297,856
9Apr 30, 2024 11:0045,472443,043,901377,416,80802,301,952
10Apr 30, 2024 11:1046,925452,241,623389,474,89502,179,072
11Apr 30, 2024 11:1046,957453,660,124389,744,87502,297,856
12Apr 30, 2024 11:1046,959449,253,316389,757,08502,179,072
13Apr 30, 2024 11:1048,388456,291,900401,616,82502,297,856
14Apr 30, 2024 11:1048,427463,310,536401,941,56602,297,856
15Apr 30, 2024 11:1048,449471,330,398402,124,33702,293,760