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 18:00Yuriy 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 18:0000000Error: expected "53690086539538247 ", got "53690086283612647 "
2Jul 5, 2021 18:0000000Error: expected "53689630620581669 ", got "53689630364681669 "
3Jul 5, 2021 18:0034,748347,281,899288,410,91302,215,936
4Jul 5, 2021 18:0034,758359,433,478288,495,36602,220,032
5Jul 5, 2021 18:0034,780349,510,629288,673,77302,220,032
6Jul 5, 2021 18:0034,781350,266,377288,683,79502,228,224
7Jul 5, 2021 18:0034,782352,401,612288,693,60702,215,936
8Jul 5, 2021 18:0034,908363,196,470289,738,64702,220,032