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 listJul 29, 2024 19:52Павел РатмановПавел РатмановError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 29, 2024 19:5100000generator exited with code 1
2Jul 29, 2024 19:5151,580497,581,371428,117,17402,215,936
3Jul 29, 2024 19:5151,601495,106,302428,287,47702,220,032
4Jul 29, 2024 19:5151,652498,426,625428,712,72402,211,840
5Jul 29, 2024 19:5262,441574,080,164518,259,86902,351,104
6Jul 29, 2024 19:5262,555585,105,620519,202,98102,256,896
7Jul 29, 2024 19:5262,562583,008,221519,262,06902,215,936