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 17: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
1Jul 5, 2021 17:4500000Error: expected "53683815667359790 ", got "53683815667103890 "
2Jul 5, 2021 17:4534,824354,320,276289,038,73402,207,744
3Jul 5, 2021 17:5634,836358,531,421289,136,77102,211,840
4Jul 5, 2021 17:5634,841360,141,688289,181,78702,211,840
5Jul 5, 2021 17:5634,845348,280,247289,215,23502,224,128
6Jul 5, 2021 17:4534,849345,352,603289,243,44402,215,936
7Jul 5, 2021 17:4534,865355,102,082289,381,51902,228,224