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 listApr 30, 2024 14:07Steve HanSteve HanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2024 14:0700000Error: expected "53691019961743018 ", got "39122814339433717 "
2Apr 30, 2024 14:0821,589239,550,782179,189,76402,179,072
3Apr 30, 2024 14:0821,606248,052,160179,330,52702,301,952
4Apr 30, 2024 14:0821,622240,647,578179,458,75302,174,976
5Apr 30, 2024 14:0821,677238,152,464179,918,09502,297,856
6Apr 30, 2024 14:0821,692244,613,866180,041,30102,301,952
7Apr 30, 2024 14:0821,727242,305,422180,330,49402,306,048
8Apr 30, 2024 14:0921,741250,621,667180,452,29602,179,072
9Apr 30, 2024 14:0921,780246,677,469180,772,57702,297,856
10Apr 30, 2024 14:0921,842248,242,942181,292,36202,256,896
11Apr 30, 2024 14:0921,869256,046,429181,511,70402,301,952
12Apr 30, 2024 14:0921,876244,615,168181,571,68002,174,976
13Apr 30, 2024 14:0921,899245,740,594181,765,42402,306,048