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 25, 2024 13:01Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 13:0100000Error: expected "53689182181075272 ", got "53689271910220617 "
2May 25, 2024 13:0100000Error: Exit with code 1: Segmentation fault at address: 0x1603702ca0stderr
3May 25, 2024 13:0100000Error: expected "53692942110867056 ", got "53693068184442791 "
4May 25, 2024 13:0200000Error: expected "53689386333911168 ", got "53689484895703808 "
5May 25, 2024 13:0200000Error: expected "53682793230239819 ", got "53682823012964589 "
6May 25, 2024 13:0200000Error: Exit with code 1: Segmentation fault at address: 0x6e0582c120stderr
7May 25, 2024 13:0300000Error: expected "53682321937907398 ", got "53682346405884921 "
8May 25, 2024 13:0300000Error: Exit with code 1: Segmentation fault at address: 0x580c602d20stderr
9May 25, 2024 13:0300000Error: expected "53690144538386440 ", got "53690176418625562 "
10May 25, 2024 13:036,683117,490,23855,470,35602,273,280
11May 25, 2024 13:036,755129,674,97256,069,64402,289,664
12May 25, 2024 13:036,768117,957,90656,173,86702,273,280