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 29, 2024 17:09Steve HanSteve HanScore: 21,620Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 17:1019,206218,004,606159,410,90902,297,856
2Apr 29, 2024 17:0919,331216,935,294160,446,90202,174,976
3Apr 29, 2024 17:1019,355215,752,136160,644,45902,179,072
4Apr 29, 2024 17:1019,359219,682,590160,676,02302,297,856
5Apr 29, 2024 17:0919,395214,123,206160,982,40602,301,952
6Apr 29, 2024 17:0919,506221,837,116161,899,36302,293,760
7Apr 29, 2024 17:0921,620248,839,338179,448,55202,297,856
8Apr 29, 2024 17:0921,665237,989,195179,818,87502,301,952
9Apr 29, 2024 17:0921,720237,188,291180,273,78702,297,856
10Apr 29, 2024 17:0921,737235,432,881180,420,38402,179,072
11Apr 29, 2024 17:0921,753232,469,372180,547,35902,306,048
12Apr 29, 2024 17:0921,821246,912,840181,113,03002,301,952