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 17, 2022 11:22Andrey TsvetkovAndrey TsvetkovScore: 42,192Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2022 11:2142,182404,877,826350,111,89102,224,128
2Jan 17, 2022 11:2142,190415,280,531350,180,11102,207,744
3Jan 17, 2022 11:2242,191403,800,033350,186,23502,224,128
4Jan 17, 2022 11:2142,192418,461,165350,196,51302,228,224
5Jan 17, 2022 11:2242,194412,423,514350,211,18302,215,936
6Jan 17, 2022 11:2242,203405,821,762350,281,38902,211,840