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 listMay 3, 2024 15:19Steve HanSteve HanScore: 42,773Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 15:2442,739427,127,702354,731,21802,269,184
2May 3, 2024 15:1842,756422,540,423354,873,50602,273,280
3May 3, 2024 15:2442,768421,607,385354,971,22902,260,992
4May 3, 2024 15:2842,770421,887,467354,989,11802,273,280
5May 3, 2024 15:2842,771433,448,648355,002,87502,281,472
6May 3, 2024 15:1842,773419,248,617355,018,44202,277,376
7May 3, 2024 15:1942,773424,140,952355,015,59002,256,896
8May 3, 2024 15:1942,777427,821,955355,048,01002,273,280
9May 3, 2024 15:1942,779428,804,679355,063,58402,273,280
10May 3, 2024 15:2842,779433,150,413355,068,84302,269,184
11May 3, 2024 15:1842,785431,822,990355,112,05602,273,280
12May 3, 2024 15:2442,785429,599,224355,114,06302,256,896