QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#318037#5133. Imperfect Imperial Unitslmq26052003AC ✓235ms4100kbC++201.4kb2024-01-30 11:19:582024-01-30 11:19:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3844kb

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.750000000000000
1512.000000000000000
impossible

result:

ok 

Test #2:

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

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.246406570842737
0.000013044642857
0.224285714285714

result:

ok 

Test #3:

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

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:

0.000000000000000
397350679848393599968.000000000000000

result:

ok 

Test #4:

score: 0
Accepted
time: 22ms
memory: 3788kb

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.587878822814673
0.000000000007480
6.212729707253377
107.446579787774860
537.476669975953151
0.000000480843358
2.500692016798174
43554794.101490384582576
436.991253778114712
16358985539.022816552780569
0.000006089181037
70214.207950533542402
2.962394988352400
0.019265570238225
291425157223...

result:

ok 

Test #5:

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

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.740397935289366
2.596281945666641
3025.853579314613018
3.728003738383784
0.217523626423349
92614.933791111344348
1984.852911338613654
1.149948588395278
348149.678729305740092
152.236044177000000
37.117733245147140
133614.050988509591846
2.493195486232432
4.197254255043166
3.768281654977752
...

result:

ok 

Test #6:

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

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.002436357430940
337732353609.354131132364273
68.068215737000000
0.001668716252934
330638221.671210477710702
1.002069884405675
0.597289956631126
0.403257218940906
607366.872773802775725
0.000478795370119
0.112203780372218
544.208521467000000
1.006851121382230
96.053716944322681
328.567740572000000
...

result:

ok 

Test #7:

score: 0
Accepted
time: 50ms
memory: 3920kb

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:

5583007873719478946136576603001814879600756756404240384.000000000000000
5197237613376014437317884601573976479017106056328075936435411381463855910570023915607536989165828281475817527290128699536666352010759245704200192.000000000000000
0.000000000000000
106482.117455527215633
0.000000000000000
8856338...

result:

ok 

Test #8:

score: 0
Accepted
time: 54ms
memory: 3852kb

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:

102257618718385980637184.000000000000000
95.486320206000000
39768869204462313677377398001446890074789008396189872529866752.000000000000000
0.000000000000000
82347688411202814226684610772952152313047158399482898236514304789115942235678225942864134575069852216354835690973509238515980855609383419465723...

result:

ok 

Test #9:

score: 0
Accepted
time: 53ms
memory: 3852kb

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:

6003779053228542274250743468113971380224.000000000000000
0.000000000000000
695538424085371148316952643892872525243565034249696633271011545266017974585963538903177435142167380430084918040245699608576.000000000000000
12851529262049411084991672090624.000000000000000
394118754976227916706731635567113793...

result:

ok 

Test #10:

score: 0
Accepted
time: 7ms
memory: 3848kb

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:

12195814801254158672380572336115227595365750407168.000000000000000
418026513377835311296.000000000000000
0.000000000000000
1094040559263045529984.000000000000000
2293451817426239520569372632761569218819784704.000000000000000
0.000000000000000
0.000000000000000
3194121060310805388384534528.0000000000...

result:

ok 

Test #11:

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

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.706438667762065
4.743644844227781
122341371.168241067076451
26184240520308.747970581054688
14753088366.583697484806180
4119859148495226.702636718750000
0.006111282033358
61982716.146993662783643
43257572.872035437758313
0.000000018521420
0.695157260824453
0.000000001578054
179044.414672542031951
1...

result:

ok 

Test #12:

score: 0
Accepted
time: 38ms
memory: 4088kb

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:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 

Test #13:

score: 0
Accepted
time: 31ms
memory: 3920kb

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:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 

Test #14:

score: 0
Accepted
time: 34ms
memory: 3992kb

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:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 

Test #15:

score: 0
Accepted
time: 41ms
memory: 4088kb

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.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.000000000000000
1.0000000000...

result:

ok 

Test #16:

