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 listDec 4, 2022 05:45Yuriy 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
1Dec 4, 2022 05:4500000Error: expected "53687265634573495 ", got "53687240034573495 "stderr
2Dec 4, 2022 05:4600000Error: expected "53684811963983665 ", got "53684786363983665 "stderr
3Dec 4, 2022 05:467,366124,648,37561,139,06002,252,800
4Dec 4, 2022 05:467,420113,878,32961,586,26902,211,840
5Dec 4, 2022 05:467,441122,473,65261,757,98302,297,856