QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#882458 | #9808. Fragile Pinball | UESTC_NLNS | AC ✓ | 538ms | 3968kb | C++20 | 3.5kb | 2025-02-05 03:57:53 | 2025-02-05 03:57:53 |
Judging History
answer
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
using ldb = long double;
struct point {
ldb x, y;
point operator+(const point& o) const { return {x + o.x, y + o.y}; }
point operator-(const point& o) const { return {x - o.x, y - o.y}; }
point operator*(const ldb& o) const { return {x * o, y * o}; }
ldb operator^(const point& o) const { return x * o.y - o.x * y; }
ldb operator*(const point& o) const { return x * o.x + o.y * y; }
};
struct seg {
point a, b;
void norm() {
if ((a ^ b) < 0) swap(a, b);
}
};
point fs(const point& a, const point& b, const point& p) {
auto v = b - a;
auto q = a + v * ((p - a) * v / (v * v));
return q * 2 - p;
}
seg fs(const seg& a, const seg& p) {
auto p1 = fs(a.a, a.b, p.a);
auto p2 = fs(a.a, a.b, p.b);
auto ans = seg{p1, p2};
ans.norm();
return ans;
}
point inter(const point& p, const seg& a) {
auto v = a.a - a.b;
auto v1 = p ^ v;
auto v2 = (a.b ^ v);
return p * (v2 / v1);
}
const ldb eps = 1e-11;
bool check(point& a, point& b, const seg& s) {
auto c = s.a, d = s.b;
auto v1 = b - a, v2 = d - c;
ldb val = ((a - c) ^ v1) / (v2 ^ v1);
return -eps <= val && val <= 1 + eps;
}
point inter(point& a, point& b, const seg& s) {
auto c = s.a, d = s.b;
auto v1 = b - a, v2 = d - c;
ldb val = ((a - c) ^ v1) / (v2 ^ v1);
return c + v2 * val;
}
void cmx(ldb& a, ldb b) {
a = max(a, b);
}
int main() {
int n;
cin >> n;
vector<point> a(n);
vector<ldb> ans(n + 10);
for (int i = 0; i < n; ++i) cin >> a[i].x >> a[i].y;
vector<seg> s(n);
for (int i = 0; i < n; ++i) s[i] = {a[i], a[i == n - 1 ? 0 : i + 1]}, s[i].norm();
vector<int> vis(n);
vector<seg> stk;
auto update_ans = [&]() {
for (int i = 0; i < stk.size(); ++i) {
for (int j = 0; j < stk.size(); ++j) {
if (i == j) continue;
int cnt = 0;
for (auto p : {stk[i].a, stk[i].b}) {
for (auto q : {stk[j].a, stk[j].b}) {
if (!check(p, q, stk.back())) continue;
auto begin = inter(p, q, stk.back());
for (int k = 0; k < stk.size() - 1; ++k) {
if (!check(p, q, stk[k])) break;
auto end = inter(p, q, stk[k]);
auto u = end - begin;
cmx(ans[k + 1], u * u);
}
}
}
}
}
};
auto dfs = [&](auto self) -> void {
for (int i = 0; i < n; ++i) {
seg tmp = s[i];
for (const auto& u : stk) tmp = fs(u, tmp);
stk.push_back(tmp);
for (int j = 0; j < n; ++j) {
stk.push_back(s[j]);
update_ans();
stk.pop_back();
}
stk.pop_back();
}
if (stk.size() == n) return;
for (int i = 0; i < n; ++i) {
if (vis[i]) continue;
seg tmp = s[i];
for (const auto& u : stk) tmp = fs(u, tmp);
stk.push_back(tmp);
vis[i] = 1;
self(self);
vis[i] = 0;
stk.pop_back();
}
};
dfs(dfs);
for (int i = 1; i <= n + 1; ++i) cmx(ans[i], ans[i - 1]), printf("%.20LF\n", sqrtl(ans[i]));
}
/*
4
-10 -97
13 -98
90 50
42 97
*/
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 2ms
memory: 3968kb
input:
3 4 0 0 3 0 -1
output:
5.00000000000000000000 8.00000000000000000000 8.86818503879756340688 12.21002481088195582796
result:
ok 4 numbers
Test #2:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
3 4 0 0 3 0 2
output:
5.00000000000000000000 5.36656314599949527165 6.11191913849942517010 6.78220330441662831679
result:
ok 4 numbers
Test #3:
score: 0
Accepted
time: 2ms
memory: 3968kb
input:
3 4 0 0 3 0 1
output:
5.00000000000000000000 6.18465843842649082469 7.19522354274454488095 8.65343949929425340379
result:
ok 4 numbers
Test #4:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
3 62 -12 -48 100 -45 -96
output:
196.02295783912658835857 312.04173783276056028391 326.27847771877617755187 452.80712372911078525406
result:
ok 4 numbers
Test #5:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
3 90 99 -76 -57 99 84
output:
227.79815626997510885632 274.35230645776344959863 306.89177947709210378391 330.10518554643359506739
result:
ok 4 numbers
Test #6:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
3 -67 22 -86 12 -81 -12
output:
36.76955262170047127046 39.56397500565403616349 50.91685591710600820164 72.27758551745063939076
result:
ok 4 numbers
Test #7:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
3 71 -48 -81 2 -83 -44
output:
160.01249951175689324734 308.05679456756879494583 308.05679456756879563972 308.05679456756879563972
result:
ok 4 numbers
Test #8:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
3 44 -44 -31 -77 8 -98
output:
81.93900170248597799455 115.79266829979315254345 125.60604402992012825629 167.93649349697933650938
result:
ok 4 numbers
Test #9:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
3 40 91 -42 90 -5 -99
output:
195.25624189766635985244 378.87426679199884818616 378.87426679199884818616 378.87426679199884821392
result:
ok 4 numbers
Test #10:
score: 0
Accepted
time: 7ms
memory: 3840kb
input:
4 -10 -97 13 -98 90 50 42 97
output:
200.84820138602187641896 269.68734146533457932127 382.16606804049615697672 476.59926283039679295594 476.59926283039679295594
result:
ok 5 numbers
Test #11:
score: 0
Accepted
time: 8ms
memory: 3840kb
input:
4 39 89 -72 -94 87 -58 90 36
output:
214.03270778084362684079 413.74414660992380254889 413.74414660992380254889 502.96571824848038165245 595.01821265490545814769
result:
ok 5 numbers
Test #12:
score: 0
Accepted
time: 8ms
memory: 3840kb
input:
4 -6 -90 33 -75 4 97 -36 -69
output:
187.26718879718358179431 269.54944439736868391777 309.20805779551497013968 364.70165807157006573891 395.37828755440608757832
result:
ok 5 numbers
Test #13:
score: 0
Accepted
time: 7ms
memory: 3840kb
input:
4 44 81 27 81 60 -57 83 3
output:
141.89080308462560815752 187.12271495993614237041 251.47668954805475106939 274.12765684348474595766 286.31951740573043166393
result:
ok 5 numbers
Test #14:
score: 0
Accepted
time: 8ms
memory: 3968kb
input:
4 96 -13 99 1 -67 -36 67 -37
output:
170.07351351694948740634 183.08542624904550162601 223.21210351724533337003 277.37918419740198783252 306.15039727040056255492
result:
ok 5 numbers
Test #15:
score: 0
Accepted
time: 8ms
memory: 3968kb
input:
4 -18 -98 80 -59 73 68 -78 -62
output:
199.25109786397664915492 378.32587882437449525175 378.32587882437449527950 512.61754381185761964002 557.38745761591020350112
result:
ok 5 numbers
Test #16:
score: 0
Accepted
time: 58ms
memory: 3840kb
input:
5 -90 41 -93 27 94 79 83 91 -44 94
output:
194.09533739891847282932 206.35552445442488619931 256.73130200089089889004 337.34690346234038385576 377.92916040834781485347 396.66293866059842476712
result:
ok 6 numbers
Test #17:
score: 0
Accepted
time: 60ms
memory: 3968kb
input:
5 78 -95 96 29 -95 34 -76 -82 64 -95
output:
215.80083410404140512040 379.47435182666498090787 555.07478947948629094400 584.00752731615192037129 640.70943839428946259273 693.17249160291570070358
result:
ok 6 numbers
Test #18:
score: 0
Accepted
time: 61ms
memory: 3840kb
input:
5 45 -26 38 62 -31 57 -40 -43 -13 -91
output:
161.27616066858734593381 297.82777299176100588296 329.10353227991925445517 455.41981978587691623495 496.85877746031244669989 600.67211306306565510305
result:
ok 6 numbers
Test #19:
score: 0
Accepted
time: 59ms
memory: 3840kb
input:
5 -28 78 -63 63 -85 30 -7 -80 61 -77
output:
187.01871564097535530213 342.37197369557829720876 437.28308400341415088097 525.97827796878509770684 704.06445364155765137548 704.06445364155765137548
result:
ok 6 numbers
Test #20:
score: 0
Accepted
time: 60ms
memory: 3968kb
input:
5 -20 91 -21 90 4 -99 18 -92 41 57
output:
191.50979087242511006428 232.38552509711017321492 282.23607929919301484656 389.30670118925803102616 404.07519594642908797311 477.05123579751369897184
result:
ok 6 numbers
Test #21:
score: 0
Accepted
time: 59ms
memory: 3840kb
input:
5 40 -91 65 75 -50 -86 -48 -87 27 -96
output:
197.85348114198041574729 296.42293335198155737609 328.65368766710295050926 385.63003625652226644127 404.17601704445533514209 404.17601704445533514209
result:
ok 6 numbers
Test #22:
score: 0
Accepted
time: 525ms
memory: 3840kb
input:
6 86 57 51 69 2 -52 18 -100 89 -84 87 33
output:
172.19175357722564292939 341.13513513513513514264 400.66607474663487781230 501.26818807479661715965 565.60898515526201690840 622.69084436170576102310 665.70057157328478741887
result:
ok 7 numbers
Test #23:
score: 0
Accepted
time: 523ms
memory: 3840kb
input:
6 99 49 88 89 55 54 23 -38 18 -72 84 -63
output:
175.55910685578233483561 264.07902400267297912673 313.65623365289027912883 390.45459225869388861230 470.75201230253577502904 521.83092340092202299218 550.76882722073886472502
result:
ok 7 numbers
Test #24:
score: 0
Accepted
time: 528ms
memory: 3840kb
input:
6 53 36 -5 100 -56 98 -79 14 -84 -24 73 -27
output:
179.62739212046697194480 314.86278603176689608323 385.34365845359471530740 493.19363041475945041991 606.18147380927169765030 673.30881876648054856771 673.30881876648054856771
result:
ok 7 numbers
Test #25:
score: 0
Accepted
time: 524ms
memory: 3840kb
input:
6 76 84 32 100 77 -80 91 -17 95 37 86 79
output:
185.53975315279472474428 211.90732794510266048804 264.71675522700907073892 315.06240090096084577320 324.87460529965523872709 356.52632735188481677424 356.52632735188481677424
result:
ok 7 numbers
Test #26:
score: 0
Accepted
time: 527ms
memory: 3840kb
input:
6 -35 12 -31 -22 -6 -81 96 -21 69 64 -29 65
output:
163.24827717314507696811 291.51543586797808024769 399.01016364381378703774 496.20629102897916898329 585.32379073847125028340 681.21588357186748741157 681.21588357186748741157
result:
ok 7 numbers
Test #27:
score: 0
Accepted
time: 538ms
memory: 3840kb
input:
6 89 -75 97 1 8 95 -21 87 -23 -98 75 -87
output:
198.72594194015033024214 382.90272141851452342154 570.26730882234772113115 699.34414537321066163145 793.02704231952128943739 950.40118884633639045889 950.40118884633639045889
result:
ok 7 numbers
Test #28:
score: 0
Accepted
time: 534ms
memory: 3840kb
input:
6 -69 88 -100 50 -100 -50 28 -25 70 26 65 90
output:
216.39085008382401564830 349.42495719529176267937 517.36484553593514956749 604.95069939947188875085 740.92680576634774203271 867.57376153472937302391 994.17606371163678147251
result:
ok 7 numbers
Test #29:
score: 0
Accepted
time: 522ms
memory: 3840kb
input:
6 55 99 -32 6 -38 -60 89 -99 97 -98 81 73
output:
201.42740627829173336028 379.48141552389291877856 457.67257638981542269829 590.72607787010560992380 652.19152737941394559762 771.74089929046734182005 888.95129157258038021805
result:
ok 7 numbers
Test #30:
score: 0
Accepted
time: 528ms
memory: 3840kb
input:
6 -64 25 -59 -69 23 -94 73 -88 98 20 92 89
output:
218.55205329623421316165 371.49682436832620416323 490.99591610772436292565 639.68307289248663621839 746.65593329061471539188 869.84255490585634656986 875.95129628514010222684
result:
ok 7 numbers
Test #31:
score: 0
Accepted
time: 526ms
memory: 3840kb
input:
6 -62 -66 78 -48 99 89 73 94 -91 73 -89 -60
output:
239.88538930080756379770 382.62158474822524911740 560.83041053587744778630 628.05618030547877400638 749.57104961614808463777 842.64833099575541697224 933.08433376149133314792
result:
ok 7 numbers
Test #32:
score: 0
Accepted
time: 535ms
memory: 3968kb
input:
6 91 49 68 88 -51 98 -95 35 -21 -72 92 -31
output:
198.30532015051941112371 382.20291545976479527513 500.53906626041821897877 668.39033386651706886150 835.27797034126095637729 965.78701637594614792803 1130.00606032062831607377
result:
ok 7 numbers
Test #33:
score: 0
Accepted
time: 523ms
memory: 3840kb
input:
6 -49 -75 88 10 76 64 -97 46 -75 -62 -72 -67
output:
197.64867821465439792772 371.89821857390740003635 549.69170043994317964575 696.68296671766693844985 739.76424812933601971032 784.40304413306755987323 784.40304413306755987323
result:
ok 7 numbers
Test #34:
score: 0
Accepted
time: 525ms
memory: 3840kb
input:
6 -100 90 -25 -88 85 -85 97 31 83 99 22 100
output:
254.65663156493686725135 407.46069445304241118944 579.31464270957558027053 748.45097805845063804187 833.00017377352724257111 949.74707475619775715048 1042.02941698973380846294
result:
ok 7 numbers
Test #35:
score: 0
Accepted
time: 528ms
memory: 3840kb
input:
6 -61 98 -93 70 -98 34 -74 -94 94 -87 95 36
output:
244.16797496805349881877 482.58980548078541120138 586.62872003064944209649 765.08107055108893862494 925.80044816806836066592 1083.66306198939390714742 1146.06350647541256804196
result:
ok 7 numbers
Test #36:
score: 0
Accepted
time: 510ms
memory: 3840kb
input:
6 -86 -4 -39 -8 -6 -9 39 -6 25 8 -64 7
output:
125.01599897613105102923 127.42780799710371941735 142.20349267536698692482 158.03549038881807141388 158.03549038881807141388 158.17140160488180060383 168.58466237611873105029
result:
ok 7 numbers
Test #37:
score: 0
Accepted
time: 59ms
memory: 3840kb
input:
5 69 -12 69 13 -24 17 -93 -2 -55 -14
output:
162.69296235547498322149 324.00000000000000000000 324.00000000000000002776 329.03886565054470320080 329.03886565054470325631 331.99918919629000035876
result:
ok 6 numbers
Test #38:
score: 0
Accepted
time: 60ms
memory: 3840kb
input:
5 26 46 -20 38 -23 22 -16 -75 24 -30
output:
128.08200498118383219015 203.82145214711231560878 251.13381317712884058246 288.82308757647545924274 341.56319171089158157062 389.09067175248647285635
result:
ok 6 numbers
Test #39:
score: 0
Accepted
time: 522ms
memory: 3840kb
input:
6 -58 -21 -46 -25 7 -25 45 -21 47 25 -82 17
output:
132.56319247815360304332 257.06149326718445127793 282.81532916178454020728 340.92410871119825691022 415.73446708773371760515 415.73446708773371760515 415.73446708773371760515
result:
ok 7 numbers
Test #40:
score: 0
Accepted
time: 530ms
memory: 3968kb
input:
6 19 -61 36 -24 17 76 0 93 -31 52 -3 -93
output:
186.02419197512994439303 203.19556132648073230873 354.19590738062613180515 369.55548580691630886075 396.63530366684395989108 500.34913568233825206799 500.34913568233825206799
result:
ok 7 numbers
Test #41:
score: 0
Accepted
time: 528ms
memory: 3968kb
input:
6 33 -70 44 32 -31 68 -35 25 -31 -50 8 -63
output:
152.11837495845135408146 228.85497591269454414897 330.28234664101104961498 431.92559694799742397997 439.74171457787950051399 527.33313842353863809542 546.34142181922455211440
result:
ok 7 numbers
Test #42:
score: 0
Accepted
time: 528ms
memory: 3840kb
input:
6 10 94 -35 45 -23 -79 31 -51 37 -40 36 20
output:
176.11927776367923773049 244.08226416013451152975 326.06536313796014267541 427.77682537981099672453 478.04805553232048345724 550.23257721289616378746 559.58124772887054276804
result:
ok 7 numbers
Test #43:
score: 0
Accepted
time: 529ms
memory: 3968kb
input:
6 63 -31 42 46 -79 -26 -67 -31 -10 -52 8 -52
output:
142.08800090085017449326 271.36175117359483904833 284.29108617063411332260 342.05661844641372046349 427.94208821920564034258 428.73991826475462763035 428.73991826475462763035
result:
ok 7 numbers
Test #44:
score: 0
Accepted
time: 529ms
memory: 3840kb
input:
6 4 58 -5 -64 88 -16 93 1 67 41 16 59
output:
127.31457104353766780769 245.95406700626659270148 306.91543054279675520335 382.59505786438484234435 469.27864120836854847085 473.92699144409229952690 473.92699144409229952690
result:
ok 7 numbers
Test #45:
score: 0
Accepted
time: 515ms
memory: 3840kb
input:
6 -30 -90 7 -96 47 -35 56 -12 43 68 33 80
output:
181.29809706668186648770 355.78482841194040861565 357.57124139622770445102 373.86881575798423540946 502.97215076427592511665 502.97215076427592511665 502.97215076427592511665
result:
ok 7 numbers
Test #46:
score: 0
Accepted
time: 530ms
memory: 3840kb
input:
6 -34 72 -47 -49 -43 -51 23 -73 95 -13 44 69
output:
155.80115532305914194389 295.76519264498969918886 422.42505248040436047208 529.52901061902953622207 660.52823839441195558075 761.68657230010433806244 886.23223909367760475764
result:
ok 7 numbers
Test #47:
score: 0
Accepted
time: 522ms
memory: 3712kb
input:
6 87 16 60 72 -64 -64 -3 -99 30 -94 48 -82
output:
184.04347312523745132384 359.34578647590436373260 406.69751110683088485276 521.11556103351381380451 629.68361659832791354940 629.68361659832791354940 629.68361659832791354940
result:
ok 7 numbers
Test #48:
score: 0
Accepted
time: 531ms
memory: 3840kb
input:
6 82 10 30 91 -49 73 -41 -85 57 -77 80 -22
output:
189.78145325610719434950 339.86343119840920354302 507.00469772637349799571 598.80421911838102327907 691.79274825131546500234 736.13516251037650767186 745.79227361502668552928
result:
ok 7 numbers
Test #49:
score: 0
Accepted
time: 528ms
memory: 3968kb
input:
6 10 -88 92 -12 94 -3 70 69 -94 -20 -22 -87
output:
188.76705220985997057959 367.45666411156567837670 489.91182966693761111077 545.44721844766726387421 667.49058045939747330078 669.72452118728421810445 679.24267828931664897629
result:
ok 7 numbers
Test #50:
score: 0
Accepted
time: 517ms
memory: 3968kb
input:
6 -5 82 -9 14 3 -92 6 -73 9 5 -1 98
output:
190.04210059878837278668 190.62619134732301233448 191.09364376027895601751 191.09364376027895601751 191.09364376027895601751 191.09364376027895601751 191.09364376027895601751
result:
ok 7 numbers
Test #51:
score: 0
Accepted
time: 519ms
memory: 3840kb
input:
6 3 98 -19 16 -2 -99 7 -92 19 21 14 68
output:
197.06344156134084932841 200.89709278285654982243 214.55026035780283749643 235.20473301332320199830 235.20473301332320201218 251.75583236883966517516 251.75583236883966517516
result:
ok 7 numbers
Test #52:
score: 0
Accepted
time: 519ms
memory: 3968kb
input:
6 17 80 11 92 -22 66 -23 -63 -5 -98 27 41
output:
190.67249408344141130278 214.54331567578536464624 292.33394907432376050305 355.37846381360802436311 379.54951299739833173175 405.50143750194482009097 405.50143750194482009097
result:
ok 7 numbers
Test #53:
score: 0
Accepted
time: 530ms
memory: 3840kb
input:
6 28 25 -6 97 -29 14 -29 -14 3 -99 29 16
output:
196.20652384668558720904 206.10848434034240600488 215.86581128659219047661 264.43867193510954491376 318.85242869251398187269 379.04423576814652749323 420.57993506277793194226
result:
ok 7 numbers
Test #54:
score: 0
Accepted
time: 518ms
memory: 3840kb
input:
6 4 99 -26 75 -15 -92 31 -60 31 61 12 95
output:
191.94269978303420748356 241.17473569995248615372 385.76372041633576576158 417.32318729584754954387 481.02295118960910311201 551.68588091514537496973 551.68588091514537496973
result:
ok 7 numbers
Test #55:
score: 0
Accepted
time: 525ms
memory: 3840kb
input:
6 -11 -97 47 -28 39 60 -49 11 -49 -16 -19 -91
output:
164.76953601925326778344 223.81877597671902280219 314.97700818464149188913 425.35152516805554487322 459.18655066109713044908 555.28904441136877218055 555.28904441136877218055
result:
ok 7 numbers
Test #56:
score: 0
Accepted
time: 520ms
memory: 3840kb
input:
6 18 93 -6 99 -14 -95 -5 -99 33 -74 49 0
output:
198.00252523642217426791 285.15535079127669448873 416.66168330423005020102 490.47334737216109015745 615.65678987359126811407 653.34472469435245761682 653.34472469435245761682
result:
ok 7 numbers
Test #57:
score: 0
Accepted
time: 524ms
memory: 3840kb
input:
6 -24 58 -52 51 -79 -36 -53 -50 91 -24 96 -16
output:
176.13914953808537110225 322.41647928903488265484 409.00363213345412161104 517.48572154287438928932 626.30104075384648537606 651.42056975171131949498 697.64586546399571881372
result:
ok 7 numbers
Test #58:
score: 0
Accepted
time: 536ms
memory: 3968kb
input:
6 11 69 -25 67 -91 -28 -4 -69 99 6 59 56
output:
193.01813386311660225569 318.00720672525946711162 446.78721683064032252353 583.43702570086806385996 669.45035932844455761614 787.32121872036793258642 801.95509926526933169866
result:
ok 7 numbers
Test #59:
score: 0
Accepted
time: 530ms
memory: 3840kb
input:
6 -52 59 -62 54 -99 6 -91 -28 -18 -68 68 50
output:
177.10166571774529754857 335.05305383895870804944 390.14740306734924465970 483.12266494859421886443 629.10148159309582244214 651.34028775004968070395 651.34028775004968070395
result:
ok 7 numbers
Test #60:
score: 0
Accepted
time: 529ms
memory: 3840kb
input:
6 8 -79 72 -55 94 -27 -55 66 -77 -50 -44 -71
output:
175.64168070250295802803 349.23767362841600028767 388.54452217524461030140 504.04070443060848946693 661.86182303433724255504 661.86182303433724255504 661.86182303433724255504
result:
ok 7 numbers
Test #61:
score: 0
Accepted
time: 518ms
memory: 3840kb
input:
6 -14 98 -38 -90 -36 -91 -33 -92 89 -5 73 57
output:
190.94763680129691513221 371.88512081001491982324 546.27172673921839024525 726.77331089657084389755 726.77331089657084389755 810.81025677886703517672 821.83769631311270764673
result:
ok 7 numbers
Test #62:
score: 0
Accepted
time: 523ms
memory: 3840kb
input:
6 -85 32 -75 -54 22 -96 47 -85 87 -22 89 -5
output:
180.27756377319946465287 348.29808720509396458009 513.86635118034625530070 525.73465093794680669248 698.98165437548790063227 698.98165437548790063227 698.98165437548790063227
result:
ok 7 numbers
Test #63:
score: 0
Accepted
time: 534ms
memory: 3840kb
input:
6 94 -32 99 7 63 77 -94 33 -46 -88 68 -72
output:
198.91958174096385325580 388.11330316461616449231 531.42459893240259977132 694.41950471243587716952 777.10452936087323888570 902.64997506052067016702 953.13575935732203597839
result:
ok 7 numbers
Extra Test:
score: 0
Extra Test Passed