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 16:03GraceGraceScore: 3,935Success
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 16:033,80250,378,74729,518,0002,035,0002,482,176
2Jun 7, 2024 16:033,80255,814,87329,518,0002,035,0002,486,272
3Jun 7, 2024 16:033,83756,460,00828,864,0002,986,0002,273,280
4Jun 7, 2024 16:033,83862,200,57828,870,0002,986,0002,273,280
5Jun 7, 2024 16:033,83863,142,89328,866,0002,986,0002,273,280
6Jun 7, 2024 16:033,85454,029,84129,989,0001,999,0002,482,176
7Jun 7, 2024 16:033,85958,344,91030,028,0002,001,0002,273,280
8Jun 7, 2024 16:033,87056,481,99229,112,0003,011,0002,490,368
9Jun 7, 2024 16:033,87155,494,69330,120,0002,008,0002,494,464
10Jun 7, 2024 16:033,87457,675,05829,138,0003,014,0002,273,280
11Jun 7, 2024 16:033,87559,911,18029,148,0003,015,0002,273,280
12Jun 7, 2024 16:033,87657,509,36229,155,0003,016,0002,273,280
13Jun 7, 2024 16:033,88558,884,65331,240,0001,007,0002,342,912
14Jun 7, 2024 16:033,89054,721,08629,258,0003,026,0002,486,272
15Jun 7, 2024 16:033,89056,092,42929,257,0003,026,0002,482,176
16Jun 7, 2024 16:033,89758,277,55230,322,0002,021,0002,273,280
17Jun 7, 2024 16:033,90062,906,25030,347,0002,023,0002,486,272
18Jun 7, 2024 16:033,90255,915,92629,354,0003,036,0002,490,368
19Jun 7, 2024 16:033,90457,307,29129,365,0003,037,0002,273,280
20Jun 7, 2024 16:033,91357,765,69731,460,0001,014,0002,494,464
21Jun 7, 2024 16:033,92255,858,09630,522,0002,034,0002,494,464
22Jun 7, 2024 16:033,92256,677,07232,556,00002,273,280
23Jun 7, 2024 16:033,92459,258,04030,533,0002,035,0002,273,280
24Jun 7, 2024 16:033,92553,885,05231,558,0001,018,0002,486,272
25Jun 7, 2024 16:033,93560,634,19030,618,0002,041,0002,273,280
26Jun 7, 2024 16:033,93755,819,96631,685,000990,0002,273,280
27Jun 7, 2024 16:033,94057,690,29131,679,0001,021,0002,490,368
28Jun 7, 2024 16:033,94158,059,10731,687,0001,022,0002,486,272
29Jun 7, 2024 16:033,95759,506,12230,854,0001,990,0002,273,280
30Jun 7, 2024 16:033,95960,959,36130,866,0001,991,0002,273,280
31Jun 7, 2024 16:033,96055,338,41230,880,0001,992,0002,273,280
32Jun 7, 2024 16:033,97755,648,27132,011,0001,000,0002,490,368
33Jun 7, 2024 16:033,98560,529,41630,066,0003,006,0002,273,280
34Jun 7, 2024 16:033,98855,597,21530,089,0003,008,0002,355,200
35Jun 7, 2024 16:034,05859,834,06232,659,0001,020,0002,502,656
36Jun 7, 2024 16:034,08162,056,52430,881,0002,988,0002,273,280
37Jun 7, 2024 16:034,17597,858,72234,655,43402,252,800
38Jun 7, 2024 16:034,224104,906,46035,057,33302,236,416
39Jun 7, 2024 16:034,237104,591,37635,166,76502,232,320
40Jun 7, 2024 16:034,252109,412,59435,289,26902,236,416
41Jun 7, 2024 16:034,266111,261,02235,409,10902,244,608
42Jun 7, 2024 16:034,267104,449,23135,414,59702,236,416
43Jun 7, 2024 16:034,311119,726,01035,781,33902,236,416
44Jun 7, 2024 16:034,32399,985,21035,884,88502,244,608
45Jun 7, 2024 16:034,329102,770,13235,930,77302,244,608
46Jun 7, 2024 16:034,343115,943,12436,050,87102,367,488
47Jun 7, 2024 16:034,389103,187,37736,429,95302,375,680
48Jun 7, 2024 16:034,397115,131,16136,497,20602,244,608