QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#318034#5133. Imperfect Imperial Unitslmq26052003WA 231ms4056kbC++201.7kb2024-01-30 11:14:242024-01-30 11:14:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3864kb

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: 3808kb

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.565224198639044
0.000013044642817
0.224285721778870

result:

ok 

Test #3:

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

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
397350669180322265632.000000000000000

result:

ok 

Test #4:

score: 0
Accepted
time: 23ms
memory: 3836kb

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:

7540564537.644479991402477
0.000000000007480
6.212730108834070
107.446573641034625
537.476709671647500
0.000000480843325
2.500691740715436
43554792.706374238550779
436.991232046907689
16358986507.895296991802752
0.000006089180971
70214.208207794673747
2.962394837191130
0.019265569646915
291425147601...

result:

ok 

Test #5:

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

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:

57945236.572326085977693
2.596281812503848
3025.853579647492659
3.728003847228688
0.217523643288893
92614.927348525256988
1984.852818934673281
1.149948611596740
348149.668672397732735
152.236038208007812
37.117732928680022
133614.050398942531444
2.493195462420687
4.197254377157180
3.768281651363989
...

result:

ok 

Test #6:

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

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.002436357399961
337732341649.693315714597702
68.068214416503906
0.001668716228308
330638224.023795744142262
1.002069848044609
0.597289918258022
0.403257221529862
607366.870237581431866
0.000478795364559
0.112203777519292
544.208496093750000
1.006851088062894
96.053712052969672
328.567749023437500
...

result:

ok 

Test #7:

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

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:

5583007310862210181286069984010659208839241457026990080.000000000000000
5197236351470675857392001562237239418683669101018182076765778061229590785628303372025559749504108591788682440007732034573203749750452877675986944.000000000000000
0.000000000000000
106482.111490586772561
0.000000000000000
8856338...

result:

ok 

Test #8:

score: 0
Accepted
time: 62ms
memory: 4056kb

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:

102257631382041890357248.000000000000000
95.486320495605469
39768878499892185177301268725431827938185613954180848694591488.000000000000000
0.000000000000000
82347708180009488021264812549417984540718705249003204635085806235883561365533759517675446596108954537609897517933660327546258647833495768143767...

result:

ok 

Test #9:

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

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:

6003779337343946842155179756645116805120.000000000000000
0.000000000000000
695538538969435276206936376375638070186219375822389408438246843126013933070806390136950325217857189762031522550938286948352.000000000000000
12851531315116278799624617066496.000000000000000
394118769586956185908746024145544688...

result:

ok 

Test #10:

score: 0
Accepted
time: 3ms
memory: 3816kb

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:

12195813118374318338470644074679757113387011538944.000000000000000
418026484376326980896.000000000000000
0.000000000000000
1094040523414767810432.000000000000000
2293451727188352630193427472545194282563141632.000000000000000
0.000000000000000
0.000000000000000
3194121169096360136512897024.0000000000...

result:

ok 

Test #11:

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

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.706438717311930
4.743644522508175
122341362.838826607759984
26184239133643.153837203979492
14753087649.271572059951723
4119859022874825.309326171875000
0.006111282187846
61982715.103554147262912
43257573.217928272002609
0.000000018521420
0.695157280790760
0.000000001578054
179044.422260284423828
1...

result:

ok 

Test #12:

score: 0
Accepted
time: 36ms
memory: 3832kb

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: 36ms
memory: 3868kb

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: 32ms
memory: 3896kb

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: 29ms
memory: 4056kb

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: 72ms
memory: 3884kb

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: 231ms
memory: 3772kb

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: -100
Wrong Answer
time: 68ms
memory: 3932kb

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:

887516300427171277765834627227099074113681235264848798580473856.000000000000000
887516300427171277765834627227099074113681235264848798580473856.000000000000000
887516300427171277765834627227099074113681235264848798580473856.000000000000000
887516300427171277765834627227099074113681235264848798580473...

result:

wrong answer