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 listFeb 12, 2022 21:58Yuriy 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
1Feb 12, 2022 21:5800000Error: expected "53680539727450027 ", got "53680539727191467 "
2Feb 12, 2022 21:5811,450116,575,48693,039,0002,000,0002,285,568
3Feb 12, 2022 21:5811,450118,382,65993,032,0002,000,0002,277,376
4Feb 12, 2022 21:5811,452117,757,62194,055,0001,000,0002,289,664
5Feb 12, 2022 21:5811,455121,836,95593,077,0002,001,0002,277,376
6Feb 12, 2022 21:5811,456121,193,58093,083,0002,001,0002,285,568
7Feb 12, 2022 21:5811,456122,036,70793,082,0002,001,0002,285,568
8Feb 12, 2022 21:5811,460117,850,16294,116,0001,001,0002,273,280
9Feb 12, 2022 21:5811,461122,891,61693,122,0002,002,0002,285,568
10Feb 12, 2022 21:5811,469118,427,96094,192,0001,002,0002,285,568
11Feb 12, 2022 22:0111,911176,492,54298,861,49602,289,664
12Feb 12, 2022 21:5811,912174,624,92298,866,68502,269,184
13Feb 12, 2022 22:0111,912171,506,58698,867,47702,285,568
14Feb 12, 2022 21:5811,913175,999,95098,879,03802,273,280
15Feb 12, 2022 22:0111,913160,670,62198,876,03902,289,664
16Feb 12, 2022 21:5811,914173,597,99998,889,34402,277,376