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 4, 2024 07:12GraceGraceScore: 5,195Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 07:125,15973,533,55040,829,0001,991,0002,273,280
2Jun 4, 2024 07:125,16373,134,73540,864,0001,993,0002,392,064
3Jun 4, 2024 07:125,16573,659,47940,878,0001,994,0002,392,064
4Jun 4, 2024 07:125,16869,183,01340,903,0001,995,0002,392,064
5Jun 4, 2024 07:125,16967,653,11040,905,0001,995,0002,392,064
6Jun 4, 2024 07:125,17068,893,51241,914,000997,0002,396,160
7Jun 4, 2024 07:125,17166,072,69841,925,000998,0002,273,280
8Jun 4, 2024 07:125,17466,658,15941,944,000998,0002,273,280
9Jun 4, 2024 07:125,17565,833,11440,956,0001,997,0002,273,280
10Jun 4, 2024 07:125,17669,198,58541,965,000999,0002,396,160
11Jun 4, 2024 07:125,17670,593,08741,959,000999,0002,400,256
12Jun 4, 2024 07:125,17667,175,81040,963,0001,998,0002,273,280
13Jun 4, 2024 07:125,17771,005,52041,969,000999,0002,273,280
14Jun 4, 2024 07:125,17768,051,50340,968,0001,998,0002,404,352
15Jun 4, 2024 07:125,17769,350,80641,974,000999,0002,273,280
16Jun 4, 2024 07:125,17865,237,16241,980,000999,0002,510,848
17Jun 4, 2024 07:125,18072,677,12940,994,0001,999,0002,400,256
18Jun 4, 2024 07:125,18766,416,09142,053,0001,001,0002,273,280
19Jun 4, 2024 07:125,18771,637,26542,054,0001,001,0002,400,256
20Jun 4, 2024 07:125,18768,745,61943,049,00002,273,280
21Jun 4, 2024 07:125,19069,254,17641,074,0002,003,0002,400,256
22Jun 4, 2024 07:125,19270,643,03942,092,0001,002,0002,273,280
23Jun 4, 2024 07:125,19563,146,54741,117,0002,005,0002,519,040
24Jun 4, 2024 07:125,19571,190,56341,112,0002,005,0002,396,160
25Jun 4, 2024 07:125,20268,817,70942,172,0001,004,0002,273,280
26Jun 4, 2024 07:125,21067,143,00141,230,0002,011,0002,273,280
27Jun 4, 2024 07:125,21665,874,73243,295,00002,400,256
28Jun 4, 2024 07:125,22365,873,05043,348,00002,273,280
29Jun 4, 2024 07:125,22468,320,43741,346,0002,016,0002,494,464
30Jun 4, 2024 07:125,24568,081,78642,541,000989,0002,273,280
31Jun 4, 2024 07:125,25673,540,45543,625,00002,273,280
32Jun 4, 2024 07:125,30972,671,48142,060,0002,002,0002,273,280
33Jun 4, 2024 07:125,32468,103,30543,189,0001,004,0002,400,256
34Jun 4, 2024 07:125,389115,486,21544,730,02902,277,376
35Jun 4, 2024 07:125,391111,600,70244,742,17102,281,472
36Jun 4, 2024 07:125,392111,639,71944,750,23502,285,568
37Jun 4, 2024 07:125,394119,496,39944,768,38302,281,472
38Jun 4, 2024 07:125,394114,774,83244,771,95802,281,472
39Jun 4, 2024 07:125,394120,888,31244,766,07702,289,664
40Jun 4, 2024 07:125,397101,752,11944,791,03802,285,568
41Jun 4, 2024 07:125,404120,174,04544,849,51102,289,664
42Jun 4, 2024 07:125,406104,304,06344,866,01302,285,568
43Jun 4, 2024 07:125,41198,057,00644,909,29202,293,760
44Jun 4, 2024 07:125,427105,386,88145,047,83102,289,664
45Jun 4, 2024 07:125,468136,790,32045,388,27702,281,472