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 13:28matsuoka-601matsuoka-601Score: 7,087Success
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 13:286,95289,723,51756,691,0001,012,0002,523,136
2Dec 15, 2023 13:286,96389,147,75655,800,0001,992,0002,523,136
3Dec 15, 2023 13:286,96593,136,33356,812,000996,0002,523,136
4Dec 15, 2023 13:286,96881,710,23555,842,0001,994,0002,519,040
5Dec 15, 2023 13:286,96986,370,11955,852,0001,994,0002,392,064
6Dec 15, 2023 13:286,97886,751,89355,920,0001,997,0002,523,136
7Dec 15, 2023 13:286,98782,812,41955,992,0001,999,0002,523,136
8Dec 15, 2023 13:287,045112,932,19058,474,89202,277,376
9Dec 15, 2023 13:287,05481,951,02158,547,00002,396,160
10Dec 15, 2023 13:287,05783,136,83357,565,0001,009,0002,523,136
11Dec 15, 2023 13:287,073139,436,66558,708,55902,232,320
12Dec 15, 2023 13:287,08388,863,27757,789,000996,0002,400,256
13Dec 15, 2023 13:287,08793,351,96356,826,0001,993,0002,396,160
14Dec 15, 2023 13:287,08781,701,29756,832,0001,994,0002,396,160
15Dec 15, 2023 13:287,103128,239,82758,954,92302,277,376
16Dec 15, 2023 13:287,10587,205,09956,972,0001,999,0002,387,968
17Dec 15, 2023 13:287,11583,058,14357,051,0002,001,0002,523,136
18Dec 15, 2023 13:287,129123,817,21759,168,72502,285,568
19Dec 15, 2023 13:287,15285,457,41657,351,0002,012,0002,523,136
20Dec 15, 2023 13:287,16684,001,01257,463,0002,016,0002,404,352
21Dec 15, 2023 13:287,190130,025,47459,676,78602,277,376
22Dec 15, 2023 13:287,21281,703,72257,862,0001,995,0002,523,136
23Dec 15, 2023 13:287,25188,069,82058,180,0002,006,0002,519,040
24Dec 15, 2023 13:287,486125,921,19962,132,78702,273,280