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 listAug 25, 2023 08:57matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 25, 2023 09:0200000Error: expected "53691600583313963 ", got "53691600327313963 "stderr
2Aug 25, 2023 09:0000000Error: expected "53690152052750950 ", got "53690149492750950 "stderr
3Aug 25, 2023 08:5900000Error: expected "53682778519784787 ", got "53682752919784787 "stderr
4Aug 25, 2023 08:5900000Error: expected "53689310271212074 ", got "53689310271209514 "stderr
5Aug 25, 2023 08:5800000Error: expected "53682615599261829 ", got "53682589999261829 "stderr
6Aug 25, 2023 08:5800000Error: expected "53689550468405526 ", got "53689550468379926 "stderr
7Aug 25, 2023 08:5700000Error: expected "53690056167099656 ", got "53690030567099656 "stderr
8Aug 25, 2023 09:108,124132,132,42467,431,17202,277,376
9Aug 25, 2023 08:588,128124,029,21167,461,62202,265,088
10Aug 25, 2023 08:598,162135,579,16467,744,31002,265,088
11Aug 25, 2023 08:588,196140,101,61868,026,27402,273,280
12Aug 25, 2023 08:588,198129,133,16568,042,14002,248,704
13Aug 25, 2023 08:598,226134,326,71968,277,05202,277,376
14Aug 25, 2023 09:108,264124,502,94968,590,66102,277,376
15Aug 25, 2023 08:598,292140,561,03168,819,73602,281,472
16Aug 25, 2023 09:038,330135,950,51669,137,66102,273,280
17Aug 25, 2023 09:038,457139,679,96170,197,08102,269,184
18Aug 25, 2023 09:038,514140,938,70970,668,48802,269,184
19Aug 25, 2023 09:108,538141,409,12670,862,28202,269,184