QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#110688#6542. Optimal Quadratic Functionmoonrabbit2TL 4ms5684kbC++173.0kb2023-06-03 12:34:572023-06-03 12:34:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 5684kb

input:

1
4
0 0
1 3
2 9
3 0

output:

5.06250083774629102340

result:

ok found '5.0625008', expected '5.0625000', error '0.0000002'

Test #2:

score: -100
Time Limit Exceeded

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.0
0.0
0.0
0.0
0.0
543160.12676223921067730771
121.00001270350170758106
0.83200734601644304452
412780.60788138192020824135
12.25000066070660513593
15750.25007068290265532795
118751.38015723632441478230
880245.50565714904547576225
1.00000016548074884416
15.36337635652768440157
854986.713787113953571...

result: