QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#318030#5133. Imperfect Imperial Unitslmq26052003WA 29ms3824kbC++201.6kb2024-01-30 11:09:402024-01-30 11:09:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 0ms
memory: 3812kb

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:

8.50924e+06
1.30446e-05
0.224286

result:

ok 

Test #3:

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

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.4394e-18
3.97351e+20

result:

ok 

Test #4:

score: -100
Wrong Answer
time: 29ms
memory: 3764kb

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:

7.54056e+09
7.48033e-12
6.21273
107.447
537.477
4.80843e-07
2.50069
4.35548e+07
436.991
1.6359e+10
6.08918e-06
70214.2
2.96239
0.0192656
2.91425e+12
5.20322e+06
15634.5
55.3631
1.03915e+08
9.51114e+08
3.6751e+06
110054
0.216159
17377.7
115253
119783
0.312767
1.82553e+10
4.18295e-08
27.6886
4244.27
9...

result:

wrong answer