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 14, 2024 00:27Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 00:2700000Error: expected "53689464895782919 ", got "53689466737821861 "stderr
2Oct 14, 2024 00:2700000Error: expected "53682841728999734 ", got "53682848020313137 "stderr
3Oct 14, 2024 00:274,38159,594,01435,352,0001,010,0002,535,424
4Oct 14, 2024 00:274,43958,893,80135,845,000995,0002,301,952
5Oct 14, 2024 00:274,45558,244,67834,981,0001,998,0002,301,952
6Oct 14, 2024 00:274,46158,338,43535,024,0002,001,0002,531,328
7Oct 14, 2024 00:274,48358,186,46935,196,0002,011,0002,535,424
8Oct 14, 2024 00:274,69960,270,09138,002,0001,000,0002,531,328