QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#266536#7734. Intersection over Unionucup-team1878TL 1453ms3752kbC++204.0kb2023-11-26 15:14:452023-11-26 15:14:45

詳細信息

Test #1:

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

input:

3
0 2 2 0 0 -2 -2 0
7 -2 9 -2 9 2 7 2
7 13 11 10 5 2 1 5

output:

0.707106781186548
1
0.623843224831094

result:

ok 3 numbers

Test #2:

score: 0
Accepted
time: 1453ms
memory: 3612kb

input:

10000
-568767734 379152673 -565681345 -54946093 -131582579 -51859704 -134668968 382239062
-194884120 -559906233 -194884142 -158042604 -998611400 -158042648 -998611378 -559906277
459335966 -945199065 478030260 -934243779 450535683 -887326546 431841389 -898281832
-483567491 491964356 -523827401 408140...

output:

0.992965412526470
0.999999931568831
0.590869815678626
0.621770484910804
0.578832384135127
1
0.499999997374176
0.685234580573869
0.455961719767215
0.500287393902085
0.980296110592105
0.492043571791541
0.544037388706711
0.380480107105240
0.923118331764333
0.892558700859666
0.617680319574666
0.94567697...

result:

ok 10000 numbers

Test #3:

score: 0
Accepted
time: 2ms
memory: 3672kb

input:

11
-999999999 238255972 -999999998 238255969 1000000000 904922635 999999999 904922638
678595699 247253438 -168427985 235963055 -168327599 228431927 678696085 239722310
-192017652 -554548342 868151340 -554547158 868151544 -737211410 -192017448 -737212594
-999841167 -113051212 -112620642 -999956242 99...

output:

0.000035355965180
0.500220885906427
0.999996662876985
0.696307888857758
0.000031623277647
0.282517709967133
0.991221032539535
0.164529210010407
0.058187402409082
0.138257593875930
0.047444732176436

result:

ok 11 numbers

Test #4:

score: 0
Accepted
time: 1413ms
memory: 3752kb

input:

10000
-948990367 928227410 -873396995 996000778 851933079 -928405843 776339707 -996179211
-109521044 -738814438 897130737 -601388427 761521924 391952296 -245129857 254526285
534464734 -606222047 863618110 -14372639 -542024234 767366629 -871177610 175517221
636708790 -567653754 157968528 -562763908 1...

output:

0.150788535447270
0.888031200759687
0.612622357966820
0.982425366044265
0.668476523470190
0.999978015363798
0.465324061047445
1
0.959119697955046
0.757335362026497
0.697246932188805
0.292591505482889
0.038463046524085
0.918212709857487
0.933584756018102
0.705784762620976
0.713008366420166
0.85906758...

result:

ok 10000 numbers

Test #5:

score: -100
Time Limit Exceeded

input:

10000
0 1 1 0 4 3 3 4
0 1 3 0 8 15 5 16
0 5 25 0 64 195 39 200
0 7 49 0 124 525 75 532
0 8 4 0 34 15 30 23
0 8 12 0 38 39 26 47
0 40 100 0 274 435 174 475
0 56 196 0 514 1113 318 1169
0 32 8 0 212 51 204 83
0 32 24 0 124 75 100 107
0 160 200 0 692 615 492 775
0 224 392 0 1172 1365 780 1589
0 1081897...

output:

0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.500000000000000
0.499980612135601
0.508975979476750
0.502482809598875
0.499999976772725
0.4999797071...

result: