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 listNov 18, 2024 01:29zielajzielajScore: 3,998Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 18, 2024 01:293,55451,538,58727,464,0002,034,0002,351,104
2Nov 18, 2024 01:293,56756,290,96928,587,0001,020,0002,281,472
3Nov 18, 2024 01:293,71755,501,42229,858,000995,0002,355,200
4Nov 18, 2024 01:293,99852,605,97631,174,0002,011,0002,359,296
5Nov 18, 2024 01:294,00055,924,48532,191,0001,005,0002,347,008
6Nov 18, 2024 01:294,23361,602,39034,127,0001,003,0002,351,104