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 listDec 15, 2023 14:00matsuoka-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
1Dec 15, 2023 14:0000000Error: expected "53689724724051673 ", got "53689724723795673 "
2Dec 15, 2023 14:0000000Error: expected "53682238545251632 ", got "53682238544969520 "
3Dec 15, 2023 14:006,76779,716,68054,163,0002,006,0002,400,256
4Dec 15, 2023 14:006,81179,825,82055,521,0001,009,0002,260,992
5Dec 15, 2023 14:006,82986,022,70655,668,0001,012,0002,260,992
6Dec 15, 2023 14:006,84883,469,91954,843,0001,994,0002,260,992
7Dec 15, 2023 14:006,87583,946,98355,064,0002,002,0002,400,256
8Dec 15, 2023 14:006,88478,685,08355,130,0002,004,0002,260,992
9Dec 15, 2023 14:006,88479,664,42255,136,0002,004,0002,408,448
10Dec 15, 2023 14:006,98382,923,17955,965,0001,998,0002,400,256
11Dec 15, 2023 14:007,040120,462,53258,427,85302,281,472
12Dec 15, 2023 14:007,158125,713,15359,411,32102,277,376
13Dec 15, 2023 14:007,236123,958,71660,056,38002,285,568
14Dec 15, 2023 14:007,31292,776,58560,688,00002,260,992