QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#88020#5133. Imperfect Imperial Unitsxiaowuc1AC ✓572ms3720kbC++172.5kb2023-03-14 23:04:082023-03-14 23:04:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3596kb

input:

4 3
1 foot = 12 inch
1 yard = 3 foot
1 meter = 100 centimeter
1 centimeter = 10 millimeter
750 millimeter to meter
42 yard to inch
10 meter to foot

output:

0.75
1512
impossible

result:

ok 

Test #2:

score: 0
Accepted
time: 2ms
memory: 3536kb

input:

4 3
1 fortnight = 14 day
1 microcentury = 0.036525 day
1 microcentury = 1000 nanocentury
1 week = 7 day
22.2 fortnight to nanocentury
2.5 nanocentury to week
3.14 day to fortnight

output:

8509240.2464065700769
1.3044642857142856702e-05
0.2242857142857142827

result:

ok 

Test #3:

score: 0
Accepted
time: 2ms
memory: 3688kb

input:

10 2
1 micrometer = 1000 nanometer
1 millimeter = 1000 micrometer
1 meter = 1000 millimeter
1 kilometer = 1000 meter
1 megameter = 1000 kilometer
1 lightsecond = 299.792458 meter
1 lightminute = 60 lightsecond
1 lighthour = 60 lightminute
1 lightday = 24 lighthour
1 lightyear = 365.25 lightday
42 na...

output:

4.4394035029033851039e-18
3.9735067984839363789e+20

result:

ok 

Test #4:

score: 0
Accepted
time: 335ms
memory: 3588kb

input:

100 10000
1 ooooooooooooooooolol = 913.613760987 ooooooooooooolooooll
1 oooooooooooooloollol = 626.088582061 ooooooooooooololooll
1 oooooooooooooolololo = 955.470952951 oooooooooooooloolooo
1 oooooooooooooooooool = 942.991120183 oooooooooooooooloolo
1 oooooooooooooooloooo = 537.689261619 ooooooooooo...

output:

7540565404.5878782272
7.4803334603848841024e-12
6.2127297072533762545
107.44657978777485141
537.47666997595320026
4.8084335782072257969e-07
2.500692016798174766
43554794.10149038583
436.99125377811475346
16358985539.022817612
6.0891810366032800536e-06
70214.207950533542316
2.9623949883523996718
0.01...

result:

ok 

Test #5:

score: 0
Accepted
time: 2ms
memory: 3676kb

input:

5 42
1 ooooooooooooooooooll = 142.885328495 oooooooooooooooooloo
1 oooooooooooooooooolo = 890.325815433 ooooooooooooooooooll
1 oooooooooooooooooolo = 981.374056267 oooooooooooooooooool
1 ooooooooooooooooolol = 852.547129907 oooooooooooooooooloo
1 ooooooooooooooooooll = 723.801234729 oooooooooooooooo...

output:

57945237.740397945046
2.5962819456666403894
3025.8535793146129436
3.7280037383837831833
0.21752362642334863163
92614.933791111354367
1984.8529113386132394
1.1499485883952775822
348149.67872930574231
152.23604417699999658
37.117733245147142895
133614.05098850963986
2.4931954862324312572
4.19725425504...

result:

ok 

Test #6:

score: 0
Accepted
time: 1ms
memory: 3664kb

input:

5 42
1 oooooooooooooooooooo = 732.078459045 oooooooooooooooooolo
1 ooooooooooooooooolol = 844.175222640 oooooooooooooooooolo
1 oooooooooooooooooool = 997.155262893 ooooooooooooooooooll
1 oooooooooooooooooloo = 645.410166331 ooooooooooooooooolol
1 ooooooooooooooooooll = 485.989361539 oooooooooooooooo...

output:

0.0024363574309401469543
337732353609.35412598
68.068215737000002719
0.0016687162529338093065
330638221.67121046782
1.0020698844056754595
0.59728995663112582903
0.4032572189409058816
607366.87277380283922
0.00047879537011872886363
0.11220378037221766243
544.20852146699996865
1.0068511213822295414
96...

result:

ok 

Test #7:

score: 0
Accepted
time: 288ms
memory: 3584kb

input:

100 10000
1 oooooooooooooooooooo = 100.473080734 oooooooooooooooooool
1 oooooooooooooooooool = 161.954929534 oooooooooooooooooolo
1 oooooooooooooooooolo = 231.933887741 ooooooooooooooooooll
1 ooooooooooooooooooll = 481.662840068 oooooooooooooooooloo
1 oooooooooooooooooloo = 566.369884850 ooooooooooo...

