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 9, 2023 11:36Serge SmirnovSerge SmirnovScore: 38,644Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2023 13:1838,629389,773,271320,619,43602,281,472
2Oct 9, 2023 11:3638,631378,392,854320,634,94002,277,376
3Oct 9, 2023 13:1838,637383,778,425320,683,02202,285,568
4Oct 9, 2023 13:1838,644388,262,296320,741,94902,289,664
5Oct 9, 2023 11:3638,651373,559,221320,803,02202,293,760
6Oct 9, 2023 11:3638,658377,085,353320,857,91502,281,472