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 16, 2024 15:25Matt 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
1Apr 16, 2024 15:2500000Error: expected "53691131079019509 ", got "53691130823019509 "
2Apr 16, 2024 15:2512,136161,460,416100,732,32402,273,280
3Apr 16, 2024 15:2612,138171,483,819100,741,61902,277,376
4Apr 16, 2024 15:2512,144169,073,005100,797,91202,277,376
5Apr 16, 2024 15:2512,145175,470,928100,804,54302,281,472
6Apr 16, 2024 15:2612,161167,567,876100,938,11702,269,184
7Apr 16, 2024 15:2613,312161,569,261110,489,54202,273,280