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 31, 2024 06:22GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 06:2200000Error: expected "53690611367833058 ", got "53690611367577058 "
2May 31, 2024 06:237,138124,592,33959,245,74902,281,472
3May 31, 2024 06:237,139130,573,60659,252,39102,289,664
4May 31, 2024 06:237,143124,459,29359,287,33702,289,664
5May 31, 2024 06:237,147125,463,09059,324,12102,289,664
6May 31, 2024 06:237,150124,171,35259,348,49702,285,568
7May 31, 2024 06:237,151131,795,55959,356,40702,293,760
8May 31, 2024 06:237,152124,532,09059,358,79002,273,280
9May 31, 2024 06:237,152126,661,65859,358,73802,285,568
10May 31, 2024 06:237,156120,392,38959,396,71302,289,664
11May 31, 2024 06:237,161130,498,63559,439,08002,289,664
12May 31, 2024 06:237,167126,923,71359,486,68502,285,568
13May 31, 2024 06:237,169126,670,52659,505,87002,285,568
14May 31, 2024 06:237,169130,082,28159,500,84202,281,472
15May 31, 2024 06:237,192126,596,37459,689,78602,273,280
16May 31, 2024 06:237,222123,000,19759,944,36802,293,760