QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#616165 | #2267. Jewelry Size | asdfsdf# | AC ✓ | 91ms | 3992kb | C++23 | 1.2kb | 2024-10-05 23:00:28 | 2024-10-05 23:00:28 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define MAX 1010101
#define PI 3.1415926535897943383
int X[MAX];
typedef long double ld;
signed main() {
ios::sync_with_stdio(false), cin.tie(0);
cout<<fixed;
cout.precision(20);
int N;
cin>>N;
int i;
int mx = 0;
for(i=1;i<=N;i++) cin>>X[i],mx = max(mx, X[i]);
sort(X+1, X+N+1);
ld t=0;
for(i=1;i<N;i++) {
t += asin((ld)X[i]/((ld)X[N]));
}
ld l, r;
l = mx;
if(t>PI/2.0) {
l = X[N];
l*=0.5;
r= 1e8;
int T = 5000;
while(T--){
ld m = l+r;
m/=2.0;
//cout<<l<<' '<<r<<'\n';
ld t=0;
for(i=1;i<=N;i++) {
t += asin(X[i]/(2*m));
}
if(t<PI) r=m;
else l=m;
}
}
else{
l = X[N];
l*=0.5;
r= 1e8;
int T = 5000;
while(T--){
ld m = l+r;
m/=2.0;
//cout<<l<<' '<<r<<'\n';
ld t=0;
for(i=1;i<N;i++) {
t += asin(X[i]/(2*m));
}
if(t<asin(X[N]/(2*m))) l=m;
else r=m;
}
}
cout<<l;
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3704kb
input:
5 3 1 6 1 7
output:
3.54440435091866091533
result:
ok found '3.5444044', expected '3.5444044', error '0.0000000'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3880kb
input:
3 500 300 400
output:
250.00000000000000000000
result:
ok found '250.0000000', expected '250.0000000', error '0.0000000'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
8 2000 3000 4000 2000 3000 4000 2000 3000
output:
3780.97412059948717355518
result:
ok found '3780.9741206', expected '3780.9741206', error '0.0000000'
Test #4:
score: 0
Accepted
time: 2ms
memory: 3944kb
input:
10 602 67 67 67 67 67 67 67 67 67
output:
3003.13981696529170006826
result:
ok found '3003.1398170', expected '3003.1398170', error '0.0000000'
Test #5:
score: 0
Accepted
time: 88ms
memory: 3808kb
input:
1000 4719 3755 2542 1190 5557 3641 5426 1578 5247 3181 3524 983 4151 4337 3004 2062 1048 4739 499 2530 1378 450 5459 651 1714 4051 416 4186 2598 1031 374 5523 4787 1122 4919 2549 4763 4345 2333 4009 5732 5857 3198 3882 2399 4409 4151 3447 1353 4650 4184 2731 3307 3642 3383 5021 5899 2005 3206 702 30...
output:
490696.12979345132663411277
result:
ok found '490696.1297935', expected '490696.1297935', error '0.0000000'
Test #6:
score: 0
Accepted
time: 87ms
memory: 3960kb
input:
1000 2443 973 5013 5104 418 5498 2436 5522 512 1539 3851 355 50 4167 3205 286 1171 5083 867 2208 2497 2455 3142 2247 1531 2986 862 5930 3449 4996 5201 5892 5969 4214 4995 4594 1917 5637 4115 2429 5383 171 990 5433 4338 4195 5720 5509 1483 4793 1716 2187 5454 3065 4434 984 4257 3503 5120 1705 2498 43...
output:
463780.04847993681588036452
result:
ok found '463780.0484799', expected '463780.0484799', error '0.0000000'
Test #7:
score: 0
Accepted
time: 84ms
memory: 3948kb
input:
1000 1854 1474 3499 1575 1422 3130 2402 5948 2378 2670 3423 5104 295 1663 475 66 2687 2978 4618 3027 90 5982 4390 5990 4343 4206 465 4394 2436 5904 3740 4290 5585 5445 4071 1006 2575 472 5161 3159 1348 2583 2262 1643 4247 944 5917 933 3922 4534 2166 2218 4515 555 2208 2857 2967 879 5457 5403 4989 31...
output:
474979.62360427686499519950
result:
ok found '474979.6236043', expected '474979.6236043', error '0.0000000'
Test #8:
score: 0
Accepted
time: 89ms
memory: 3884kb
input:
1000 2343 137 3849 255 2682 1652 1797 4299 3474 4549 3158 4921 4489 2138 1620 2009 4673 5285 355 2131 139 1855 3936 1840 4743 3946 5455 3742 1890 4475 95 2439 4613 2150 2694 5501 3803 4491 3800 1276 1245 5164 196 5734 1302 22 5950 4181 5307 304 311 5446 2159 2453 5493 5108 399 3153 2849 2289 1628 11...
output:
462340.85626304766060457041
result:
ok found '462340.8562630', expected '462340.8562630', error '0.0000000'
Test #9:
score: 0
Accepted
time: 9ms
memory: 3924kb
input:
100 4719 3755 2542 1190 5557 3641 5426 1578 5247 3181 3524 983 4151 4337 3004 2062 1048 4739 499 2530 1378 450 5459 651 1714 4051 416 4186 2598 1031 374 5523 4787 1122 4919 2549 4763 4345 2333 4009 5732 5857 3198 3882 2399 4409 4151 3447 1353 4650 4184 2731 3307 3642 3383 5021 5899 2005 3206 702 303...
output:
48616.36963225940398913849
result:
ok found '48616.3696323', expected '48616.3696323', error '0.0000000'
Test #10:
score: 0
Accepted
time: 9ms
memory: 3796kb
input:
100 2443 973 5013 5104 418 5498 2436 5522 512 1539 3851 355 50 4167 3205 286 1171 5083 867 2208 2497 2455 3142 2247 1531 2986 862 5930 3449 4996 5201 5892 5969 4214 4995 4594 1917 5637 4115 2429 5383 171 990 5433 4338 4195 5720 5509 1483 4793 1716 2187 5454 3065 4434 984 4257 3503 5120 1705 2498 432...
output:
48970.93943721472246366488
result:
ok found '48970.9394372', expected '48970.9394372', error '0.0000000'
Test #11:
score: 0
Accepted
time: 6ms
memory: 3928kb
input:
100 1854 1474 3499 1575 1422 3130 2402 5948 2378 2670 3423 5104 295 1663 475 66 2687 2978 4618 3027 90 5982 4390 5990 4343 4206 465 4394 2436 5904 3740 4290 5585 5445 4071 1006 2575 472 5161 3159 1348 2583 2262 1643 4247 944 5917 933 3922 4534 2166 2218 4515 555 2208 2857 2967 879 5457 5403 4989 319...
output:
47884.14953052304023017882
result:
ok found '47884.1495305', expected '47884.1495305', error '0.0000000'
Test #12:
score: 0
Accepted
time: 10ms
memory: 3868kb
input:
100 2343 137 3849 255 2682 1652 1797 4299 3474 4549 3158 4921 4489 2138 1620 2009 4673 5285 355 2131 139 1855 3936 1840 4743 3946 5455 3742 1890 4475 95 2439 4613 2150 2694 5501 3803 4491 3800 1276 1245 5164 196 5734 1302 22 5950 4181 5307 304 311 5446 2159 2453 5493 5108 399 3153 2849 2289 1628 115...
output:
48019.61516508447710904761
result:
ok found '48019.6151651', expected '48019.6151651', error '0.0000000'
Test #13:
score: 0
Accepted
time: 1ms
memory: 3920kb
input:
10 4719 3755 2542 1190 5557 3641 5426 1578 5247 3181
output:
6009.54525298411806844001
result:
ok found '6009.5452530', expected '6009.5452530', error '0.0000000'
Test #14:
score: 0
Accepted
time: 2ms
memory: 3852kb
input:
10 2443 973 5013 5104 418 5498 2436 5522 512 1539
output:
4889.46749588794702345851
result:
ok found '4889.4674959', expected '4889.4674959', error '0.0000000'
Test #15:
score: 0
Accepted
time: 1ms
memory: 3920kb
input:
10 1854 1474 3499 1575 1422 3130 2402 5948 2378 2670
output:
4340.86617099628709537384
result:
ok found '4340.8661710', expected '4340.8661710', error '0.0000000'
Test #16:
score: 0
Accepted
time: 2ms
memory: 3800kb
input:
10 2343 137 3849 255 2682 1652 1797 4299 3474 4549
output:
4123.01658992128824232637
result:
ok found '4123.0165899', expected '4123.0165899', error '0.0000000'
Test #17:
score: 0
Accepted
time: 23ms
memory: 3860kb
input:
250 4719 3755 2542 1190 5557 3641 5426 1578 5247 3181 3524 983 4151 4337 3004 2062 1048 4739 499 2530 1378 450 5459 651 1714 4051 416 4186 2598 1031 374 5523 4787 1122 4919 2549 4763 4345 2333 4009 5732 5857 3198 3882 2399 4409 4151 3447 1353 4650 4184 2731 3307 3642 3383 5021 5899 2005 3206 702 303...
output:
128109.40651695258333120364
result:
ok found '128109.4065170', expected '128109.4065170', error '0.0000000'
Test #18:
score: 0
Accepted
time: 22ms
memory: 3980kb
input:
250 2443 973 5013 5104 418 5498 2436 5522 512 1539 3851 355 50 4167 3205 286 1171 5083 867 2208 2497 2455 3142 2247 1531 2986 862 5930 3449 4996 5201 5892 5969 4214 4995 4594 1917 5637 4115 2429 5383 171 990 5433 4338 4195 5720 5509 1483 4793 1716 2187 5454 3065 4434 984 4257 3503 5120 1705 2498 432...
output:
125432.98818248451051005077
result:
ok found '125432.9881825', expected '125432.9881825', error '0.0000000'
Test #19:
score: 0
Accepted
time: 22ms
memory: 3864kb
input:
250 1854 1474 3499 1575 1422 3130 2402 5948 2378 2670 3423 5104 295 1663 475 66 2687 2978 4618 3027 90 5982 4390 5990 4343 4206 465 4394 2436 5904 3740 4290 5585 5445 4071 1006 2575 472 5161 3159 1348 2583 2262 1643 4247 944 5917 933 3922 4534 2166 2218 4515 555 2208 2857 2967 879 5457 5403 4989 319...
output:
116578.99306124900991932236
result:
ok found '116578.9930612', expected '116578.9930612', error '0.0000000'
Test #20:
score: 0
Accepted
time: 22ms
memory: 3928kb
input:
250 2343 137 3849 255 2682 1652 1797 4299 3474 4549 3158 4921 4489 2138 1620 2009 4673 5285 355 2131 139 1855 3936 1840 4743 3946 5455 3742 1890 4475 95 2439 4613 2150 2694 5501 3803 4491 3800 1276 1245 5164 196 5734 1302 22 5950 4181 5307 304 311 5446 2159 2453 5493 5108 399 3153 2849 2289 1628 115...
output:
118802.71684377334296556228
result:
ok found '118802.7168438', expected '118802.7168438', error '0.0000000'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
3 4719 3755 2542
output:
2368.99134899299199230605
result:
ok found '2368.9913490', expected '2368.9913490', error '0.0000000'
Test #22:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
3 5104 418 5498
output:
7931.54979172731462888635
result:
ok found '7931.5497917', expected '7931.5497917', error '0.0000000'
Test #23:
score: 0
Accepted
time: 1ms
memory: 3988kb
input:
3 2670 3423 5104
output:
2776.81973771683942642241
result:
ok found '2776.8197377', expected '2776.8197377', error '0.0000000'
Test #24:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
3 1797 4299 3474
output:
2222.97509385832046646669
result:
ok found '2222.9750939', expected '2222.9750939', error '0.0000000'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
4 4719 3755 2542 1190
output:
2385.88448289971151083932
result:
ok found '2385.8844829', expected '2385.8844829', error '0.0000000'
Test #26:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
4 2443 973 5013 5104
output:
2673.31010418536945039136
result:
ok found '2673.3101042', expected '2673.3101042', error '0.0000000'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
4 1854 1474 3499 1575
output:
1762.71848180627131308373
result:
ok found '1762.7184818', expected '1762.7184818', error '0.0000000'
Test #28:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
4 2682 1652 1797 4299
output:
2155.77507246503437765561
result:
ok found '2155.7750725', expected '2155.7750725', error '0.0000000'
Test #29:
score: 0
Accepted
time: 44ms
memory: 3924kb
input:
500 4719 3755 2542 1190 5557 3641 5426 1578 5247 3181 3524 983 4151 4337 3004 2062 1048 4739 499 2530 1378 450 5459 651 1714 4051 416 4186 2598 1031 374 5523 4787 1122 4919 2549 4763 4345 2333 4009 5732 5857 3198 3882 2399 4409 4151 3447 1353 4650 4184 2731 3307 3642 3383 5021 5899 2005 3206 702 303...
output:
247805.37488782484257399119
result:
ok found '247805.3748878', expected '247805.3748878', error '0.0000000'
Test #30:
score: 0
Accepted
time: 45ms
memory: 3864kb
input:
500 2443 973 5013 5104 418 5498 2436 5522 512 1539 3851 355 50 4167 3205 286 1171 5083 867 2208 2497 2455 3142 2247 1531 2986 862 5930 3449 4996 5201 5892 5969 4214 4995 4594 1917 5637 4115 2429 5383 171 990 5433 4338 4195 5720 5509 1483 4793 1716 2187 5454 3065 4434 984 4257 3503 5120 1705 2498 432...
output:
236689.37061878154224814352
result:
ok found '236689.3706188', expected '236689.3706188', error '0.0000000'
Test #31:
score: 0
Accepted
time: 46ms
memory: 3972kb
input:
500 1854 1474 3499 1575 1422 3130 2402 5948 2378 2670 3423 5104 295 1663 475 66 2687 2978 4618 3027 90 5982 4390 5990 4343 4206 465 4394 2436 5904 3740 4290 5585 5445 4071 1006 2575 472 5161 3159 1348 2583 2262 1643 4247 944 5917 933 3922 4534 2166 2218 4515 555 2208 2857 2967 879 5457 5403 4989 319...
output:
240655.23169997417481624780
result:
ok found '240655.2317000', expected '240655.2317000', error '0.0000000'
Test #32:
score: 0
Accepted
time: 46ms
memory: 3872kb
input:
500 2343 137 3849 255 2682 1652 1797 4299 3474 4549 3158 4921 4489 2138 1620 2009 4673 5285 355 2131 139 1855 3936 1840 4743 3946 5455 3742 1890 4475 95 2439 4613 2150 2694 5501 3803 4491 3800 1276 1245 5164 196 5734 1302 22 5950 4181 5307 304 311 5446 2159 2453 5493 5108 399 3153 2849 2289 1628 115...
output:
239234.45908297221777161212
result:
ok found '239234.4590830', expected '239234.4590830', error '0.0000000'
Test #33:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
5 4719 3755 2542 1190 5557
output:
3171.25984181954643981172
result:
ok found '3171.2598418', expected '3171.2598418', error '0.0000000'
Test #34:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
5 2443 973 5013 5104 418
output:
2706.46183374405823296449
result:
ok found '2706.4618337', expected '2706.4618337', error '0.0000000'
Test #35:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
5 1854 1474 3499 1575 1422
output:
1804.04624824949441619371
result:
ok found '1804.0462482', expected '1804.0462482', error '0.0000000'
Test #36:
score: 0
Accepted
time: 1ms
memory: 3948kb
input:
5 2343 137 3849 255 2682
output:
1926.48513828783510304365
result:
ok found '1926.4851383', expected '1926.4851383', error '0.0000000'
Test #37:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
6 4719 3755 2542 1190 5557 3641
output:
3658.24418482906298910606
result:
ok found '3658.2441848', expected '3658.2441848', error '0.0000000'
Test #38:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
6 2443 973 5013 5104 418 5498
output:
3441.78494470853984998904
result:
ok found '3441.7849447', expected '3441.7849447', error '0.0000000'
Test #39:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
6 1854 1474 3499 1575 1422 3130
output:
2223.64733058802473975035
result:
ok found '2223.6473306', expected '2223.6473306', error '0.0000000'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3976kb
input:
6 2343 137 3849 255 2682 1652
output:
2013.75237760949953391698
result:
ok found '2013.7523776', expected '2013.7523776', error '0.0000000'
Test #41:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
7 4719 3755 2542 1190 5557 3641 5426
output:
4485.56734263177966948177
result:
ok found '4485.5673426', expected '4485.5673426', error '0.0000000'
Test #42:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
7 2443 973 5013 5104 418 5498 2436
output:
3760.18015756950062256081
result:
ok found '3760.1801576', expected '3760.1801576', error '0.0000000'
Test #43:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
7 1854 1474 3499 1575 1422 3130 2402
output:
2569.83844551567727565455
result:
ok found '2569.8384455', expected '2569.8384455', error '0.0000000'
Test #44:
score: 0
Accepted
time: 1ms
memory: 3992kb
input:
7 2343 137 3849 255 2682 1652 1797
output:
2218.93807489871268545656
result:
ok found '2218.9380749', expected '2218.9380749', error '0.0000000'
Test #45:
score: 0
Accepted
time: 1ms
memory: 3792kb
input:
3 3 4 5
output:
2.50000000000000000000
result:
ok found '2.5000000', expected '2.5000000', error '0.0000000'
Test #46:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
5 2 2 3 4 4
output:
2.61208404174694336884
result:
ok found '2.6120840', expected '2.6120840', error '0.0000000'
Test #47:
score: 0
Accepted
time: 1ms
memory: 3952kb
input:
4 20 30 40 50
output:
26.17648435778443172239
result:
ok found '26.1764844', expected '26.1764844', error '0.0000000'
Test #48:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
5 20 50 40 30 60
output:
35.20957451165269589885
result:
ok found '35.2095745', expected '35.2095745', error '0.0000000'
Test #49:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
5 11 12 13 14 15
output:
11.09316169065025943930
result:
ok found '11.0931617', expected '11.0931617', error '0.0000000'
Test #50:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
8 1 1 1 1 1 1 1 1
output:
1.30656296487637605080
result:
ok found '1.3065630', expected '1.3065630', error '0.0000000'
Test #51:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
3 13 12 5
output:
6.50000000000000000000
result:
ok found '6.5000000', expected '6.5000000', error '0.0000000'
Test #52:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
3 1300 1200 400
output:
652.87541339731825729142
result:
ok found '652.8754134', expected '652.8754134', error '0.0000000'
Test #53:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
3 60 120 130
output:
65.19048005862567377738
result:
ok found '65.1904801', expected '65.1904801', error '0.0000000'
Test #54:
score: 0
Accepted
time: 0ms
memory: 3952kb
input:
4 6000 5801 100 100
output:
29539.48973212104939101152
result:
ok found '29539.4897321', expected '29539.4897321', error '0.0000000'
Test #55:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
4 6000 1 6000 1
output:
3000.00004166666637694938
result:
ok found '3000.0000417', expected '3000.0000417', error '0.0000000'
Test #56:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
4 6000 100 6000 200
output:
3000.93741864973391297866
result:
ok found '3000.9374186', expected '3000.9374186', error '0.0000000'
Test #57:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
4 6000 5999 1 1
output:
3463.81297609055839159531
result:
ok found '3463.8129761', expected '3463.8129761', error '0.0000000'
Test #58:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
5 6000 1501 1500 1500 1500
output:
91877.75772470294069904639
result:
ok found '91877.7577247', expected '91877.7577247', error '0.0000000'
Test #59:
score: 0
Accepted
time: 1ms
memory: 3952kb
input:
5 6000 6000 1 1 1
output:
3000.00009374999744959922
result:
ok found '3000.0000937', expected '3000.0000937', error '0.0000000'
Test #60:
score: 0
Accepted
time: 1ms
memory: 3948kb
input:
5 6000 6000 6000 1 1
output:
3464.29408126447143190241
result:
ok found '3464.2940813', expected '3464.2940813', error '0.0000000'
Test #61:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
5 6000 6000 6000 6000 1
output:
4242.76568896092477922721
result:
ok found '4242.7656890', expected '4242.7656890', error '0.0000000'
Test #62:
score: 0
Accepted
time: 0ms
memory: 3972kb
input:
5 6000 6000 6000 6000 6000
output:
5103.90485011223789335588
result:
ok found '5103.9048501', expected '5103.9048501', error '0.0000000'
Test #63:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
5 1000 2000 3000 4000 5000
output:
2717.56722526195771272306
result:
ok found '2717.5672253', expected '2717.5672253', error '0.0000000'
Test #64:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
4 6000 2001 2000 2000
output:
89465.07978011592207678859
result:
ok found '89465.0797801', expected '89465.0797801', error '0.0000000'
Test #65:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
5 6000 1510 1510 1510 1510
output:
14662.35416728423864096698
result:
ok found '14662.3541673', expected '14662.3541673', error '0.0000000'
Test #66:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
4 60 21 20 20
output:
91.67913225559696845102
result:
ok found '91.6791323', expected '91.6791323', error '0.0000000'
Test #67:
score: 0
Accepted
time: 91ms
memory: 3880kb
input:
1000 5993 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 ...
output:
94723.64484027044301939213
result:
ok found '94723.6448403', expected '94723.6448403', error '0.0000000'
Test #68:
score: 0
Accepted
time: 90ms
memory: 3980kb
input:
1000 1000 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
6463.68487286161666283135
result:
ok found '6463.6848729', expected '6463.6848729', error '0.0000000'
Test #69:
score: 0
Accepted
time: 86ms
memory: 3976kb
input:
1000 998 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
6444.32099890218231053041
result:
ok found '6444.3209989', expected '6444.3209989', error '0.0000000'
Test #70:
score: 0
Accepted
time: 90ms
memory: 3992kb
input:
1000 999 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
6454.00053440514809999229
result:
ok found '6454.0005344', expected '6454.0005344', error '0.0000000'
Test #71:
score: 0
Accepted
time: 90ms
memory: 3952kb
input:
1000 6000 13 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6...
output:
94889.62808853950627252516
result:
ok found '94889.6280885', expected '94889.6280885', error '0.0000000'
Test #72:
score: 0
Accepted
time: 87ms
memory: 3992kb
input:
1000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 6000 ...
output:
954931.22934950713585067206
result:
ok found '954931.2293495', expected '954931.2293495', error '0.0000000'
Test #73:
score: 0
Accepted
time: 86ms
memory: 3808kb
input:
1000 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600 600...
output:
95493.12293495071358506721
result:
ok found '95493.1229350', expected '95493.1229350', error '0.0000000'
Test #74:
score: 0
Accepted
time: 83ms
memory: 3800kb
input:
1000 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 6...
output:
9549.31229349507135850672
result:
ok found '9549.3122935', expected '9549.3122935', error '0.0000000'
Test #75:
score: 0
Accepted
time: 1ms
memory: 3972kb
input:
3 6000 3000 3001
output:
82182.34670200917351934322
result:
ok found '82182.3467020', expected '82182.3467020', error '0.0000000'
Test #76:
score: 0
Accepted
time: 1ms
memory: 3972kb
input:
10 6000 666 666 667 667 667 667 667 667 667
output:
94302.35309830251122775735
result:
ok found '94302.3530983', expected '94302.3530983', error '0.0000000'
Test #77:
score: 0
Accepted
time: 1ms
memory: 3976kb
input:
10 600 66 66 67 67 67 67 67 67 67
output:
2988.20683300223915046523
result:
ok found '2988.2068330', expected '2988.2068330', error '0.0000000'
Test #78:
score: 0
Accepted
time: 9ms
memory: 3864kb
input:
100 6000 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 ...
output:
15323.79269033314900827492
result:
ok found '15323.7926903', expected '15323.7926903', error '0.0000000'
Test #79:
score: 0
Accepted
time: 86ms
memory: 3984kb
input:
1000 6000 7 7 7 7 7 7 7 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 ...
output:
94889.62832818557946978899
result:
ok found '94889.6283282', expected '94889.6283282', error '0.0000000'
Test #80:
score: 0
Accepted
time: 1ms
memory: 3992kb
input:
3 6000 2999 3002
output:
82182.33757672260721705015
result:
ok found '82182.3375767', expected '82182.3375767', error '0.0000000'
Test #81:
score: 0
Accepted
time: 0ms
memory: 3988kb
input:
4 19 13 26 13
output:
13.36799720535191397363
result:
ok found '13.3679972', expected '13.3679972', error '0.0000000'
Test #82:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
3 3 3 2
output:
1.59099025766973163219
result:
ok found '1.5909903', expected '1.5909903', error '0.0000000'
Test #83:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
3 4 5 6
output:
3.02371578407381746208
result:
ok found '3.0237158', expected '3.0237158', error '0.0000000'
Test #84:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
3 3000 3000 4241
output:
2120.50063398580685247730
result:
ok found '2120.5006340', expected '2120.5006340', error '0.0000000'
Test #85:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
3 3001 3000 6000
output:
82182.34670200917351934322
result:
ok found '82182.3467020', expected '82182.3467020', error '0.0000000'
Test #86:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
3 6000 6000 1
output:
3000.00001041666672052521
result:
ok found '3000.0000104', expected '3000.0000104', error '0.0000000'