score: 0
Accepted
time: 90ms
memory: 4100kb

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:

100000000000000000004282085682330180378266138271814331521785817132567606699716335469732373265253400576.000000000000000
100000000000000000004282085682330180378266138271814331521785817132567606699716335469732373265253400576.000000000000000
10000000000000000000428208568233018037826613827181433152178581...

result:

ok 

Test #17:

score: 0
Accepted
time: 235ms
memory: 3800kb

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:

999999999999999999790010849667010672513153021694184298262679966686268884461795783036275078744112821867487694944141249768577764873019535937029745230219799641663443100846686319731513939932335558791135724609116027895101628554609191924972961083959293369410101353460127800061116681122794677262977785059606...

result:

ok 

Test #18:

score: 0
Accepted
time: 67ms
memory: 3916kb

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:

887520371224771505482524089526803145448908631572933660215607296.000000000000000
887520371224771505482524089526803145448908631572933660215607296.000000000000000
887520371224771505482524089526803145448908631572933660215607296.000000000000000
887520371224771505482524089526803145448908631572933660215607...

result:

ok 

Test #19:

score: 0
Accepted
time: 216ms
memory: 4084kb

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:

999999999898999997428624017418097113422273407493870829248216900814869980593754507051729776573649920873340317475757853482774642676534484910126523456593418779950284100107422678891342745460221068849173185952795060556281343838172394611058555383389637670944478112151387134255449338326352476701323685319933...

result:

ok 

Test #20:

score: 0
Accepted
time: 81ms
memory: 3856kb

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:

99999998990000004718937295557971790792143299507948022548300613222049146233217140547550648808268365824.000000000000000
99999998990000004718937295557971790792143299507948022548300613222049146233217140547550648808268365824.000000000000000
9999999899000000471893729555797179079214329950794802254830061322...

result:

ok 

Test #21:

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

input:

1 1
1 a = 0.001 b
0.001 a to b

output:

0.000001000000000

result:

ok 

Test #22:

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

input:

1 1
1 a = 1 b
1 a to b

output:

1.000000000000000

result:

ok 

Test #23:

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

input:

1 1
1 a = 1 b
1 a to a

output:

1.000000000000000

result:

ok 

Test #24:

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

input:

1 1
1 a = 1000 b
1000 a to b

output:

1000000.000000000000000

result:

ok 

Test #25:

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

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: 30ms
memory: 3952kb

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.676890885612944
0.000000000000028
340.081080436519681
0.100724277541676
4694.419229858928686
14205.531743237950200
0.000016057661087
92914.166854727081599
11320511233.661199784837663
3.362086034419558
2637.046857846760302
3231718877845.116286516189575
0.000816935691564
133741.647493137837913
28477...

result:

ok 

Test #27:

score: 0
Accepted
time: 27ms
memory: 3988kb

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.205427014582845
0.000000000000007
1007.133684479700620
5800088.035536495543965
6601.467104208302831
263906.342843350469678
0.000033519215181
0.000000166549598
0.950956775982019
0.489118773630702
150.913586546490316
0.000000096574331
247.385131584898548
0.000876287046140
0.001383504962109
0.859576...

result:

ok 

Test #28:

score: 0
Accepted
time: 33ms
memory: 3916kb

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.494772235358738
0.003813642655981
360.513965390962324
301792139.751706826500595
0.000000005886937
47990.740196403217141
35.303479382214466
2446.088939924671609
30413.413416810288606
0.075208431272792
22.409121046189438
16.815762269317193
11559195350.803610062226653
60.371572060232210
1.802160...

result:

ok 

Test #29:

score: 0
Accepted
time: 5ms
memory: 4012kb

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.855638224469299
64.404204718652374
198357.286772324480850
8462781149856.204376220703125
3135402011.487135197268799
0.000212037403468
0.420004181982524
0.033082215458130
1.387121973879850
6.450829466256333
0.000019289920126
134.908786868346288
19863204.624550974009253
249.655960720186614
0.00062...

