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 listOct 13, 2023 18:12Michael MoonMichael MoonError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 3, 2023 15:5800000Error: expected "53691135027222556 ", got "53691135027222163 "
2Oct 13, 2023 18:12168,7461,460,147,9921,400,592,48902,277,376
3Oct 13, 2023 18:12168,8121,456,648,6601,401,142,58402,281,472
4Oct 13, 2023 18:12168,8131,470,919,9481,401,144,44402,273,280