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 30, 2023 11:46matsuoka-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 30, 2023 11:5500000Error: expected "53681948219457244 ", got "53681922619457244 "stderr
2Aug 30, 2023 11:5500000Error: expected "53682384508293743 ", got "53682384508268143 "stderr
3Aug 30, 2023 11:5500000Error: expected "53681654337167007 ", got "53681628737167007 "stderr
4Aug 30, 2023 11:5400000Error: expected "53692843659629973 ", got "53692841099629973 "stderr
5Aug 30, 2023 11:4600000Error: expected "53692549153812313 ", got "53692523553812313 "stderr
6Aug 30, 2023 11:468,125135,622,27367,441,15802,277,376
7Aug 30, 2023 11:568,132151,975,97567,497,06302,277,376
8Aug 30, 2023 11:468,161157,328,13667,733,19302,265,088
9Aug 30, 2023 11:568,166130,459,07567,774,59302,273,280
10Aug 30, 2023 11:468,17192,443,10465,827,0001,994,0002,277,376
11Aug 30, 2023 11:468,17195,315,25265,826,0001,994,0002,277,376
12Aug 30, 2023 11:468,21395,096,50067,166,0001,002,0002,277,376
13Aug 30, 2023 11:568,225133,291,28668,268,97702,273,280
14Aug 30, 2023 11:468,239100,021,64568,381,00002,523,136
15Aug 30, 2023 11:468,268105,085,25868,626,00002,514,944
16Aug 30, 2023 11:468,282132,180,97668,741,72502,269,184
17Aug 30, 2023 11:468,28896,543,89866,796,0001,993,0002,277,376
18Aug 30, 2023 11:468,46593,010,17268,249,0002,007,0002,273,280
19Aug 30, 2023 11:468,50697,038,88469,592,0001,008,0002,277,376
20Aug 30, 2023 11:468,51196,466,75069,635,0001,009,0002,273,280