output:

5.5830078737194794416e+54
5.1972376133760153434e+144
1.0675021370715013228e-182
106482.11745552723005
1.7847955870400492233e-21
8.8563381255477426906e+61
1.1969445194214059015e-95
1.9376893983864481087e-52
1.6403345555738859769e-11
1.3755636781483749161e-37
1.1455629474451358707
1.422637718134104718...

result:

ok 

Test #8:

score: 0
Accepted
time: 308ms
memory: 3548kb

input:

100 10000
1 oooooooooooooooooooo = 667.152266248 oooooooooooooooooool
1 oooooooooooooooooool = 275.388730431 oooooooooooooooooolo
1 oooooooooooooooooolo = 850.056569929 ooooooooooooooooooll
1 ooooooooooooooooooll = 968.012584255 oooooooooooooooooloo
1 oooooooooooooooooloo = 602.896729977 ooooooooooo...

output:

1.0225761871838595514e+23
95.486320206000002031
3.9768869204462292475e+61
6.8606260961304472787e-24
8.2347688411202713683e+150
1.8251919555692959286e-111
1.6210301540762591749e+42
1.1882209498507917475e+29
1.6633746281362361966e+157
9.3612381157348136982e-86
1.0758540602275362452e+41
1.0772156574008...

result:

ok 

Test #9:

score: 0
Accepted
time: 288ms
memory: 3548kb

input:

100 10000
1 oooooooooooooooooooo = 119.902630504 oooooooooooooooooool
1 oooooooooooooooooool = 317.399001691 oooooooooooooooooolo
1 oooooooooooooooooolo = 29.526873476 ooooooooooooooooooll
1 ooooooooooooooooooll = 226.003375174 oooooooooooooooooloo
1 oooooooooooooooooloo = 977.948345504 oooooooooooo...

output:

6.0037790532285420995e+39
3.3374734072576076947e-217
6.9553842408537156638e+122
1.2851529262049408216e+31
3.9411875497622833616e+167
4.9264091565269251508e-45
6.4931199273821649817e+32
3.5526367234995062531e+207
1.1347656287157723464e+53
3.4338209932071303416e-06
4.3031650154500047757e+100
358362.93...

result:

ok 

Test #10:

score: 0
Accepted
time: 15ms
memory: 3684kb

input:

42 1337
1 oooooooooooooooooooo = 835.161633070 oooooooooooooooooool
1 oooooooooooooooooool = 628.032987858 oooooooooooooooooolo
1 oooooooooooooooooolo = 613.458608316 ooooooooooooooooooll
1 ooooooooooooooooooll = 669.609173844 oooooooooooooooooloo
1 oooooooooooooooooloo = 192.692866236 ooooooooooooo...

output:

1.2195814801254158833e+49
4.1802651337783522099e+20
1.0409406609215953446e-74
1.0940405592630457795e+21
2.2934518174262407809e+45
8.0142948074927525097e-20
9.5746301279102001744e-85
3.194121060310805634e+27
0.028699705685950496759
5.1956726787224553055e+81
2.6660731102498541963e-92
4.343407463924960...

result:

ok 

Test #11:

score: 0
Accepted
time: 2ms
memory: 3640kb

input:

5 42
1 oooooooooooooooooooo = 415.717707048 oooooooooooooooooool
1 oooooooooooooooooool = 567.879837190 oooooooooooooooooolo
1 oooooooooooooooooolo = 247.709598786 ooooooooooooooooooll
1 ooooooooooooooooooll = 844.646506012 oooooooooooooooooloo
1 oooooooooooooooooloo = 125.341351424 oooooooooooooooo...

output:

0.70643866776206454272
4.7436448442277798776
122341371.16824105382
26184240520308.75
14753088366.583696365
4119859148495227.5
0.006111282033358130493
61982716.146993659437
43257572.872035436332
1.8521419500981083123e-08
0.69515726082445294942
1.578054067170598398e-09
179044.41467254204326
1532578582...

result:

ok 

Test #12:

score: 0
Accepted
time: 570ms
memory: 3676kb

input:

