QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#427341#3003. Cost of Livinglmq26052003WA 20ms20808kbC++202.8kb2024-06-01 12:54:592024-06-01 12:54:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 7ms
memory: 20808kb

input:

10 100 1000
1.4232425477
1.4587468547
1.4988380864
1.4232605904
1.4616348675
1.4896779426
1.4308848629
1.4737913284
1.4757245744
6.5778960564 1.5393071490 4.3707126564 3.6695325734 2.3650352685 2.8394679709 1.3411604400 9.3106822560 6.3826766975 9.5128884762 7.6533007241 3.9582086668 3.5031379898 6....

output:

6.5779
1.53931
4.37071
3.66953
2.36504
2.83947
1.34116
9.31068
6.38268
9.51289
7.6533
3.95821
3.50314
6.79242
7.84444
5.68786
9.79811
6.83242
3.5961
1.21324
8.62241
3.98143
3.18024
5.85381
9.15969
6.98505
3.23504
7.18615
7.47552
6.47257
4.43337
3.89473
4.98125
1.05438
8.8288
1.62986
2.73219
6.7093
2...

result:

ok 1000 numbers

Test #2:

score: 0
Accepted
time: 20ms
memory: 20648kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 999984.9915250402 999927.5728325787 999990.6803247513 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 999909.1348272597 -1.0000...

output:

34695.6
114941
16078.3
517203
842776
88002.3
177757
538943
825614
291565
195902
999917
572410
62638.7
999924
407778
999978
4747.24
71574
263811
579524
277255
427032
130334
5811.18
35380.6
799082
226251
999923
999936
475276
701438
156563
999943
677383
579790
63700.9
170125
82114.8
254445
336182
96235...

result:

ok 700 numbers

Test #3:

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

input:

4 4 1
-1
-1
-1
5.00 -1 5.00 -1
-1 -1 -1 -1
10.00 -1 10.00 -1
-1 -1 11.00 -1
1 4

output:

11

result:

ok found '11.00000', expected '11.00000', error '0.00000'

Test #4:

score: -100
Wrong Answer
time: 1ms
memory: 4068kb

input:

4 4 8
1.1526548258
1.3314092554
1.0836964938
-1.0000000000 -1.0000000000 -1.0000000000 3.0796000590
4.0215499785 7.3420629650 4.0491125763 3.9906580185
7.3946475528 -1.0000000000 -1.0000000000 -1.0000000000
-1.0000000000 41.6296254448 6.7385283248 -1.0000000000
3 3
1 1
1 4
3 1
4 4
2 1
4 3
2 3

output:

5.78981
2.52628
1.07397
3.2709
7.27722
3.21319
5.9732
19.3781

result:

wrong answer 3rd numbers differ - expected: '11.06720', found: '1.07397', error = '0.90296'