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 20, 2023 00:45sliceteamsliceteamScore: 8,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 20, 2023 00:458,38797,809,63468,605,0001,008,0002,260,992
2Aug 20, 2023 00:458,38893,074,92169,622,00002,523,136
3Aug 20, 2023 00:458,40997,655,36768,801,000997,0002,519,040
4Aug 20, 2023 00:458,41196,032,72168,813,000997,0002,260,992
5Aug 20, 2023 00:458,411103,480,48968,813,000997,0002,260,992
6Aug 20, 2023 00:458,41394,520,17567,835,0001,995,0002,383,872
7Aug 20, 2023 00:458,41596,905,45569,846,00002,260,992
8Aug 20, 2023 00:458,44194,589,15969,060,0001,000,0002,260,992
9Aug 20, 2023 00:458,46489,171,56768,243,0002,007,0002,519,040
10Aug 20, 2023 00:458,482132,325,18970,404,26002,273,280
11Aug 20, 2023 00:458,48596,676,44270,426,00002,383,872
12Aug 20, 2023 00:458,493141,200,78570,491,69902,273,280
13Aug 20, 2023 00:458,564145,236,75971,081,20802,260,992
14Aug 20, 2023 00:458,58692,082,63769,259,0002,007,0002,502,656
15Aug 20, 2023 00:458,59795,092,69370,354,0001,005,0002,260,992