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 24, 2023 03:59matsuoka-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 24, 2023 03:5900000Error: expected "53681544640610604 ", got "53681544638050604 "stderr
2Aug 24, 2023 03:5900000Error: expected "53691676721570973 ", got "53691651121570973 "stderr
3Aug 24, 2023 03:598,57199,090,12770,136,0001,001,0002,281,472
4Aug 24, 2023 03:598,620101,108,83870,537,0001,007,0002,510,848
5Aug 24, 2023 03:598,923100,269,59873,058,0001,000,0002,277,376
6Aug 24, 2023 03:599,011106,422,65572,796,0001,994,0002,523,136
7Aug 24, 2023 03:599,017100,683,88173,842,000997,0002,277,376
8Aug 24, 2023 03:599,028101,964,78472,933,0001,998,0002,281,472
9Aug 24, 2023 03:599,05596,699,35173,155,0002,004,0002,265,088
10Aug 24, 2023 03:599,153138,043,92475,969,31102,273,280
11Aug 24, 2023 03:599,170104,335,16275,111,0001,001,0002,523,136
12Aug 24, 2023 04:109,172133,443,60176,126,36202,277,376
13Aug 24, 2023 03:599,19296,466,77174,283,0002,007,0002,281,472
14Aug 24, 2023 03:599,227141,674,99476,582,49702,277,376
15Aug 24, 2023 03:599,229104,264,05175,591,0001,007,0002,281,472
16Aug 24, 2023 03:599,346106,158,04677,570,00002,281,472
17Aug 24, 2023 04:109,403140,087,78378,046,91202,281,472
18Aug 24, 2023 04:109,555147,172,30479,305,73102,281,472
19Aug 24, 2023 04:109,596147,322,64079,650,04102,285,568
20Aug 24, 2023 04:109,645149,646,60280,056,20802,281,472
21Aug 24, 2023 03:599,683146,648,65780,365,92002,277,376
22Aug 24, 2023 03:599,690103,851,12079,424,0001,005,0002,281,472
23Aug 24, 2023 04:1011,840159,048,16298,272,73302,273,280