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 16:33Steve HanSteve HanScore: 16,942Success
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 16:3516,064191,236,493133,331,52002,297,856
2Apr 29, 2024 16:3316,100193,733,191133,627,93802,174,976
3Apr 29, 2024 16:3516,137194,158,818133,940,64802,179,072
4Apr 29, 2024 16:3516,147207,651,677134,023,85302,301,952
5Apr 29, 2024 16:3416,916202,547,232140,400,87502,256,896
6Apr 29, 2024 16:3416,931196,826,879140,524,00402,301,952
7Apr 29, 2024 16:3316,942203,688,285140,616,89202,297,856
8Apr 29, 2024 16:3316,965198,990,865140,809,46502,301,952
9Apr 29, 2024 16:3516,966212,328,400140,818,60302,285,568
10Apr 29, 2024 16:3416,997196,443,672141,075,37102,301,952
11Apr 29, 2024 16:3517,006228,484,690141,150,36202,297,856
12Apr 29, 2024 16:3517,096206,617,982141,893,27802,301,952