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 7, 2024 13:53GraceGraceScore: 4,080Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 13:533,98255,284,97230,049,0003,004,0002,486,272
2Jun 7, 2024 13:533,99956,601,22831,180,0002,011,0002,273,280
3Jun 7, 2024 13:534,00563,227,45231,224,0002,014,0002,355,200
4Jun 7, 2024 13:534,02857,501,00831,409,0002,026,0002,494,464
5Jun 7, 2024 13:534,03056,686,02831,424,0002,027,0002,273,280
6Jun 7, 2024 13:534,03862,034,54831,487,0002,031,0002,486,272
7Jun 7, 2024 13:534,04158,193,20632,522,0001,016,0002,478,080
8Jun 7, 2024 13:534,04251,373,71932,535,0001,016,0002,273,280
9Jun 7, 2024 13:534,04360,417,54232,544,0001,017,0002,273,280
10Jun 7, 2024 13:534,04958,858,26632,589,0001,018,0002,494,464
11Jun 7, 2024 13:534,05164,648,50231,586,0002,037,0002,273,280
12Jun 7, 2024 13:534,05260,052,67932,613,0001,019,0002,334,720
13Jun 7, 2024 13:534,05760,231,62732,653,0001,020,0002,482,176
14Jun 7, 2024 13:534,05760,135,26431,631,0002,040,0002,490,368
15Jun 7, 2024 13:534,07455,929,03830,831,0002,983,0002,273,280
16Jun 7, 2024 13:534,07465,213,46232,819,000994,0002,273,280
17Jun 7, 2024 13:534,07564,196,23032,832,000994,0002,486,272
18Jun 7, 2024 13:534,07658,360,80031,844,0001,990,0002,273,280
19Jun 7, 2024 13:534,07764,635,59532,842,000995,0002,310,144
20Jun 7, 2024 13:534,07759,887,15030,855,0002,986,0002,478,080
21Jun 7, 2024 13:534,07761,553,95830,857,0002,986,0002,273,280
22Jun 7, 2024 13:534,07861,084,16131,854,0001,990,0002,273,280
23Jun 7, 2024 13:534,07863,635,10332,849,000995,0002,490,368
24Jun 7, 2024 13:534,07951,280,56631,807,0002,052,0002,486,272
25Jun 7, 2024 13:534,08056,364,26130,878,0002,988,0002,482,176
26Jun 7, 2024 13:534,08061,173,44331,875,0001,992,0002,273,280
27Jun 7, 2024 13:534,08455,574,79131,906,0001,994,0002,482,176
28Jun 7, 2024 13:534,08859,211,42332,934,000998,0002,482,176
29Jun 7, 2024 13:534,09155,857,84632,956,000998,0002,490,368
30Jun 7, 2024 13:534,09355,477,45031,970,0001,998,0002,273,280
31Jun 7, 2024 13:534,09358,163,82730,975,0002,997,0002,490,368
32Jun 7, 2024 13:534,09455,887,54431,980,0001,998,0002,486,272
33Jun 7, 2024 13:534,09756,938,94531,002,0003,000,0002,273,280
34Jun 7, 2024 13:534,10164,023,36631,034,0003,003,0002,273,280
35Jun 7, 2024 13:534,13457,896,36131,282,0003,027,0002,273,280
36Jun 7, 2024 13:534,14057,255,22732,341,0002,021,0002,293,760
37Jun 7, 2024 13:534,238118,815,86335,175,48302,244,608
38Jun 7, 2024 13:534,252101,223,60535,291,43702,240,512
39Jun 7, 2024 13:534,258105,310,49735,342,58502,244,608
40Jun 7, 2024 13:534,262112,741,96235,372,99402,240,512
41Jun 7, 2024 13:534,27197,528,52435,447,63602,236,416
42Jun 7, 2024 13:534,277114,555,52035,498,76402,252,800
43Jun 7, 2024 13:534,278105,263,25835,510,22202,244,608
44Jun 7, 2024 13:534,279103,017,44035,516,01202,244,608
45Jun 7, 2024 13:534,295107,425,84735,651,64402,244,608
46Jun 7, 2024 13:534,301113,886,78435,698,77702,232,320
47Jun 7, 2024 13:534,393104,727,13836,465,88802,252,800
48Jun 7, 2024 13:534,425122,298,68136,723,66002,236,416