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 listMay 27, 2024 14:43Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 14:4700000Error: expected "53688018790518811 ", got "53688050670757933 "
2May 27, 2024 15:0300000Error: expected "53679285272836451 ", got "53679329819128431 "
3May 27, 2024 15:0200000Error: expected "53690297127772257 ", got "53690354841582337 "
4May 27, 2024 15:0100000Error: expected "53689415725202319 ", got "53689469172306368 "
5May 27, 2024 15:0000000Error: expected "53680393287589067 ", got "53680418268803561 "
6May 27, 2024 14:5900000Error: expected "53687159725336416 ", got "53687195047407083 "
7May 27, 2024 14:5800000Error: expected "53683368757678045 ", got "53683412583111071 "
8May 27, 2024 14:5700000Error: expected "53681187225968724 ", got "53681191356172171 "
9May 27, 2024 14:5600000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
10May 27, 2024 14:5500000Error: expected "53686599340799033 ", got "53686650152857080 "
11May 27, 2024 14:5400000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
12May 27, 2024 14:5300000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
13May 27, 2024 14:5200000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
14May 27, 2024 14:4900000Error: expected "53685291326611294 ", got "53685335152044320 "
15May 27, 2024 14:4600000Error: expected "53689758874457796 ", got "53689795707390553 "
16May 27, 2024 14:4500000Error: expected "53687623076735741 ", got "53687658398806408 "
17May 27, 2024 14:4400000Error: expected "53681191276939734 ", got "53681202407320417 "
18May 27, 2024 14:4300000Error: expected "53688936284121559 ", got "53689005415161070 "
19May 27, 2024 14:486,303112,536,14052,317,67902,445,312
20May 27, 2024 15:046,346121,545,33852,668,65302,224,128
21May 27, 2024 14:516,362116,495,36252,806,69502,220,032
22May 27, 2024 15:046,413115,345,69853,228,00702,183,168
23May 27, 2024 14:486,445126,941,92553,490,93802,187,264
24May 27, 2024 14:486,455127,241,60053,572,53602,179,072
25May 27, 2024 15:046,484104,922,81753,820,40702,183,168
26May 27, 2024 14:516,504110,920,70153,986,62302,195,456
27May 27, 2024 14:516,531134,155,67154,210,41902,207,744