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 18, 2021 22:53Andrey TsvetkovAndrey TsvetkovScore: 51,521Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2021 22:5251,514487,062,093427,567,34402,265,088
2Jul 18, 2021 22:5251,516490,885,488427,585,79202,273,280
3Jul 18, 2021 22:5351,518489,566,488427,597,45102,273,280
4Jul 18, 2021 22:5351,521494,030,120427,621,08902,277,376
5Jul 18, 2021 22:5251,529492,486,230427,694,46202,273,280
6Jul 18, 2021 22:5351,530489,777,125427,700,19502,281,472