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 listJul 5, 2021 15:44Yuriy 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
1Jul 5, 2021 15:5400000Error: expected "53688072938883515 ", got "53688070379883515 "
2Jul 5, 2021 15:5500000Error: expected "53687868601496692 ", got "53687868601471092 "
3Jul 5, 2021 15:5500000Error: expected "53682673668734327 ", got "53682673668708727 "
4Jul 5, 2021 15:5600000Error: expected "53681448831747055 ", got "53681448831721455 "
5Jul 5, 2021 15:5700000Error: expected "53692958131686774 ", got "53692958131430874 "
6Jul 5, 2021 15:4436,747367,803,453304,998,01102,215,936
7Jul 5, 2021 15:4436,754363,522,871305,056,07102,207,744
8Jul 5, 2021 15:4436,773375,189,006305,216,53902,215,936