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 listJun 5, 2024 15:37GraceGraceScore: 5,763Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 15:375,66369,574,54445,004,0002,000,0002,273,280
2Jun 5, 2024 15:375,69172,104,08744,221,0003,015,0002,490,368
3Jun 5, 2024 15:375,69767,679,25745,273,0002,012,0002,273,280
4Jun 5, 2024 15:375,70368,161,72645,324,0002,014,0002,490,368
5Jun 5, 2024 15:375,71676,594,44245,427,0002,019,0002,273,280
6Jun 5, 2024 15:375,72473,644,18045,488,0002,021,0002,273,280
7Jun 5, 2024 15:375,72670,998,13745,502,0002,022,0002,273,280
8Jun 5, 2024 15:375,72873,576,20846,532,0001,011,0002,494,464
9Jun 5, 2024 15:375,73473,428,64645,564,0002,025,0002,486,272
10Jun 5, 2024 15:375,73877,762,53346,613,0001,013,0002,494,464
11Jun 5, 2024 15:375,73976,280,60145,606,0002,026,0002,273,280
12Jun 5, 2024 15:375,74273,752,75946,643,0001,013,0002,273,280
13Jun 5, 2024 15:375,74674,013,32945,659,0002,029,0002,273,280
14Jun 5, 2024 15:375,76178,691,87744,828,0002,988,0002,273,280
15Jun 5, 2024 15:375,76272,403,76944,833,0002,988,0002,355,200
16Jun 5, 2024 15:375,76375,074,29844,841,0002,989,0002,273,280
17Jun 5, 2024 15:375,77976,270,11544,967,0002,997,0002,420,736
18Jun 5, 2024 15:375,80068,928,90546,134,0002,005,0002,273,280
19Jun 5, 2024 15:375,85069,040,01146,530,0002,023,0002,498,560
20Jun 5, 2024 15:375,86384,268,95847,647,0001,013,0002,482,176
21Jun 5, 2024 15:375,86979,607,38147,695,0001,014,0002,486,272
22Jun 5, 2024 15:375,89274,932,31246,905,0001,995,0002,273,280
23Jun 5, 2024 15:375,914110,914,09749,085,40902,244,608
24Jun 5, 2024 15:375,92072,843,80947,129,0002,005,0002,273,280
25Jun 5, 2024 15:375,945100,757,12549,341,89402,232,320
26Jun 5, 2024 15:375,948115,059,99149,371,91802,244,608
27Jun 5, 2024 15:375,950108,356,37449,387,11702,240,512
28Jun 5, 2024 15:375,952121,252,08149,405,27502,236,416
29Jun 5, 2024 15:376,13078,330,43647,887,0002,992,0002,273,280
30Jun 5, 2024 15:376,132112,195,16050,896,63502,240,512