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 29, 2024 18:40GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 18:4000000Error: expected "53684672585364929 ", got "53684672585299393 "
2May 29, 2024 18:4000000Error: expected "53692789612230859 ", got "53692788950317259 "
3May 29, 2024 18:4000000Error: expected "53689846839131163 ", got "53689846839065627 "
4May 29, 2024 18:406,142110,079,87550,981,59502,273,280
5May 29, 2024 18:406,151115,308,24051,055,83902,277,376
6May 29, 2024 18:406,155122,777,04151,083,97002,289,664
7May 29, 2024 18:406,155113,809,29951,087,72502,281,472
8May 29, 2024 18:406,161116,030,38051,136,72902,285,568
9May 29, 2024 18:406,164121,284,75951,158,72202,277,376
10May 29, 2024 18:406,168124,571,23951,193,05402,285,568
11May 29, 2024 18:406,178116,060,26851,274,78502,277,376
12May 29, 2024 18:406,188111,712,32151,357,33402,289,664