result:

ok 

Test #30:

score: 0
Accepted
time: 6ms
memory: 3848kb

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.482154125767932
46374874938711039.433593750000000
140361.096841016895908
163080908269799.007278442382812
5177362542.133855972904712
285.159675870164576
0.000009432315871
5170996061762232.602539062500000
1631.180973193174846
28393.147093772600096
0.012109664024486
5882196.036280473622810
812866...

result:

ok 

Test #31:

score: 0
Accepted
time: 6ms
memory: 3844kb

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.006082870890636
0.000255149771805
69.537809550563665
47347625467.110668458044529
62.278380385648293
1796.758367447087903
0.000000232558644
2.930492980771227
2.907575793594932
0.001545567368434
0.635613054416772
1320363427099.922360539436340
0.000058888307832
0.000000001862461
2705.548892080144363
...

result:

ok 

Test #32:

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

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.265620149000000
0.001648152991541
581.944017378000000
6533661.006118930484263
2917242.990876259810648
358.562137896000000
0.628444768432658
449668.560693951884048
3307193.803237161718926
628.965111630000000
23.715626843501425
57120.751406303214551
87564.960994452865464
5.792655726731100
74299.31...

result:

ok 

Test #33:

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

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.001522565005449
0.809516562002320
0.362815066990853
0.001456792266990
749.182706637000000
0.002647004711458
0.331710001520832
0.001113496209215
0.001745975911982
497980.542462443823212
0.000845829853207
151822498.271807595636346
8150066.505595433056897
971.230891059486506
14.044680041694085
194445...

result:

ok 

Test #34:

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

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.672945212135602
0.847657891362816
67262.021945949058576
0.263020527464379
815.536894928166429
76.911023498870600
108872.586581927024163
0.174137460280015
4.204804102927964
212.147371555074443
0.009243906957664
333.660921023000000
28.610246512223679
459.500820831000000
0.833355122973411
314619...

result:

ok 

Test #35:

score: 0
Accepted
time: 33ms
memory: 3860kb

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.230495191986866
74.234719920061592
67.917303220636817
94.270360914290931
212.453090630446452
151.495321399857692
2440.742088659722306
51.463796519600781
388.721409976580806
282.120735366142017
302.124717730254296
471.138340273521388
23.444326576612790
744.580896507599427
561.293606924283132
8.87...

result:

ok 

Test #36:

score: 0
Accepted
time: 27ms
memory: 4020kb

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.216371914338937
648.797606292996806
812.436673523000000
316.714573063811321
47.595982986483884
579.164197578328845
474.426770114714327
4.019278281979705
43.144964609436383
427.812807679325050
142.312896508258053
1422.658059813992109
544.965714871983424
171.820483763966673
837.585884129000000
72...

result:

ok 

Test #37:

score: 0
Accepted
time: 29ms
memory: 3920kb

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.857741353913845
178.378864793554575
74.232202553119127
388.960115153649536
542.868130409486764
1041.158409866913041
9949.049029566994997
2224.331762046325383
574.800540975648177
899.571243732050982
1257.378572312602333
52.673718193391467
89.165541405556663
462.496283799505287
1.811728135631174
7...

result:

ok 

Test #38:

score: 0
Accepted
time: 6ms
memory: 3948kb

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.228454206247439
268.084981652076847
570.645499806423789
55.853833827867469
1.526079692100926
54.848026418646535
27.128065541449328
4.481854244185099
545.540024136713626
34.873994069957644
2212.220744446996372
457.050785023890294
7751.010411258744392
302.198826818115810
3259.109592198942595
1026....

result:

ok 

Test #39:

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

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.833272600235009
1796.849918131198730
88.967372614073871
423.932069185026890
587.764000227042588
611.526882680283116
1071.410671649320209
457.301088491023285
903.787199402691267
413.609759700672397
361.413058699169829
641.730413270332584
1102.064169419184488
748.798059708881659
264.14679259720299...

result:

ok