QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#202539#6542. Optimal Quadratic Functionucup-team1209WA 3248ms8196kbC++203.4kb2023-10-06 11:10:312023-10-06 11:10:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4
0 0
1 3
2 9
3 0

output:

5.0625000008

result:

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

Test #2:

score: 0
Accepted
time: 349ms
memory: 8196kb

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.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
543160.1259970805
121.0000000000
0.8320061813
412780.6071794858
12.2500000000
15750.2500000324
118751.3800863442
880245.5054739254
1.0000000003
15.3633733630
854986.7131654843
20.2500000000
24567.6673811681
881031.5630219078
306.250000...

result:

ok 60 numbers

Test #3:

score: 0
Accepted
time: 170ms
memory: 8044kb

input:

1000
1
-585478 527569
1
152984 679945
1
-174472 172630
1
235983 471538
1
-250372 650998
1
521028 -109032
1
121457 989514
1
916700 -223410
1
25908 939341
1
999032 369442
1
249207 -874185
1
-921949 719467
1
-692065 -756006
1
580461 644861
1
-382986 975568
1
644060 -113069
1
-588888 717169
1
2947 -3929...

output:

0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0...

result:

ok 1000 numbers

Test #4:

score: -100
Wrong Answer
time: 3248ms
memory: 7096kb

input:

1000
2
578578 -462573
-614596 -50411
2
568651 926188
-15389 -281674
2
-56242 -213116
215036 310015
2
-568452 -743741
-314862 -573269
2
-428037 -926383
-172945 -31965
2
-58020 145819
-69585 116311
2
-629887 -794837
704590 -761914
2
243217 -433618
98814 -457689
2
147490 681479
665176 -119632
2
-851707...

output:

0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000015994
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000044958
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000001
0.0000000001
0.0000000000
0.0693060015
0.0000004382
0...

result:

wrong answer 6th numbers differ - expected: '0.0000000', found: '0.0000016', error = '0.0000016'