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 listSep 7, 2021 21:00Andrey TsvetkovAndrey TsvetkovScore: 33,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 7, 2021 20:5033,628340,370,707279,108,74602,236,416
2Sep 7, 2021 21:0033,628346,524,795279,111,92802,240,512
3Sep 7, 2021 20:5033,635348,616,135279,173,71502,240,512
4Sep 7, 2021 21:0033,651352,789,975279,299,16902,228,224
5Sep 7, 2021 21:0033,654345,312,428279,328,75602,220,032
6Sep 7, 2021 20:5033,668349,199,675279,441,53302,224,128