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 listFeb 25, 2023 16:16Saveliev AntonSaveliev AntonError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 25, 2023 16:1600000Error: Exit with code 1: 2023/02/25 16:16:44 1744386483 1699013473 2145153269 2069976838 1682785627 1389115081 486413458 958646804 1384389789 218549818 1373723363 1204509009 587902355 710564158 451508496 1897632092 226215157 1538088423 534777846 168364...stderr