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 15:41Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2021 17:1400000Error: expected "53687696703174855 ", got "53687696447249255 "
2Sep 7, 2021 15:4100000Error: expected "53679795926248431 ", got "53679795925992531 "
3Sep 7, 2021 15:4137,355368,244,764310,044,64502,244,608
4Sep 7, 2021 15:4137,363364,610,637310,110,92702,256,896
5Sep 7, 2021 15:4137,381381,756,038310,260,15202,256,896