100 10000
1 oooooooooooooooooooo = 0.001000000 oooooooooooooooooool
1 oooooooooooooooooool = 0.001000000 oooooooooooooooooolo
1 oooooooooooooooooolo = 0.001000000 ooooooooooooooooooll
1 ooooooooooooooooooll = 0.001000000 oooooooooooooooooloo
1 oooooooooooooooooloo = 0.001000000 ooooooooooooooooolol
...

output:

1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000002197e-303
1.000000000000...

result:

ok 

Test #13:

score: 0
Accepted
time: 558ms
memory: 3672kb

input:

100 10000
1 oooooooooooooooooooo = 0.001111111 oooooooooooooooooool
1 oooooooooooooooooool = 0.001111111 oooooooooooooooooolo
1 oooooooooooooooooolo = 0.001111111 ooooooooooooooooooll
1 ooooooooooooooooooll = 0.001111111 oooooooooooooooooloo
1 oooooooooooooooooloo = 0.001111111 ooooooooooooooooolol
...

output:

4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1831376940926999062e-299
4.1...

result:

ok 

Test #14:

score: 0
Accepted
time: 563ms
memory: 3548kb

input:

100 10000
1 oooooooooooooooooooo = 0.100000000 oooooooooooooooooool
1 oooooooooooooooooool = 0.100000000 oooooooooooooooooolo
1 oooooooooooooooooolo = 0.100000000 ooooooooooooooooooll
1 ooooooooooooooooooll = 0.100000000 oooooooooooooooooloo
1 oooooooooooooooooloo = 0.100000000 ooooooooooooooooolol
...

output:

1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0000000000000060793e-101
1.0...

result:

ok 

Test #15:

score: 0
Accepted
time: 571ms
memory: 3712kb

input:

100 10000
1 oooooooooooooooooooo = 1.000000000 oooooooooooooooooool
1 oooooooooooooooooool = 1.000000000 oooooooooooooooooolo
1 oooooooooooooooooolo = 1.000000000 ooooooooooooooooooll
1 ooooooooooooooooooll = 1.000000000 oooooooooooooooooloo
1 oooooooooooooooooloo = 1.000000000 ooooooooooooooooolol
...

output:

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 

Test #16:

score: 0
Accepted
time: 572ms
memory: 3716kb

input:

100 10000
1 oooooooooooooooooooo = 10.000000000 oooooooooooooooooool
1 oooooooooooooooooool = 10.000000000 oooooooooooooooooolo
1 oooooooooooooooooolo = 10.000000000 ooooooooooooooooooll
1 ooooooooooooooooooll = 10.000000000 oooooooooooooooooloo
1 oooooooooooooooooloo = 10.000000000 oooooooooooooooo...

output:

1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0000000000000005987e+101
1.0...

result:

ok 

Test #17:

score: 0
Accepted
time: 558ms
memory: 3584kb

input:

100 10000
1 oooooooooooooooooooo = 1000.000000000 oooooooooooooooooool
1 oooooooooooooooooool = 1000.000000000 oooooooooooooooooolo
1 oooooooooooooooooolo = 1000.000000000 ooooooooooooooooooll
1 ooooooooooooooooooll = 1000.000000000 oooooooooooooooooloo
1 oooooooooooooooooloo = 1000.000000000 oooooo...

output:

1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0000000000000003047e+303
1.0...

result:

ok 

Test #18:

score: 0
Accepted
time: 566ms
memory: 3720kb

input:

100 10000
1 oooooooooooooooooooo = 4.200000000 oooooooooooooooooool
1 oooooooooooooooooool = 4.200000000 oooooooooooooooooolo
1 oooooooooooooooooolo = 4.200000000 ooooooooooooooooooll
1 ooooooooooooooooooll = 4.200000000 oooooooooooooooooloo
1 oooooooooooooooooloo = 4.200000000 ooooooooooooooooolol
...

output:

8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.8752037122477529286e+62
8.875203712247...

result:

ok 

Test #19:

score: 0
Accepted
time: 566ms
memory: 3720kb

input:

100 10000
1 oooooooooooooooooooo = 999.999999999 oooooooooooooooooool
1 oooooooooooooooooool = 999.999999999 oooooooooooooooooolo
1 oooooooooooooooooolo = 999.999999999 ooooooooooooooooooll
1 ooooooooooooooooooll = 999.999999999 oooooooooooooooooloo
1 oooooooooooooooooloo = 999.999999999 ooooooooooo...

output:

9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9999999989899956575e+302
9.9...

result:

ok 

Test #20:

score: 0
Accepted
time: 568ms
memory: 3584kb

