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 10, 2024 18:40Matt StuchlikMatt StuchlikScore: 20,571Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 18:4018,859230,723,971156,533,17602,293,760
2Apr 10, 2024 18:4018,869224,752,015156,612,37702,285,568
3Apr 10, 2024 18:4018,878215,375,606156,683,68002,289,664
4Apr 10, 2024 18:4019,898191,622,939163,154,0002,001,0002,285,568
5Apr 10, 2024 18:4020,533192,623,785169,419,0001,002,0002,277,376
6Apr 10, 2024 18:4020,568196,898,931168,715,0001,996,0002,277,376
7Apr 10, 2024 18:4020,571194,343,664168,746,0001,996,0002,531,328
8Apr 10, 2024 18:4020,573196,481,657168,759,0001,997,0002,531,328
9Apr 10, 2024 18:4020,588194,565,477168,883,0001,998,0002,285,568
10Apr 10, 2024 18:4020,590199,351,172168,896,0001,998,0002,285,568
11Apr 10, 2024 18:4020,594195,597,949168,930,0001,999,0002,371,584
12Apr 10, 2024 18:4020,597193,470,296168,952,0001,999,0002,285,568