QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#775057#6542. Optimal Quadratic Functiondkim110807WA 3617ms4040kbC++171.8kb2024-11-23 14:36:232024-11-23 14:36:24

詳細信息

Test #1:

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

input:

1
4
0 0
1 3
2 9
3 0

output:

5.062500000000000

result:

ok found '5.0625000', expected '5.0625000', error '0.0000000'

Test #2:

score: -100
Wrong Answer
time: 3617ms
memory: 3840kb

input:

60
1
1000 -990
2
171 -638
949 -99
2
633 227
-257 -602
3
634 -994
633 999
-374 995
3
445 -110
586 -121
462 29
9
-995 -224
-458 -833
691 -670
456 -259
-376 55
-563 -12
834 827
-826 -220
299 744
17
997 991
997 976
997 988
998 -986
999 -982
999 -980
999 -996
998 -988
998 -991
997 987
1000 996
999 -1000
...

output:

0.000000000000000
0.000000000000000
0.000000000000000
988810.463577177891409
4886.336405115837453
543160.125996398142547
994336.030237943602799
197634.717187639328813
412780.607179428398894
998499.062125188251059
987708.025825726164214
220509.670956159457546
880245.505473519532416
999998.99799724699...

result:

wrong answer 4th numbers differ - expected: '0.0000000', found: '988810.4635772', error = '988810.4635772'