input:

100 10000
1 oooooooooooooooooooo = 9.999999999 oooooooooooooooooool
1 oooooooooooooooooool = 9.999999999 oooooooooooooooooolo
1 oooooooooooooooooolo = 9.999999999 ooooooooooooooooooll
1 ooooooooooooooooooll = 9.999999999 oooooooooooooooooloo
1 oooooooooooooooooloo = 9.999999999 ooooooooooooooooolol
...

output:

9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9999998989999928811e+100
9.9...

result:

ok 

Test #21:

score: 0
Accepted
time: 2ms
memory: 3656kb

input:

1 1
1 a = 0.001 b
0.001 a to b

output:

9.9999999999999995475e-07

result:

ok 

Test #22:

score: 0
Accepted
time: 2ms
memory: 3536kb

input:

1 1
1 a = 1 b
1 a to b

output:

1

result:

ok 

Test #23:

score: 0
Accepted
time: 2ms
memory: 3632kb

input:

1 1
1 a = 1 b
1 a to a

output:

1

result:

ok 

Test #24:

score: 0
Accepted
time: 2ms
memory: 3596kb

input:

1 1
1 a = 1000 b
1000 a to b

output:

1000000

result:

ok 

Test #25:

score: 0
Accepted
time: 2ms
memory: 3412kb

input:

2 1
1 a = 1 b
1 c = 1 d
1 a to d

output:

impossible

result:

ok 

Test #26:

score: 0
Accepted
time: 333ms
memory: 3592kb

input:

100 10000
1 ooooooooooooooololoo = 493.166249916 oooooooooooooollollo
1 ooooooooooooolollool = 26.647176218 oooooooooooooloolloo
1 oooooooooooooollolol = 886.594366999 oooooooooooooolooloo
1 ooooooooooooolololol = 32.115857191 oooooooooooooolloloo
1 oooooooooooooooooool = 322.957640630 ooooooooooooo...

output:

0.67689088561294441515
2.8452665038373634886e-14
340.08108043651964181
0.10072427754167632974
4694.419229858930521
14205.531743237948831
1.6057661086973329888e-05
92914.166854727081954
11320511233.661197662
3.3620860344195580005
2637.0468578467589396
3231718877845.1152344
0.0008169356915642783613
13...

result:

ok 

Test #27:

score: 0
Accepted
time: 315ms
memory: 3580kb

input:

100 10000
1 ooooooooooooollooool = 137.600936806 ooooooooooooollooolo
1 ooooooooooooooolollo = 203.222671524 oooooooooooooooolloo
1 ooooooooooooollooolo = 543.294644613 ooooooooooooolololoo
1 oooooooooooooloollll = 321.682920121 ooooooooooooolollllo
1 ooooooooooooooololol = 8.196106325 ooooooooooooo...

output:

71.205427014582866718
7.0896787229085174324e-15
1007.1336844797007188
5800088.0355364959687
6601.4671042083018619
263906.34284335043048
3.351921518119302943e-05
1.6654959800439770575e-07
0.95095677598201944214
0.48911877363070221936
150.9135865464903361
9.6574331123197393275e-08
247.3851315848985450...

result:

ok 

Test #28:

score: 0
Accepted
time: 337ms
memory: 3720kb

input:

100 10000
1 oooooooooooooololool = 496.958070250 ooooooooooooooolllol
1 oooooooooooooooolooo = 681.691858619 ooooooooooooooolollo
1 ooooooooooooolollooo = 460.500914411 oooooooooooooollolol
1 oooooooooooooollolol = 472.546824524 oooooooooooooooooooo
1 oooooooooooooollloll = 128.859878296 ooooooooooo...

output:

403648.49477223533904
0.0038136426559810037915
360.51396539096231209
301792139.751706779
5.8869373459734559259e-09
47990.740196403217851
35.303479382214476345
2446.0889399246716494
30413.413416810290073
0.075208431272792475308
22.409121046189440563
16.815762269317190203
11559195350.803609848
60.3715...

result:

ok 

Test #29:

score: 0
Accepted
time: 25ms
memory: 3524kb

input:

42 1337
1 oooooooooooooololool = 44.381840397 oooooooooooooolololo
1 ooooooooooooooooooll = 269.810940492 oooooooooooooooolloo
1 oooooooooooooooololo = 108.649469327 ooooooooooooooolllll
1 ooooooooooooooolollo = 748.960543520 ooooooooooooooloolol
1 ooooooooooooooloolol = 310.489425772 oooooooooooooo...

