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 listJan 16, 2022 12:00Andrey TsvetkovAndrey TsvetkovScore: 78,611Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2022 12:0078,603715,658,859652,406,05802,265,088
2Jan 16, 2022 12:0178,604709,814,921652,411,66902,252,800
3Jan 16, 2022 12:0178,606710,838,214652,433,60902,260,992
4Jan 16, 2022 12:0078,611721,020,043652,467,88002,265,088
5Jan 16, 2022 12:0178,622714,209,498652,566,09202,260,992
6Jan 16, 2022 12:0078,663725,760,643652,901,34102,256,896