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:35zielajzielajScore: 3,743Success
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:353,67950,203,59530,539,00002,383,872
2Nov 18, 2024 01:353,68960,169,60629,597,0001,020,0002,523,136
3Nov 18, 2024 01:353,69659,753,24929,653,0001,022,0002,523,136
4Nov 18, 2024 01:353,74356,306,64029,066,0002,004,0002,527,232
5Nov 18, 2024 01:353,75350,896,29429,142,0002,009,0002,269,184
6Nov 18, 2024 01:353,79755,840,12030,499,0001,016,0002,527,232