output:

1120.8556382244694305
64.404204718652366068
198357.2867723244708
8462781149856.203125
3135402011.4871358871
0.00021203740346774013694
0.42000418198252398305
0.033082215458130490027
1.3871219738798497012
6.4508294662563336885
1.9289920126480902227e-05
134.90878686834628297
19863204.624550979584
249.6...

result:

ok 

Test #30:

score: 0
Accepted
time: 15ms
memory: 3556kb

input:

42 1337
1 ooooooooooooooollloo = 330.150347113 oooooooooooooolooloo
1 oooooooooooooooloooo = 901.873145108 ooooooooooooooollool
1 oooooooooooooolooooo = 51.460598371 ooooooooooooooloollo
1 ooooooooooooooollolo = 639.210964090 ooooooooooooooollool
1 ooooooooooooooolllll = 961.822268743 oooooooooooooo...

output:

14283.48215412576792
46374874938711048
140361.09684101690073
163080908269799.03125
5177362542.1338558197
285.15967587016461948
9.4323158711011619552e-06
5170996061762234
1631.180973193174168
28393.147093772600783
0.01210966402448580663
5882196.0362804736942
81286601.152660697699
471575223.0972196459...

result:

ok 

Test #31:

score: 0
Accepted
time: 19ms
memory: 3552kb

input:

42 1337
1 oooooooooooooolooool = 569.980782220 oooooooooooooolooloo
1 ooooooooooooooolllll = 215.830577497 ooooooooooooooolllol
1 oooooooooooooooollll = 880.635117530 oooooooooooooololool
1 oooooooooooooolooolo = 574.997979629 oooooooooooooooooooo
1 oooooooooooooooololo = 298.470367783 ooooooooooooo...

output:

0.0060828708906356006303
0.00025514977180527553943
69.537809550563679295
47347625467.110664368
62.278380385648304696
1796.758367447088176
2.3255864424345465023e-07
2.9304929807712274403
2.9075757935949320121
0.0015455673684340663198
0.63561305441677151684
1320363427099.9223633
5.8888307831524989413e...

result:

ok 

Test #32:

score: 0
Accepted
time: 2ms
memory: 3688kb

input:

5 42
1 oooooooooooooooooolo = 129.806996537 ooooooooooooooooolol
1 oooooooooooooooooooo = 575.147687931 ooooooooooooooooooll
1 oooooooooooooooooloo = 759.822984271 ooooooooooooooooooll
1 ooooooooooooooooolol = 666.896378712 oooooooooooooooooool
1 ooooooooooooooooolol = 57.518957291 ooooooooooooooooo...

output:

899.2656201490000285
0.0016481529915407053949
581.94401737800001229
6533661.0061189299449
2917242.9908762597479
358.56213789600002428
0.62844476843265839605
449668.5606939518475
3307193.8032371615991
628.96511163000002398
23.715626843501418364
57120.751406303214026
87564.960994452863815
5.7926557267...

result:

ok 

Test #33:

score: 0
Accepted
time: 2ms
memory: 3608kb

input:

5 42
1 ooooooooooooooooolol = 513.711702684 ooooooooooooooooooll
1 oooooooooooooooooooo = 635.118265036 ooooooooooooooooolol
1 oooooooooooooooooool = 691.634295323 ooooooooooooooooolol
1 ooooooooooooooooolol = 649.199448277 oooooooooooooooooloo
1 ooooooooooooooooolol = 702.818375033 oooooooooooooooo...

output:

0.0015225650054485461576
0.80951656200232002814
0.36281506699085253054
0.0014567922669898570286
749.18270663700002387
0.0026470047114583697585
0.33171000152083240931
0.0011134962092148464625
0.0017459759119820923625
497980.54246244387468
0.00084582985320672259433
151822498.27180758119
8150066.505595...

result:

ok 

Test #34:

score: 0
Accepted
time: 2ms
memory: 3544kb

input:

5 42
1 oooooooooooooooooool = 126.260390138 oooooooooooooooooloo
1 oooooooooooooooooolo = 799.858354900 ooooooooooooooooooll
1 ooooooooooooooooooll = 100.791760383 oooooooooooooooooloo
1 ooooooooooooooooolol = 549.556228234 oooooooooooooooooloo
1 ooooooooooooooooolol = 600.803115587 oooooooooooooooo...

output:

