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 listJun 30, 2021 03:09Yuriy 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
1Jun 30, 2021 03:0900000Error: expected "53689803418420621 ", got "53689800858420621 "
2Jun 30, 2021 03:0913,888388,079,248114,268,0001,002,0002,392,064
3Jun 30, 2021 03:0913,891390,892,272114,295,0001,002,0002,260,992
4Jun 30, 2021 03:0913,894392,589,101114,319,0001,002,0002,260,992
5Jun 30, 2021 03:0913,899388,619,735114,358,0001,003,0002,260,992
6Jun 30, 2021 03:0913,903392,924,257115,398,00002,260,992
7Jun 30, 2021 03:0913,904389,900,336114,398,0001,003,0002,260,992
8Jun 30, 2021 03:0913,910394,646,041115,455,00002,260,992
9Jun 30, 2021 03:0913,933403,781,602113,652,0001,993,0002,392,064
10Jun 30, 2021 03:0913,937397,355,183114,683,000997,0002,260,992
11Jun 30, 2021 03:0914,373427,024,002119,298,80102,260,992
12Jun 30, 2021 03:0914,381429,248,233119,364,88302,269,184
13Jun 30, 2021 03:0914,382434,662,625119,367,62902,265,088