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 6, 2023 02:51Yuriy 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 6, 2023 02:5200000Error: expected "53688496467848094 ", got "53688496442248094 "stderr
2Dec 6, 2023 02:517,240115,205,01560,088,27702,195,456
3Dec 6, 2023 02:517,266118,738,37760,309,69002,265,088
4Dec 6, 2023 02:517,300126,199,39360,589,96202,224,128