304830.67294521210715
0.84765789136281599614
67262.021945949061774
0.26302052746437942776
815.53689492816636175
76.911023498870591197
108872.58658192704024
0.17413746028001519939
4.2048041029279641378
212.14737155507444299
0.00924390695766381075
333.66092102300001443
28.610246512223682203
459.500820...

result:

ok 

Test #35:

score: 0
Accepted
time: 347ms
memory: 3588kb

input:

100 10000
1 planck = 132.593277816 oooooooooooooooooool
1 planck = 610.342655336 oooooooooooooooooolo
1 planck = 461.844039046 ooooooooooooooooooll
1 planck = 448.239640872 oooooooooooooooooloo
1 planck = 924.952007926 ooooooooooooooooolol
1 planck = 391.818743373 ooooooooooooooooollo
1 planck = 663...

output:

206.2304951919868472
74.234719920061593257
67.917303220636810579
94.270360914290932897
212.45309063044646791
151.49532139985771551
2440.7420886597224126
51.463796519600784052
388.72140997658078732
282.1207353661420143
302.12471773025430366
471.13834027352140765
23.44432657661278796
744.5808965075995...

result:

ok 

Test #36:

score: 0
Accepted
time: 340ms
memory: 3592kb

input:

100 10000
1 planck = 401.563428858 oooooooooooooooooool
1 planck = 975.997231759 oooooooooooooooooolo
1 planck = 937.013093440 ooooooooooooooooooll
1 planck = 298.209872552 oooooooooooooooooloo
1 planck = 483.564039774 ooooooooooooooooolol
1 planck = 938.369196996 ooooooooooooooooollo
1 planck = 644...

output:

4347.2163719143391063
648.79760629299676111
812.43667352299996764
316.71457306381131502
47.595982986483882371
579.16419757832886717
474.42677011471420201
4.0192782819797043814
43.144964609436378566
427.81280767932503295
142.31289650825806348
1422.6580598139921676
544.96571487198343675
171.8204837639...

result:

ok 

Test #37:

score: 0
Accepted
time: 349ms
memory: 3656kb

input:

100 10000
1 planck = 622.751076397 oooooooooooooooooool
1 planck = 370.788235246 oooooooooooooooooolo
1 planck = 952.034659630 ooooooooooooooooooll
1 planck = 743.103189301 oooooooooooooooooloo
1 planck = 456.313891438 ooooooooooooooooolol
1 planck = 652.437081684 ooooooooooooooooollo
1 planck = 147...

output:

842.85774135391375239
178.37886479355458391
74.232202553119122967
388.96011515364961042
542.86813040948686648
1041.158409866913189
9949.0490295669951593
2224.3317620463253661
574.80054097564823223
899.57124373205078882
1257.3785723126025005
52.673718193391472653
89.165541405556652421
462.49628379950...

result:

ok 

Test #38:

score: 0
Accepted
time: 17ms
memory: 3568kb

input:

42 1337
1 planck = 703.809344507 oooooooooooooooooool
1 planck = 290.944155351 oooooooooooooooooolo
1 planck = 417.218543423 ooooooooooooooooooll
1 planck = 146.901002229 oooooooooooooooooloo
1 planck = 814.107920094 ooooooooooooooooolol
1 planck = 372.579729191 ooooooooooooooooollo
1 planck = 60.93...

output:

654.2284542062473065
268.08498165207680586
570.64549980642379978
55.853833827867482853
1.5260796921009260885
54.848026418646526281
27.128065541449331022
4.4818542441850990343
545.54002413671366867
34.873994069957646502
2212.2207444469963775
457.05078502389034156
7751.0104112587441705
302.19882681811...

result:

ok 

Test #39:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

5 42
1 planck = 392.647811073 oooooooooooooooooool
1 planck = 804.234719107 oooooooooooooooooolo
1 planck = 689.264489552 ooooooooooooooooooll
1 planck = 868.970029219 oooooooooooooooooloo
1 planck = 452.241497065 ooooooooooooooooolol
233.618067562 ooooooooooooooooolol to oooooooooooooooooool
811.91...

output:

202.83327260023500571
1796.8499181311985922
88.967372614073866544
423.9320691850269327
587.76400022704251569
611.52688268028316543
1071.410671649320193
457.30108849102327895
903.78719940269127164
413.60975970067232765
361.41305869916982374
641.73041327033263315
1102.064169419184509
748.7980597088816...

result:

ok