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:30matsuoka-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:3000000Error: expected "53683993905113682 ", got "53683993905111122 "
2Aug 24, 2023 03:2900000Error: expected "53692084024135027 ", got "53692058424135027 "
3Aug 24, 2023 03:309,202137,921,65976,375,96502,273,280
4Aug 24, 2023 03:309,21597,871,84775,475,0001,006,0002,285,568
5Aug 24, 2023 03:309,390141,081,27477,937,74402,285,568
6Aug 24, 2023 03:309,472106,214,02077,611,0001,007,0002,285,568
7Aug 24, 2023 03:309,583100,364,93979,538,00002,510,848
8Aug 24, 2023 03:309,606100,528,54877,738,0001,993,0002,371,584
9Aug 24, 2023 03:309,611108,367,36178,774,000997,0002,514,944
10Aug 24, 2023 03:309,613111,216,51778,794,000997,0002,285,568
11Aug 24, 2023 03:309,616109,097,92677,821,0001,995,0002,285,568
12Aug 24, 2023 03:309,659107,587,62378,169,0002,004,0002,285,568
13Aug 24, 2023 03:309,775106,717,75179,126,0002,003,0002,260,992
14Aug 24, 2023 03:3010,005104,883,03181,043,0002,001,0002,510,848
15Aug 24, 2023 03:3010,017113,497,06782,137,0001,001,0002,523,136
16Aug 24, 2023 03:3010,079109,237,26583,658,00002,355,200
17Aug 24, 2023 03:3012,338152,040,202102,407,85402,281,472