QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#338355 | #5570. Epidemic Escape | ucup-team1198# | WA | 3783ms | 32220kb | C++20 | 8.0kb | 2024-02-25 20:54:06 | 2024-02-25 20:54:07 |
Judging History
answer
#pragma GCC optimize("fast-math")
#include <map>
#include <set>
#include <array>
#include <cmath>
#include <deque>
#include <bitset>
#include <random>
#include <string>
#include <vector>
#include <cassert>
#include <complex>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define int int64_t
using ld = __float128;
ld abs(ld x) {
if (x > 0) return x;
return -x;
}
struct IVector {
int x;
int y;
IVector(int x = 0, int y = 0): x(x), y(y) {}
IVector(const IVector& a, const IVector& b): x(b.x - a.x), y(b.y - a.y) {}
};
IVector operator-(const IVector& a) {
return {-a.x, -a.y};
}
int operator%(const IVector& a, const IVector& b) {
return a.x * b.y - a.y * b.x;
}
bool hp(const IVector& v) {
if (v.y == 0) return v.x > 0;
return v.y > 0;
}
bool operator<(const IVector& a, const IVector& b) {
if (hp(a) != hp(b)) return hp(a);
return a % b > 0;
}
bool operator==(const IVector& a, const IVector& b) {
return a.x == b.x && a.y == b.y;
}
istream& operator>>(istream& in, IVector& v) {
in >> v.x >> v.y;
return in;
}
const int MAXN = 1e5 + 100;
bool is_bad[MAXN];
struct Vector {
ld x;
ld y;
Vector(ld x = 0, ld y = 0): x(x), y(y) {}
Vector(const Vector& a, const Vector& b): x(b.x - a.x), y(b.y - a.y) {}
Vector(const IVector& a): x(a.x), y(a.y) {}
Vector(const IVector& a, bool inv) {
ld ln = a.x * a.x + a.y * a.y;
x = a.x; y = a.y;
x /= ln;
y /= ln;
}
ld sqlen() const { return x * x + y * y; }
};
Vector operator-(const Vector& a, const Vector& b) {
return Vector(b, a);
}
Vector operator+(const Vector& a, const Vector& b) {
return {a.x + b.x, a.y + b.y};
}
ld operator%(const Vector& a, const Vector& b) {
return a.x * b.y - a.y * b.x;
}
ld operator*(const Vector& a, const Vector& b) {
return a.x * b.x + a.y * b.y;
}
const ld EPS = 1e-30;
const int MAXK = 5;
vector<Vector> convex(vector<Vector>& p) {
if (p.empty()) return p;
int n = p.size();
Vector minp = p[0];
for (int i = 1; i < n; ++i) {
if (p[i].x < minp.x) {
minp = p[i];
} else if (p[i].x == minp.x && p[i].y < minp.y) {
minp = p[i];
}
}
sort(p.begin(), p.end(), [&](const Vector& u, const Vector& v) {
if (abs((u - minp) % (v - minp)) < EPS) {
return (u - minp).sqlen() < (v - minp).sqlen();
}
return (u - minp) % (v - minp) < 0;
});
p.push_back(p[0]);
/**for (auto elem : p) {
cout << (double)elem.x << " " << (double)elem.y << " : ";
}
cout << endl;*/
vector<Vector> st;
int sz = 0;
vector<Vector> p1;
for (auto v : p) {
while (sz >= 2 && (st[sz - 1] - st[sz - 2]) % (v - st[sz - 1]) >= -EPS) {
p1.push_back(st.back());
st.pop_back();
--sz;
}
st.push_back(v);
++sz;
}
st.pop_back();
p = p1;
return st;
}
vector<Vector> get_bst(const Vector& dir, const vector<Vector>& p, int cnt) {
if (p.empty()) return p;
int n = p.size();
int k = 0;
while ((1 << k) < n) ++k;
int i = 0;
while (k >= 0) {
int i1 = (i + (1 << k)) % n;
int i2 = (i - (1 << k) + 2 * n) % n;
if (dir * p[i1] > dir * p[i]) i = i1;
if (dir * p[i2] > dir * p[i]) i = i2;
--k;
}
vector<Vector> ans = {p[i]};
int sz = min(cnt - 1, n - 1);
int t1 = (i + 1) % n;
int t2 = (i - 1 + n) % n;
for (int _ = 0; _ < sz; ++_) {
if (dir * p[t1] > dir * p[t2]) {
ans.push_back(p[t1]);
t1 = (t1 + 1) % n;
} else {
ans.push_back(p[t2]);
t2 = (t2 - 1 + n) % n;
}
}
return ans;
}
mt19937 rnd;
const int MAX = 100000000;
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cout << fixed << setprecision(10);
int n;
cin >> n;
vector<IVector> p(n);
int cnt0 = 0;
for (int i = 0; i < n; ++i) {
cin >> p[i];
/**p[i].x = rnd() % (2 * MAX) - MAX;
p[i].y = rnd() % (2 * MAX) - MAX;*/
}
vector<IVector> p1;
for (int i = 0; i < n; ++i) {
if (p[i] == IVector()) {
++cnt0;
} else {
p1.push_back(p[i]);
}
}
p = p1;
n = p.size();
int q;
cin >> q;
vector<pair<IVector, int>> qu(q);
for (int i = 0; i < q; ++i) {
cin >> qu[i].first >> qu[i].second;
/**qu[i].first.x = rnd() % (2 * MAX) - MAX;
qu[i].first.y = rnd() % (2 * MAX) - MAX;
qu[i].second = 5;*/
qu[i].second -= cnt0;
}
int cnt = 0;
for (int i = 0; i < n; ++i) {
if (hp(p[i])) ++cnt;
}
vector<pair<IVector, int>> ev;
for (int i = 0; i < n; ++i) {
ev.push_back({p[i], -1});
ev.push_back({-p[i], q});
}
for (int i = 0; i < q; ++i) {
if (qu[i].first == IVector()) {
is_bad[i] = true;
continue;
}
ev.push_back({{qu[i].first.y, -qu[i].first.x}, i});
}
sort(ev.begin(), ev.end());
for (auto elem : ev) {
if (elem.second == -1) {
--cnt;
} else if (elem.second == q) {
++cnt;
} else {
if (cnt < qu[elem.second].second) {
is_bad[elem.second] = true;
}
}
}
vector<Vector> pv;
for (int i = 0; i < n; ++i) {
pv.push_back(Vector(p[i], true));
/// cerr << i << ": " << (double)pv[i].x << " " << (double)pv[i].y << endl;
}
vector<vector<Vector>> hulls;
for (int i = 0; i < MAXK; ++i) {
hulls.push_back(convex(pv));
/**for (Vector v : hulls.back()) {
cout << (double)v.x << " " << (double)v.y << "; ";
}
cout << endl;*/
}
for (int i = 0; i < q; ++i) {
if (is_bad[i]) {
cout << "-1\n";
continue;
}
if (qu[i].second <= 0) {
cout << "0\n";
continue;
}
int k = qu[i].second;
Vector dir = qu[i].first;
vector<Vector> bst;
for (int i = 0; i < k; ++i) {
auto res = get_bst(dir, hulls[i], k - i);
/**vector<Vector> bst1;
int f1 = 0, f2 = 0;
for (int i = 0; i <= k && i < (int)bst.size() + res.size(); ++i) {
if (f2 >= res.size()) {
bst1.push_back(bst[f1++]);
} else if (f1 >= bst.size()) {
bst1.push_back(res[f2++]);
} else if (bst[f1] * dir > res[f2] * dir) {
bst1.push_back(bst[f1++]);
} else {
bst1.push_back(res[f2++]);
}
}
bst = move(bst1);*/
for (auto elem : res) {
bst.push_back(elem);
for (int i = (int)bst.size() - 1; i > 0; --i) {
if (dir * bst[i] > dir * bst[i - 1]) {
swap(bst[i], bst[i - 1]);
} else {
break;
}
}
if ((int)bst.size() > k) bst.pop_back();
}
}
long double ans = dir * bst[k - 1];
/// cout << (double)bst[k - 1].x << " " << (double)bst[k - 1].y << endl;
ans /= sqrtl(dir.x * dir.x + dir.y * dir.y);
ans = 0.5 / ans;
cout << ans << "\n";
if (ans < -1) {
cout << n << "\n";
for (int i = 0; i < n; ++i) {
cout << p[i].x << " " << p[i].y << "\n";
}
cout << qu[i].first.x << " " << qu[i].first.y << " " << qu[i].second << endl;
return 0;
}
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3832kb
input:
5 5 -3 5 4 -6 2 -5 0 4 1 2 -3 -10 1 6 -9 1
output:
8.7002554241 3.2260195623
result:
ok 2 numbers
Test #2:
score: 0
Accepted
time: 1ms
memory: 4068kb
input:
8 4 -1 4 -8 0 9 4 -7 -5 -2 5 -5 7 5 -9 2 10 4 -8 1 7 -7 5 -10 8 2 -9 9 2 4 -7 5 -1 -10 2 6 -3 2 2 -9 3 -10 -10 1 5 9 1
output:
3.1677629681 26.1629509039 5.4614883202 6.3639610307 -1 5.2894082216 3.7267799625 4.6097722286 2.9294423792 4.7617289402
result:
ok 10 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
5 -4 -7 5 0 2 4 -7 -7 4 4 20 0 -5 2 -4 -7 2 -7 7 3 4 -4 3 -7 4 3 4 -4 1 2 4 1 6 -7 2 4 -4 2 4 4 3 5 4 1 -1 9 2 8 9 3 4 -4 2 6 3 3 -10 -3 2 -7 7 1 9 -4 1 -4 -7 3 -2 0 2
output:
7.0000000000 5.1305276580 -1 -1 -1 3.5355339059 2.2360679775 11.9854077945 15.3206469257 3.5355339059 2.4627400913 4.5276925691 3.7629983059 15.3206469257 2.9814239700 5.6217035048 7.0710678119 2.7357938338 -1 8.1250000000
result:
ok 20 numbers
Test #4:
score: 0
Accepted
time: 1ms
memory: 4092kb
input:
100 63 -48 20 -62 -81 -31 -17 -93 2 -74 72 25 -71 37 -71 17 56 67 -47 65 -89 14 62 30 -71 -33 14 -53 -57 -52 30 80 -14 -69 -45 -19 -54 -71 58 -20 -57 12 5 -56 -76 -2 26 61 24 60 10 -97 -63 38 17 81 -43 -38 44 35 -86 37 62 72 77 11 41 29 14 81 77 55 -54 -33 -43 -51 76 14 55 47 43 24 69 -13 16 75 11 9...
output:
26.7586788688 29.5714059979 24.6221445045 27.7717456547 26.6783667129 24.4237024605 28.8933481964 29.7761695578 31.9403629705 27.2149016024 31.7280950457 27.0711605517 25.2991100306 26.8710651521 28.9958394534 28.3563142462 29.9872588920 25.6496237196 25.1496681332 28.3011569706 28.6117519545 26.690...
result:
ok 100 numbers
Test #5:
score: 0
Accepted
time: 127ms
memory: 5744kb
input:
10000 -3 3 -6 2 -4 1 -2 -5 5 -6 -7 -2 0 7 1 -4 8 0 -4 4 -6 -2 5 0 2 9 -4 -8 0 -8 7 4 -7 2 3 3 4 1 -1 7 -4 -2 6 0 3 -5 -7 2 0 -9 7 0 7 3 -6 0 1 7 6 2 2 -9 1 8 3 -3 2 -9 4 2 4 -5 6 0 -3 6 7 3 0 8 0 -4 7 0 -5 8 5 -5 -5 -1 0 9 -4 -3 -9 -1 7 -2 -7 -2 4 0 -6 6 -3 4 6 7 2 5 -8 -5 0 5 4 0 0 -4 0 -6 -5 3 -5 ...
output:
2.1549170046 2.1672659357 2.0676430855 2.1118419787 2.1118419787 2.1118419787 2.1249872786 2.1213203436 2.0275875101 2.0928822829 2.1415372144 2.0615528128 2.1549170046 2.0000000000 2.1213203436 2.1672659357 2.0676430855 2.0203050891 2.0676430855 2.1415372144 2.1213203436 2.0000000000 2.1213203436 2...
result:
ok 10000 numbers
Test #6:
score: 0
Accepted
time: 166ms
memory: 5752kb
input:
10000 -90174 318421 -37261 138897 -260388 -302590 -906833 35071 317743 -283220 390311 -85301 880987 325969 -315218 -116767 103089 -8223 -134988 -973121 -444593 229407 -552060 549321 265624 -337609 -264546 322379 28687 110143 467764 303005 -335748 32188 213125 274156 240105 751 -81255 -129323 148563 ...
output:
218.3023759373 481.6627119891 792.1850756018 579.9542618493 807.7094462678 242.5921754846 882.2675147667 530.7807802597 664.1821759610 796.3607397675 662.7071678987 639.0726192787 125.8211827153 745.7291752667 732.4967218100 676.5327801482 808.9964118683 427.9627407901 1298.3736892031 616.3789303001...
result:
ok 10000 numbers
Test #7:
score: 0
Accepted
time: 1669ms
memory: 28560kb
input:
100000 -14593321 17388753 13488647 1223793 33907737 -8731155 -14502324 73522129 -13933178 -13752140 9462275 13349398 14636622 31405249 5160247 -69775840 -49415260 -40092130 -9926862 -25806124 14982829 -8025116 -5492901 4568113 48872077 86636033 19374632 32538501 -16657133 -11624530 -15398598 -966935...
output:
1331.4977763324 1193.9602287451 1171.2427261871 1856.2890362990 2681.8829458540 1170.8707408363 1128.3614715722 1855.8783379892 3518.3241479702 1541.7860082154 1515.0151223165 1124.4065660466 2146.7167113138 1179.4306789471 1164.1588782715 1251.5110829082 2737.3506509053 1117.3515869945 2213.1263918...
result:
ok 100000 numbers
Test #8:
score: 0
Accepted
time: 1194ms
memory: 29484kb
input:
100000 -60674143 79489917 99210432 12541486 -99948887 -3196593 57015830 -82153478 10407645 99456921 -90320128 42921703 93983821 34161956 96773928 -25195355 69603194 71801068 27259746 -96212811 96031961 27890165 76618755 -64261689 -99095784 13417302 -95521354 -29591717 -34815155 -93743823 -93393132 -...
output:
49999995.0818661941 49999995.9004091124 49999995.3149217014 49999995.3054674002 49999994.5577050093 49999996.4862814266 49999994.6940732430 49999995.1368903976 49999995.7255437915 49999995.4937630891 49999997.2567733076 49999994.7944017604 49999994.9287077410 49999995.7829386723 49999994.9440986489 ...
result:
ok 100000 numbers
Test #9:
score: 0
Accepted
time: 1225ms
memory: 31940kb
input:
100000 28442101 95869943 64560849 76366848 -85662377 51594149 95580169 -29401185 -40181553 -91572058 67627360 -73665047 82527643 56472888 29700208 95487675 87983116 -47528622 62992785 77665358 -2222699 99975284 -64132427 76726992 -76047272 64936977 87016456 49276108 95274227 30377974 -62944509 -7770...
output:
49999994.8309710390 49999995.5183788592 49999994.9251787021 49999995.5234946922 49999994.8275525085 49999994.6394857935 49999994.8678172358 49999996.4713342653 49999995.0233866907 49999995.4033335249 49999994.9916431116 49999994.9030463941 49999995.6710114568 49999995.2659545375 49999995.3312548597 ...
result:
ok 100000 numbers
Test #10:
score: 0
Accepted
time: 1203ms
memory: 28988kb
input:
100000 66926611 74302272 -39804607 -91736532 -31850108 94792239 -94396583 -33004302 -57766222 81627580 -80246004 59670576 74979879 -66166588 37426246 -92732280 -40775354 -91309200 99674197 8065507 94244794 -33435279 -24613128 -96923641 28694420 -95794726 97637671 -21607478 -49066338 -87134919 612455...
output:
49999995.7715908148 49999995.4357772327 49999996.4043741883 49999994.8179789327 49999997.2285060446 49999995.8582851484 49999995.0825320438 49999994.5402301618 49999994.6179780847 49999995.4909426205 49999995.5851056779 49999994.7581311457 49999997.0426210118 49999994.9688381011 49999995.9953611581 ...
result:
ok 100000 numbers
Test #11:
score: 0
Accepted
time: 1209ms
memory: 31376kb
input:
100000 31516589 94903656 70239724 71178504 -57719682 81660501 73612201 67684871 82391354 -56671542 72801723 -68555878 26893692 -96315770 -83483265 55050367 87478845 -48450493 -85026739 52635096 -26511823 96421583 95776532 -28755096 88242174 -47045913 77725402 -62918677 -14344932 98965762 -25054341 -...
output:
49999995.1416609891 49999995.1742068688 49999995.8579723495 49999997.1304232285 49999995.6565237637 49999995.2441420847 49999995.3516391511 49999994.6824236612 49999995.6391572192 49999995.6166996073 49999995.0758054910 49999997.0231123448 49999994.7090391855 49999996.2098523259 49999995.4048886005 ...
result:
ok 100000 numbers
Test #12:
score: 0
Accepted
time: 1389ms
memory: 30492kb
input:
100000 -77953946 -62635297 -97003745 24295529 -95559516 -29468254 -37774475 -92590972 -78235761 62282941 24449261 96965108 -32126090 -94699061 -90361637 -42834246 -15234257 -98832767 -67393723 -73878858 -77089954 63695658 -87433336 -48532575 45142341 -89230981 80543145 -59268883 99006350 -14062036 -...
output:
49999994.8800609984 49999995.6036443484 49999995.4473164310 49999994.8234286120 49999994.7814365927 49999994.9757974577 49999994.9918332584 49999996.4288837310 49999995.4920812346 49999996.1784076709 49999995.1575361160 49999994.5227592685 49999995.0962231795 49999994.7197688141 49999995.0631763546 ...
result:
ok 100000 numbers
Test #13:
score: 0
Accepted
time: 2229ms
memory: 28632kb
input:
100000 -14994761 -98790003 -52791662 84821895 87513045 48313812 19785427 97922747 98912337 -14130131 -4520530 -99837938 93690283 34834919 99547007 8570663 86380533 -50241768 -46722739 88350371 69496929 -71791216 -85910197 -51161960 5199588 99844597 11410781 -99298438 -99814172 5122831 99748209 57815...
output:
49950309.3056237988 49950587.9321183814 49950271.2551974819 49950284.2250954475 49950441.6709376118 49950141.2846822302 49950288.3766497255 49950469.2183907807 49950744.1464028661 49950688.2312025683 49950339.5676553654 49950216.2988869351 49950092.5740196349 49950416.5313250064 49950177.6632704128 ...
result:
ok 100000 numbers
Test #14:
score: 0
Accepted
time: 1900ms
memory: 29232kb
input:
100000 87107311 49115334 -98093001 -19436093 86159431 -50759733 -90576186 -42378693 99725385 7405849 -93030414 -36678893 7164898 99742981 88908273 -45774642 -87848897 47776244 98650729 -16371688 -13992770 99016167 -36675953 93031566 -28482368 95857989 -38312130 -92369793 86372731 50395931 -50997291 ...
output:
49999995.7797225483 49999994.6245876048 49999998.3509637771 49999995.5115784139 49999995.0933498618 49999994.8836178114 49999997.9886450427 49999996.2295945657 49999998.0441679807 49999995.8618392846 49999996.7392814076 49999996.2061849361 49999996.8127210472 49999997.1296632283 49999998.4672184243 ...
result:
ok 100000 numbers
Test #15:
score: 0
Accepted
time: 2299ms
memory: 29956kb
input:
100000 87353211 -48676647 78574311 -61855286 1089525 99994063 -99999914 -125343 -79940915 -60078697 97608574 -21738565 -99570798 9254977 -57082835 -82106930 77989099 62591525 -36640991 -93045345 -82795 -99999957 99857762 5331654 91364668 40650900 -89488349 -44629962 24733984 96892872 87543386 483337...
output:
49999998.4114884826 49999997.9731765491 49999997.2725407361 49999998.4609082007 49999994.7726248631 49999996.2591437467 49999997.4391602003 49999997.4595152484 49999994.9463549853 49999996.9207552870 49999997.9735086032 49999996.5709999078 49999996.1017815344 49999997.6848153128 49999995.7377748194 ...
result:
ok 100000 numbers
Test #16:
score: 0
Accepted
time: 2542ms
memory: 32220kb
input:
100000 -95807142 28504127 58593535 -80943524 -99766431 5986168 93220087 -35989826 3645498 -99841657 69856363 -71476864 6430623 99747801 99074166 -13444307 25226151 96750874 -99820804 -4584947 80958147 58644185 99854141 3972407 93127038 36267563 83656508 -54710699 73943321 -67286687 22540877 -9736065...
output:
49951675.8764737743 49951660.7759727305 49951740.4114056055 49951465.4638304028 49950200.2577471236 49950954.5130789854 49951162.3204078494 49950823.9987229996 49951011.4364624367 49951169.7614416876 49950251.9870868726 49950960.8967498478 49951548.7213694641 49950976.9117757239 49950703.5493174638 ...
result:
ok 100000 numbers
Test #17:
score: 0
Accepted
time: 3029ms
memory: 28512kb
input:
100000 -18866705 98167110 96374803 -26445175 -90527905 42406852 93525949 35171769 -99675297 7020406 -99946706 -2220134 31631621 -94776631 -46384811 88576816 -2476324 99950315 69306249 -72003171 -30910251 -95067123 85457008 51882654 82372940 -56613508 6032490 99757677 99488049 -9473775 97295326 22667...
output:
49950435.4342463168 49950523.6429177893 49951727.0368673848 49950791.7197091727 49952062.1846697600 49951220.3037158485 49950723.9434544286 49951030.2751690404 49951362.7755594238 49951028.0508876230 49951744.1141123088 49951224.7437644795 49952317.4008079955 49951224.1601771633 49951151.4789893492 ...
result:
ok 100000 numbers
Test #18:
score: 0
Accepted
time: 2509ms
memory: 29116kb
input:
100000 -94544376 30244008 -5524553 -99134196 64736465 74935295 -10781223 -98537615 -27540414 96110283 94534101 -30554453 -49000527 -87040163 -70553197 70503800 90093758 -41264733 51497088 84792240 -50688507 -85177162 95747827 28411115 -85773541 -50275968 -34190721 93830767 -42611828 90282250 -315970...
output:
49503286.6071341862 49503940.1660004199 49500902.0574530688 49502328.8001762668 49504050.8899425749 49503864.7113224403 49502762.9502231849 49505338.4543824051 49503140.1828940405 49508220.5136476464 49506314.7348970712 49508005.3967640638 49501854.4901581556 49506908.0257155500 49503251.9579029106 ...
result:
ok 100000 numbers
Test #19:
score: 0
Accepted
time: 2740ms
memory: 29604kb
input:
100000 -72724429 68353169 -23398454 96972722 98697156 15295066 -50053634 86257978 95660227 -25689933 -98427638 12257835 -95720479 25986032 99360720 -9958797 -34453585 -93167496 97657115 21470158 -61854668 77939046 -78666489 60608092 99656422 -4271277 37176490 92108858 92266107 -36908241 84966021 -52...
output:
49505232.2522462104 49505902.9530284100 49506391.3517989339 49501384.8619998096 49501974.5375367875 49503956.2921274886 49506260.8484404916 49507848.9578431358 49507844.1977249836 49507646.9159879079 49505334.2111403260 49504283.4305713325 49503897.6784182638 49506239.9631956961 49506420.6701118899 ...
result:
ok 100000 numbers
Test #20:
score: 0
Accepted
time: 2887ms
memory: 31524kb
input:
100000 -98189095 15784434 89982407 42479712 -98538151 10378719 48446566 -87123427 90936804 -40512021 67828507 72315413 -19102654 97627943 -40632682 -90422395 -71928032 68028353 59463681 -80194272 -61979681 77927882 -89859188 -41650204 -40753972 -90873220 -31802337 -94326140 29901118 94629634 8981744...
output:
49501432.7022043765 49504111.9000156403 49506914.0037283619 49504020.3841625653 49500748.1808290217 49509533.2816175665 49504423.6514928474 49503519.1264973206 49507687.1662349230 49501887.8451572912 49501129.4738505480 49506066.7849481715 49503294.6517206474 49500496.9255725455 49503260.6522218648 ...
result:
ok 100000 numbers
Test #21:
score: 0
Accepted
time: 2586ms
memory: 29396kb
input:
100000 74210313 -66772568 -82118759 55744795 -40558611 -90552265 -80801514 58093666 -87555090 46582002 -96330979 24086781 39402894 91628283 56594773 -82141487 39313600 91784698 89239441 43417687 -95774367 28264902 32961837 93669012 -85873036 -51077556 -27532569 -96083438 82705246 -55505999 -22508180...
output:
49506572.9114001307 49507188.3698279338 49504015.5868492220 49502226.2551336864 49511712.3791654684 49508088.3725657533 49508038.4721606655 49511153.9459437267 49503445.7644251330 49505408.2422356359 49501120.2191417217 49504635.7946901289 49501929.8603164177 49500674.3593257255 49508683.1372701624 ...
result:
ok 100000 numbers
Test #22:
score: 0
Accepted
time: 2559ms
memory: 29132kb
input:
100000 -71207198 55424979 -79825607 -56036270 -83654833 37345395 -91097555 -17973035 -79663519 53088655 40943861 -91076400 84688501 31061641 -96431516 -1566452 -89205053 17120308 66023621 -67658770 -85253305 44553904 -95493219 -8941382 -79301859 45970085 -27319544 -90541866 -90379686 -10409784 -8376...
output:
45036750.1372239081 45027842.8818135627 45013570.7649708689 45012430.8467586790 45008268.5080020579 45035953.6251026984 45011940.3266864407 45033497.6378687234 45035993.0317809311 45018438.5524730843 45010458.6109155562 45008354.7259051865 45032420.0671344288 45019612.3304007581 45010086.5286969899 ...
result:
ok 100000 numbers
Test #23:
score: 0
Accepted
time: 2500ms
memory: 31472kb
input:
100000 38905528 81237636 -87968422 -27436984 9608199 91019553 78087433 -61515160 -93465529 27267558 13655649 -92011700 -4844144 -90101777 -76856347 -55299593 7037669 95820739 73512631 -55423174 66171160 -69809341 -38015506 -91878674 92573512 18160315 -89558982 43574979 41250811 89067345 90892069 312...
output:
45035187.3884272974 45009163.6065221989 45033436.3931769841 45019451.0239726607 45022200.7504397128 45014848.4584343798 45024066.2168218609 45004916.9090575680 45009051.6157130487 45011633.8119250022 45006265.9086879572 45025389.7773992522 45018143.2059153051 45004427.2401311876 45017652.0731754354 ...
result:
ok 100000 numbers
Test #24:
score: 0
Accepted
time: 2518ms
memory: 29264kb
input:
100000 73858871 59646768 74771059 50581404 69886208 66567485 -98824001 3209940 71195346 65729342 -31147238 89170502 -93247841 -18314860 25371727 94636356 96922565 192144 11319923 -96984253 -90534277 -37798172 92579912 22026541 -85805605 34201581 -34434706 84998535 28174675 -86301411 18885420 9491316...
output:
45004913.3664170944 45049419.1160457681 45013923.5129688185 45018139.6488505513 45036905.8127368647 45014915.9261846652 45021998.4164936971 45005546.4190510395 45013393.3187403220 45031474.2617547221 45023802.2902519771 45024466.4821735796 45028156.9922565102 45028587.9272050929 45021843.4432482475 ...
result:
ok 100000 numbers
Test #25:
score: 0
Accepted
time: 2200ms
memory: 29760kb
input:
100000 6192364 97854354 -26396072 -87670473 -15829494 95984810 29977494 -87073709 85322761 44933323 -10724758 96451337 25075242 -88807937 88653656 -28596396 -7234959 97007100 -98015205 5615321 -46753278 -86423176 -84626507 -46187913 58215823 -70504834 88062585 26935126 79507695 56070039 -81885399 -4...
output:
45007894.8356611436 45013616.1135625201 45048543.6061462096 45027729.0330647820 45013317.4985193662 45020005.9202678623 45013214.4532615194 45017977.1928253231 45015065.2213866702 45019880.1661492955 45029719.3585011695 45018055.1420109609 45027958.6147321080 45032293.0370835621 45023771.4683760886 ...
result:
ok 100000 numbers
Test #26:
score: 0
Accepted
time: 2557ms
memory: 28948kb
input:
100000 -56925997 -77019489 93686323 23015852 -96967479 14925388 -69298767 71247873 -89975226 -39629378 -81202105 -57862266 -30611438 -91102049 69779237 60415278 85454036 38912399 -23494246 -94997385 11333990 -97239874 26776076 95709458 7400584 -95188065 94132228 33609835 31334391 -91724795 15440367 ...
output:
45031230.0083619330 45031012.6837546242 45051159.9267532924 45057523.9439006005 45021248.9383935129 45034531.5222572914 45010861.9044016793 45036940.6662583623 45011332.8873037123 45014214.3833544224 45031679.2282824025 45012785.3672063191 45001127.1071561677 45030055.9623051226 45008553.3961223973 ...
result:
ok 100000 numbers
Test #27:
score: 0
Accepted
time: 3248ms
memory: 29800kb
input:
100000 86473583 -50222687 87983523 47527871 50172327 -86502810 -50052528 -86572186 -81465580 57994464 99757942 6953600 -89115446 45369999 -98572877 16834073 86724085 -49788872 -72244940 -69142374 95384011 -30031466 31730815 -94832244 -96383253 26650854 70233115 71185027 38343247 92356888 -76013019 6...
output:
49999997.4571804445 49999998.4627793917 49999997.1012831272 49999996.8661267463 49999998.6305340222 49999998.5050832598 49999996.2101661278 49999998.6642196312 49999997.4219625144 49999996.6097953529 49999997.2465502875 49999997.5784507015 49999997.7963023625 49999996.7176688653 49999998.5363129047 ...
result:
ok 100000 numbers
Test #28:
score: 0
Accepted
time: 2845ms
memory: 31764kb
input:
100000 96098382 27660424 96993975 -24334494 98858570 15065921 -70174372 71242940 59401282 80445550 -34968800 -93686616 -45576276 89010123 -93157321 36355368 -98590008 -16733454 29170468 95650836 81074291 -58540220 92315133 -38443648 88517611 -46525596 99591182 -9033025 17031645 -98538935 -76791060 -...
output:
49999997.2281586992 49999997.3025419674 49999996.6710480845 49999996.7132198505 49999998.7399825526 50000000.5315516597 49999998.0506880440 49999998.9604979678 49999996.7553592107 49999997.1424608377 49999998.7725008478 49999997.5903435250 49999998.3012374512 49999999.1442935974 49999997.1038764379 ...
result:
ok 100000 numbers
Test #29:
score: 0
Accepted
time: 2850ms
memory: 28720kb
input:
100000 98649054 -16381761 -99891340 -4660392 85079131 -52550367 98751502 -15752448 38325930 -92364069 16772724 98583333 75122377 66004758 95139156 30798377 -24102560 97051870 89328512 44949025 -83521481 -54992370 -22923261 97337161 -49154851 87085012 67965351 -73353320 -79586737 60547083 44791227 -8...
output:
49999996.8124151280 49999996.7088924272 49999997.6572201374 49999997.0251825251 49999997.5584498117 49999997.9676561649 49999998.1619126608 49999996.5120547797 49999998.4548825087 49999998.2111204075 49999998.4433880100 49999997.0462427771 49999997.1573696596 49999997.0651829779 49999995.5362256137 ...
result:
ok 100000 numbers
Test #30:
score: 0
Accepted
time: 2784ms
memory: 30524kb
input:
100000 7197545 -99740639 39789850 91742935 -44563738 -89521349 92588284 -37781069 89874957 43846213 -97082384 23979340 52035210 85395169 87881876 -47715555 -25428031 -96713047 6688701 99776051 31394586 94944081 66622083 -74575443 81096253 -58509804 -98223145 18767345 10583592 -99438356 -97020186 -24...
output:
49999997.0242636219 49999996.4351697949 49999997.5472669976 49999996.4184565740 49999998.7878663446 49999997.8148425174 49999998.1209330582 49999996.1151277519 49999996.8872683443 49999996.1102720128 49999997.6365981970 49999998.0198364671 49999998.7855395929 49999998.6437689914 49999996.0682024158 ...
result:
ok 100000 numbers
Test #31:
score: 0
Accepted
time: 2788ms
memory: 31812kb
input:
100000 48053189 87697724 -99230647 -12380496 71228034 -70189504 -99862038 -5250874 -92715593 -37467545 26308785 -96477183 91137520 41157649 86371053 50398812 -99541893 -9560913 -96837592 24949526 -28842311 95750301 -99906431 4324846 32704032 -94501032 -98983846 14219579 -98402231 17804504 42162900 9...
output:
49999996.0831308637 49999996.4655374477 49999998.4432053235 49999995.6520978698 49999998.1852533965 49999998.4148445374 49999999.0013581327 49999997.2984745646 49999997.1851978291 49999999.0488718601 49999997.2643068664 49999996.6181674743 49999996.5855972062 49999997.8302103618 49999997.6317784903 ...
result:
ok 100000 numbers
Test #32:
score: 0
Accepted
time: 3511ms
memory: 28876kb
input:
100000 -23951830 97020265 -79900659 60056128 -83964098 54143803 97074821 23809857 61007903 79212713 -45094976 89223718 -89377964 44681664 -98513176 -17056240 -27426886 -96062608 56189487 82666265 18047227 -98345883 -99936265 1286532 18608822 98231586 -56949101 82157764 99503767 -8898358 52721687 -84...
output:
49951674.1879358572 49951419.3102471677 49951190.6025995812 49951412.5821994062 49951643.3201369413 49952981.5404847637 49951531.5661155800 49950744.7078593344 49951759.6741204799 49952147.6803641543 49950940.6456706008 49951560.3948296950 49951096.6605874512 49952163.0136613007 49952791.2038600241 ...
result:
ok 100000 numbers
Test #33:
score: 0
Accepted
time: 3390ms
memory: 28684kb
input:
100000 -82922797 55795521 98806631 15264719 27227855 96151671 90640250 -42064680 97570886 21814297 11561464 99312553 -63044255 -77522636 75253645 65715048 -46471655 -88525692 -74788283 66304581 59047518 -80664807 99509005 9753002 6599999 -99699054 -57520499 -81692754 -94724230 -32037998 -91266303 -4...
output:
49951008.8752196898 49952120.1151771756 49951313.8975321696 49951522.6341236542 49951493.4673221721 49951417.8990497972 49951239.5873102925 49950786.0584494720 49951126.6194569922 49951635.2534672451 49951599.4435538328 49952120.2602650853 49951396.9518224784 49951843.5781770995 49951084.2984792269 ...
result:
ok 100000 numbers
Test #34:
score: 0
Accepted
time: 3321ms
memory: 28880kb
input:
100000 -94334950 -33002816 94253220 33387641 80851945 -58743434 92068179 38797643 92438296 38143230 87690855 47910947 18278347 98277620 98579284 16519538 87518221 48304789 -71902423 69487747 99868312 3214776 -74106386 67019802 -27751893 -96052705 -91146289 41016721 -98277121 -18367587 60051086 79947...
output:
49951455.3120065233 49951491.3438154428 49951164.1496551393 49951630.0734802938 49950857.0331884590 49951496.7260943499 49950560.2742411163 49952262.7804619996 49952389.1146193601 49950986.9949467387 49951582.7058412093 49950722.7321048783 49950989.4603775076 49950398.0146354495 49951306.4521628321 ...
result:
ok 100000 numbers
Test #35:
score: 0
Accepted
time: 3471ms
memory: 30792kb
input:
100000 66711064 74461687 -99974135 -2174163 -1056958 99918825 -36812938 92895057 40400128 -91384257 15553026 -98744225 51376353 85721836 98739904 -15613787 -99973461 1404943 14291417 -98963322 98599204 16637582 -92316397 -38311014 -51618501 -85635835 -36591459 -93015393 -91664061 -39878690 99771335 ...
output:
49950743.7254163903 49952335.5206178326 49951444.8852713861 49951226.6904485811 49951463.9623628715 49951443.5648730157 49952105.3892571306 49951524.8219949316 49951689.4897814397 49951151.8564956215 49951874.8125918193 49951645.9768621556 49951281.2548604324 49951413.4285631017 49951150.7229189328 ...
result:
ok 100000 numbers
Test #36:
score: 0
Accepted
time: 3522ms
memory: 28860kb
input:
100000 -50274904 86430058 -30033231 -95322369 -98405889 17641407 -61672858 78646085 26241959 96398065 4426523 99837644 -99019995 -13814286 99913840 681111 90361534 -42631803 87161706 48939878 -95813074 28347212 -40705166 91264788 98666969 16193024 85025293 52491476 -3692790 -99876257 -73433772 -6783...
output:
49951659.9885078966 49950981.3209607805 49951893.0069188531 49952278.5161718384 49951380.7045541732 49950845.5129634351 49951575.7730340562 49951240.9648801669 49951205.7488277262 49951032.1517310323 49951732.0788584218 49951938.7185008964 49950923.6301758900 49951266.0488253759 49950795.5181505435 ...
result:
ok 100000 numbers
Test #37:
score: 0
Accepted
time: 3255ms
memory: 31848kb
input:
100000 -3329385 99331174 -70604294 70669786 -87081417 -47338605 67572485 73507498 -94011626 -33780311 -11304772 98491936 40610638 90325570 -59981987 -78948235 -25072291 -96778665 97190682 -18875941 73326816 67610572 71253553 69607148 63274218 -76228295 40643832 91311687 31058993 94112669 96614227 -2...
output:
49504623.1938575956 49506835.2408184810 49505169.5804012284 49508592.1212291672 49509011.1218332933 49505380.6373266859 49504969.0347027671 49503721.1126447078 49502895.1142386951 49508793.7919137666 49505050.2430740449 49506657.7121536760 49507735.1604684609 49502361.4840257008 49508087.7087029615 ...
result:
ok 100000 numbers
Test #38:
score: 0
Accepted
time: 3783ms
memory: 30464kb
input:
100000 -88188547 -45804127 35518984 -92836002 84909347 -52102417 -78092577 -61565961 53608303 -83757017 -43358191 -89594529 -99733872 -5307764 51833620 84616172 -58956000 80333018 -44663911 -88660327 39476608 -90966406 98023033 -15767254 -92649608 36189499 -20044268 -97062782 75271019 -64531120 1305...
output:
49505594.9236759332 49509390.1400756616 49506149.0899781094 49510170.0927458140 49503968.5552830424 49506197.3326305283 49507042.6411098482 49505615.6400178606 49510195.1001031283 49506434.9740628135 49507114.5427643133 49507814.9278767007 49508422.6810742110 49504711.5242513173 49506397.0885452571 ...
result:
ok 100000 numbers
Test #39:
score: 0
Accepted
time: 3345ms
memory: 29400kb
input:
100000 -99782597 -3415872 -61105726 79084288 30912116 -94584503 26277091 95534616 -99475895 -2777059 25739063 95981962 -29397062 94756672 13419054 -98397843 75908620 65036189 -95649393 -29121947 -99476677 -4608633 -44872944 89131709 58443026 -80934109 -80216834 -58992281 -99642474 -4043864 -93282892...
output:
49507920.8302028029 49503935.8735003876 49504166.4472331750 49506478.4563929369 49506103.9466172159 49506818.7894117916 49505185.2773857822 49507164.5004687273 49507676.9478490004 49506327.9705426787 49505482.6306196754 49507856.9061262854 49508781.7658685492 49509721.3195092614 49505347.4988808341 ...
result:
ok 100000 numbers
Test #40:
score: 0
Accepted
time: 3305ms
memory: 29364kb
input:
100000 -36117371 92618778 -73335258 -67061989 -80911383 57489284 89176933 -43555438 -44254978 89569042 -86787265 -48709508 -97251076 20319527 11571957 99298949 70511170 -69837542 -99634170 482767 96836213 22314925 92257812 36998150 55392610 -82618881 64718586 75192210 -33320217 93286849 71138573 702...
output:
49507470.5102520217 49504173.7449604667 49508449.7276100550 49507818.3199970095 49503991.5868418415 49507051.0852813313 49507825.0110924003 49507882.6397741179 49509928.8612812177 49503373.4930667735 49504658.5253268075 49507126.8005135711 49504450.0872117154 49508921.0961942164 49505989.4778771797 ...
result:
ok 100000 numbers
Test #41:
score: 0
Accepted
time: 3346ms
memory: 30752kb
input:
100000 -19955231 -97699535 94825749 -28990747 -79907148 -59107167 -99027556 1423520 37739298 -92055126 84889533 -52160862 -68994023 71800045 -78602361 61152977 -41135006 -90230500 -18711359 -97257627 66663581 74134831 -37980361 -92135750 -2196230 -99805345 61435279 78416798 99254865 5765553 9861983 ...
output:
49509084.9552789595 49509044.5589488487 49508051.3976996998 49506403.0937438641 49509646.0058206626 49510964.9010520088 49504435.0629076474 49503658.3724902691 49508600.5934109430 49508992.9808275688 49506743.6986766410 49503939.7035900910 49504163.5735945139 49508136.4803241578 49505622.8908842554 ...
result:
ok 100000 numbers
Test #42:
score: 0
Accepted
time: 3024ms
memory: 29504kb
input:
100000 92556374 12072350 93766905 4825190 -67271877 69890083 73298299 55897595 -31299356 -93814485 -80498315 54176779 -31345062 -88453539 83029787 -49705175 -80101942 -52307613 -69888580 -56945797 -85803388 38619155 63351605 70575401 93281896 22216160 -97847849 -20164083 76241863 52328510 -95583679 ...
output:
45013832.1076684650 45018190.6915386328 45016655.1065456775 45020233.0857538799 45026293.8037958455 45061276.3205335622 45038673.0572490067 45026156.2575882578 45013595.7430776873 45025686.7959728306 45037303.2716238649 45028239.0289746486 45020299.2964047616 45023715.7638951877 45020242.1871599779 ...
result:
ok 100000 numbers
Test #43:
score: 0
Accepted
time: 3164ms
memory: 31960kb
input:
100000 -32081572 90116995 -73229798 -64672076 91131427 5196295 10394383 -94678607 99786071 639864 -92342810 -852711 -84391341 -47449093 -74420874 64181438 -51777172 -78771868 -76271622 48551648 89768757 12110773 -67381897 -60367678 74807369 -64148569 48356402 -76298700 -1187892 -93943444 -93924469 -...
output:
45043971.6672017551 45037044.3237820835 45039953.5258939887 45049333.1323073966 45029998.0054949370 45024418.3487864244 45033727.9389796932 45040087.4147925939 45027614.9067239092 45044037.7991883636 45021590.2847209202 45032495.2682304286 45024798.5251680600 45019386.4142479568 45024119.8119076030 ...
result:
ok 100000 numbers
Test #44:
score: 0
Accepted
time: 3169ms
memory: 30004kb
input:
100000 9559919 92659433 51875371 83680106 78642333 -59484990 -67562834 73384342 -50641362 -85443942 94239770 18902122 -63150344 66462007 93871387 -2488444 -78837743 43705750 -18631355 94166502 -21600045 -92649401 96280408 -20960957 -26104161 87813365 -16304015 -96036171 -66451374 73268709 -535780 -9...
output:
45035085.1285767228 45032579.5419529724 45039705.6764854837 45027911.2698469999 45032692.0402883724 45040422.1855026693 45026712.8618487321 45031226.4947403482 45015448.0927642658 45020328.5633668406 45038180.4037777735 45031725.3324957969 45020332.4111618229 45025772.0380055059 45034324.3322297737 ...
result:
ok 100000 numbers
Test #45:
score: 0
Accepted
time: 3077ms
memory: 29436kb
input:
100000 63951077 -71761548 73763706 64396798 21419213 95263455 -68397093 68002102 -62901958 67448916 56595081 -71927093 -85235758 37748571 -63653511 75097403 -68746842 61306045 13699376 92719471 -39604640 -84729019 30466785 90338708 -89960990 10977635 65876081 -64868424 -42437656 -83596792 -68055453 ...
output:
45024619.4574575246 45022447.0127798966 45022571.2617214872 45022725.3194232097 45017987.7461517632 45021932.5050704021 45035073.1008262641 45020086.9484456835 45017427.0789491865 45014614.0089426486 45023853.3685528285 45040989.6071097631 45012689.0889144396 45015942.9494709019 45028884.7561759410 ...
result:
ok 100000 numbers
Test #46:
score: 0
Accepted
time: 2684ms
memory: 28800kb
input:
100000 -15226924 97699217 -88190354 29200235 -82332756 49054626 92982578 -33157210 59227929 -73138724 38249741 91550174 -51100484 82504881 -96377839 -15349299 36198347 91856588 -90519618 31198671 16179809 -91684442 42535161 -83090574 -70289671 63418188 70901869 -63653069 -71694352 67433238 -8028358 ...
output:
45038361.4085142071 45025634.8959463890 45036750.1804423355 45030721.8290839123 45024194.5498083930 45040922.8801917020 45032333.1125981157 45038384.8171094265 45031476.9762935292 45032198.6631958131 45038419.1376384490 45037035.0191929616 45022000.8605776004 45017701.7815513881 45027831.5414369875 ...
result:
ok 100000 numbers
Test #47:
score: 0
Accepted
time: 3ms
memory: 3872kb
input:
200 40 51 52 66 16 -57 25 -86 -68 -21 -77 -23 67 39 62 36 -70 -59 -41 -34 -20 70 -22 77 -16 -82 -19 -95 -77 24 -73 23 -84 46 -78 43 -12 55 -20 93 52 -52 47 -47 -76 18 -76 18 -42 25 -76 45 78 -13 62 -10 86 -37 66 -28 44 60 58 80 -58 -25 -62 -27 -52 82 -36 57 84 13 85 13 -93 13 -49 7 -37 87 -22 52 -52...
output:
25.0980449665 27.6807694977 35.1612972810 33.4051879847 26.1910261605 25.7627016001 29.2122626678 27.9898898240 27.2367532882 25.8700685600 26.5637197179 24.8387497470 25.1733595791 27.8803287030 26.4061010126 30.4346558418 29.4939519592 32.1622854806 25.6009478340 26.1046412671 33.3829765599 26.593...
result:
ok 100 numbers
Test #48:
score: 0
Accepted
time: 2ms
memory: 3992kb
input:
203 82 0 66 0 85 0 -38 45 -57 68 -1 71 -1 80 73 25 68 23 -18 90 -10 52 45 57 50 63 -39 74 -45 85 19 78 18 74 31 91 28 85 36 43 61 73 -58 44 -53 40 16 77 16 77 16 47 29 83 -73 30 -58 23 -82 44 -63 34 65 36 86 48 -4 63 -4 67 50 83 35 58 84 14 85 14 15 92 8 49 54 77 32 46 -26 85 -29 95 67 60 74 66 89 4...
output:
25.4084631781 59.2852655898 36.6149572888 25.6357659609 25.1927907605 29.9351121116 27.5867238270 25.4624856825 43.1097175133 24.8716164709 150.9910870474 27.8770139883 28.5227368561 25.0630333331 24.9687051974 25.1195266843 62.8249281735 25.0762531550 27.7124656722 25.7920419125 27.6548410382 27.60...
result:
ok 100 numbers
Test #49:
score: 0
Accepted
time: 5ms
memory: 4048kb
input:
500 -55 23 -64 27 -61 26 -56 23 -92 38 -90 39 -81 35 -48 21 -73 31 -45 19 -1 -53 -1 -68 -1 -68 -1 -85 -1 -88 33 -59 35 -62 25 -45 31 -55 32 -57 -1 70 -1 92 0 51 -1 69 0 54 0 -72 0 -94 0 -49 0 -56 0 -49 79 -40 73 -38 44 -22 44 -22 50 -26 -64 45 -50 35 -40 28 -54 38 -63 45 -70 25 -67 24 -64 22 -89 31 ...
output:
24.8160434409 25.2171914142 25.6442830176 24.7074263042 25.4244821666 24.9864970527 25.1934837301 25.1424050148 24.6632653061 25.9403025905 24.6549066381 26.1047319210 25.0361490135 26.1098521009 25.2500000000 25.9624055780 24.8650860923 25.9129471236 25.4879829540 25.6555168857 25.5235014943 26.278...
result:
ok 100 numbers
Test #50:
score: 0
Accepted
time: 6ms
memory: 3964kb
input:
503 57 0 60 0 70 0 48 36 79 60 74 56 78 59 70 53 -36 71 -22 44 -39 75 -24 47 -31 61 -75 41 -77 43 -78 43 -59 33 -62 35 -47 43 -48 44 -44 40 -52 47 -68 62 57 39 45 30 78 53 60 41 78 53 -6 56 -5 49 -9 80 -10 88 -9 82 -19 46 -22 52 -27 65 -30 72 -24 57 54 38 63 44 59 41 61 42 59 41 74 58 69 54 42 33 58...
output:
262.7184805072 24.9423338117 25.4000774668 35.6455903525 25.6785266712 24.8889100847 97.5303353877 40.8609414011 104.9696200604 24.6462756109 30.4478566019 25.1798528240 25.2245239644 24.6462756109 24.7329043284 25.2963028726 24.6275343480 24.8863905325 26.1528658973 -1 24.6285373159 50.5148522461 4...
result:
ok 100 numbers
Test #51:
score: 0
Accepted
time: 10ms
memory: 4004kb
input:
1000 35 76 32 70 29 63 29 64 33 72 34 74 32 70 35 76 40 89 41 90 14 89 10 66 12 72 12 76 12 72 12 72 9 54 9 59 11 68 12 76 -35 75 -39 83 -39 84 -21 45 -22 46 -26 56 -37 79 -24 52 -26 56 -23 49 80 -14 66 -11 98 -17 73 -12 94 -16 93 -16 60 -10 73 -12 97 -16 95 -16 23 -46 41 -82 27 -54 26 -52 34 -67 24...
output:
24.8702895059 25.1015653397 24.9336003479 25.2237932829 24.6638098632 25.5296680940 24.6884882376 24.8860397361 24.9859762897 25.1298340360 24.8246200213 25.1262909153 25.6490184572 25.2037916749 25.0230397661 24.6962692385 25.2494916605 25.4407083355 24.4391213941 24.9235009842 24.8295042369 24.825...
result:
ok 100 numbers
Test #52:
score: 0
Accepted
time: 10ms
memory: 3920kb
input:
1003 62 0 84 0 78 0 69 13 78 15 80 15 76 14 82 15 96 18 98 19 53 10 89 17 65 12 -19 75 -18 71 -18 71 -13 53 -14 58 -17 66 -19 75 -19 75 -20 80 -22 89 -44 22 -46 23 -55 27 -78 39 -51 25 -55 27 -49 24 -53 26 -73 36 -59 29 -50 55 -64 70 -63 70 -41 45 -50 55 -66 73 -65 71 -34 37 -35 38 -61 68 -52 27 -67...
output:
24.6916132279 44.6688629979 24.5350294430 24.5498290890 59.8128112338 24.5971190326 24.6820053660 24.5234819392 24.6172925195 53.1816455147 24.5270294934 25.1796937349 25.1394444649 29.6312289885 24.7673898622 25.3575553366 25.1053790149 47.6403252688 24.5544308733 24.9349687984 24.9127286621 32.733...
result:
ok 100 numbers
Test #53:
score: 0
Accepted
time: 3ms
memory: 3928kb
input:
200 9 93 5 51 -53 -17 -93 -30 -55 -30 -52 -29 91 -15 88 -15 56 -49 41 -36 14 -87 11 -65 60 51 73 62 -58 -25 -87 -37 -70 2 -96 3 38 -49 52 -68 74 42 56 32 -72 -19 -93 -25 -18 -50 -29 -83 1 -91 0 -81 84 -29 51 -18 -63 64 -42 43 -7 49 -9 57 45 29 46 29 33 -41 37 -46 92 -35 92 -35 23 86 17 63 75 -20 83 ...
output:
28.8632169350 29.5788790539 26.7833686291 26.8931472978 26.7030691705 28.0818181818 30.6077352164 26.9569761644 27.7629202196 27.9730370626 28.8600873133 29.3697020808 26.6056363032 31.2871333572 27.6716558704 27.2337718570 27.0666563746 29.8152896638 25.5806544584 26.3548871772 27.0922734085 30.054...
result:
ok 100 numbers
Test #54:
score: 0
Accepted
time: 2ms
memory: 3992kb
input:
203 90 0 94 0 52 0 -1 55 -3 97 -7 62 -6 59 -86 35 -83 33 -60 44 -44 32 -53 70 -39 52 72 31 89 38 -4 63 -6 94 8 70 11 96 -47 41 -65 56 81 27 61 20 0 74 0 96 -22 49 -36 81 -50 76 -44 68 -79 39 -49 24 39 80 26 54 32 37 38 43 50 18 51 18 -40 34 -45 38 -88 45 -88 45 70 55 51 40 -71 32 -78 35 -30 52 -30 5...
output:
27.0081462703 28.6764705882 28.2400000000 27.7811204359 27.9637967573 161.5249239858 28.6000000000 26.8560980040 61.1592459259 -1 28.7983811614 26.5707978681 2844.4209443885 29.4547843831 26.2159693914 25.8200422422 25.6806875492 39.0893791324 27.0424442621 27.5591356415 27.5331199581 27.5184474897 ...
result:
ok 100 numbers
Test #55:
score: 0
Accepted
time: 6ms
memory: 4048kb
input:
500 -62 -10 -87 -14 -59 -9 -56 -9 -58 -9 -88 17 -66 13 -68 13 -68 13 -65 13 86 10 95 11 57 7 51 6 72 8 10 63 11 71 11 70 11 71 12 81 -44 83 -23 44 -32 61 -35 67 -44 83 81 -22 65 -17 76 -20 76 -20 88 -24 25 90 22 79 23 82 17 59 14 49 -85 51 -60 36 -59 36 -70 42 -57 34 48 71 34 51 43 64 29 43 42 62 60...
output:
26.8593745260 26.4708660116 26.0421259252 25.2079163058 28.2370549832 27.1189199371 26.7777017326 26.6496278244 27.4384707183 25.5797969746 25.2755909941 25.2556981170 27.0221321036 26.4216590830 25.5578815373 27.2833043861 25.0993971289 25.5863896459 27.8750785794 25.0886930457 25.4483391308 26.882...
result:
ok 100 numbers
Test #56:
score: 0
Accepted
time: 3ms
memory: 4052kb
input:
503 66 0 63 0 89 0 -51 23 -53 24 -53 24 -81 37 -61 28 -12 68 -11 65 -16 91 -15 85 -16 94 17 48 24 68 19 53 21 60 24 67 -65 30 -75 34 -82 37 -86 39 -45 20 -41 63 -52 79 -47 72 -46 71 -37 56 -25 74 -29 86 -25 73 -30 88 -27 78 12 60 10 49 18 92 20 97 14 69 28 76 23 62 17 47 29 80 21 58 -47 21 -68 31 -6...
output:
29.1983815952 25.4146241770 222.7386360738 31.0899996966 53.6596345080 26.0777441756 -1 62.3625387800 25.3501645090 25.1106714276 26.3838608146 26.9394122124 30.2412166989 28.8690848613 25.9193151069 24.6786214196 31.2137522496 24.6846212416 70.3661901996 26.5733332411 25.7595215653 26.2459061946 25...
result:
ok 100 numbers
Test #57:
score: 0
Accepted
time: 10ms
memory: 4004kb
input:
1000 -8 60 -12 96 -8 61 -8 66 -11 87 -9 69 -9 68 -8 62 -8 62 -8 63 -17 70 -17 71 -12 48 -22 91 -22 88 -14 57 -24 97 -13 54 -16 66 -17 68 44 23 62 32 81 42 51 26 61 31 59 31 68 35 66 34 66 34 47 25 50 16 55 18 91 30 51 17 90 30 76 25 69 23 64 21 66 22 63 21 -94 21 -55 12 -74 16 -86 19 -85 19 -93 21 -...
output:
25.3801326407 25.9693244615 25.8689752420 25.7984762353 26.4425057370 25.3553253102 24.6792217138 24.9245299809 25.1042962568 25.7649271387 25.6102761498 24.7634893483 26.3975447926 25.9401482630 25.3802578056 25.6654057949 26.4638877430 25.0938544243 26.1905482581 25.4457013654 25.1297212870 25.500...
result:
ok 100 numbers
Test #58:
score: 0
Accepted
time: 10ms
memory: 3980kb
input:
1003 70 0 61 0 97 0 -42 52 -55 68 -44 54 -43 53 -39 48 -39 48 -40 49 -45 56 -45 56 -46 57 -88 30 -86 29 -55 19 -94 32 -53 18 -65 22 -67 22 -81 27 -47 16 -67 22 27 50 33 60 32 58 37 67 36 65 36 65 26 47 29 53 25 46 28 51 50 18 89 32 76 27 68 24 63 23 65 23 62 22 80 29 91 33 53 19 -41 78 -40 78 -44 85...
output:
124.2466037011 25.1655077797 25.0487525374 30.2964131649 64.8484561545 24.7851409915 30.8486467303 48.2559997747 61.3382185784 119.7627331222 -1 48.1146719436 25.3600000000 25.1012271159 32.4424039753 26.0056533179 24.8246345009 40.5520739992 25.3157298320 25.1000383886 25.2808704040 25.0134336388 2...
result:
ok 100 numbers
Test #59:
score: 0
Accepted
time: 3452ms
memory: 28716kb
input:
100000 41594617 -90874202 41616553 -90922126 41579076 -90840249 41587678 -90859042 41603508 -90893628 41611148 -90910318 41610867 -90909704 41585149 -90853518 41611061 -90910128 41600233 -90886472 -41392157 90946563 -41394053 90950728 -41405020 90974825 -41387761 90936902 -41423060 91014461 -4141407...
output:
49952220.5807725248 49951771.6770449262 49951371.9893360087 49951722.4530877807 49951600.6241232048 49951055.4109790386 49951961.6412743366 49951445.7744755442 49951409.2811148214 49951768.2373736548 49951956.1813356827 49950601.8756955248 49951790.3266161891 49951730.7155938187 49950967.2527117141 ...
result:
ok 100000 numbers
Test #60:
score: 0
Accepted
time: 3129ms
memory: 29480kb
input:
99993 99923917 0 99924571 0 99937757 0 -23163715 97243691 -23162127 97237022 -23153610 97201267 -23162718 97239503 -23151418 97192067 -23157394 97217155 -23162408 97238202 -23153027 97198819 -23160206 97228957 -23166709 97256258 -27227991 96159791 -27243429 96214310 -27237920 96194854 -27225082 9614...
output:
49950676.4874895339 104318412.7586585431 82053691.1775916663 49950848.4959955141 -1 62823858.0887818191 49951164.2282361841 50952144.1299400476 49950710.1752451109 2562289954.4436708803 87290985.0552721016 49950530.3264595024 -1 53452189.1339143553 -1 49950365.0065749300 50726280.4353199690 94580293...
result:
ok 100000 numbers
Test #61:
score: 0
Accepted
time: 2787ms
memory: 28312kb
input:
100000 17236606 98488167 17233116 98468222 17228331 98440886 17232758 98466177 17231878 98461152 17231411 98458482 17222609 98408189 17235073 98479406 17225005 98421879 17233979 98473157 66868196 -74259692 66872083 -74264009 66886995 -74280569 66874697 -74266911 66881412 -74274369 66859821 -74250392...
output:
49950400.5839319799 49951113.1033806289 49952554.3327271211 49951016.6225044629 49951981.6467437113 49951323.6891307148 49951016.7356802983 49952086.3026998890 49950219.5919243200 49951676.9871694904 49951340.9940695941 49950491.0388671184 49950926.1342676388 49951133.2805535215 49951106.5999780123 ...
result:
ok 100000 numbers
Test #62:
score: 0
Accepted
time: 2743ms
memory: 29584kb
input:
99993 99972481 0 99935818 0 99941457 0 95115106 30556139 95193853 30581437 95202874 30584335 95192329 30580947 95147223 30566457 95183244 30578028 95182967 30577939 95190044 30580213 95188511 30579720 95162235 30571279 34715168 93756807 34705128 93729691 34720761 93771913 34700598 93717457 34699848 ...
output:
49950344.3636962695 50383244.8980588419 49950240.0072633391 49950656.4694629092 49950335.7150593776 92431763.6937951480 51224242.3295756506 49950631.1462175904 484250533.0632747505 49950493.7316514274 49950237.9749466081 62215523.3577954621 49950759.8816186801 49950680.3840496137 72516452.8659844207...
result:
ok 100000 numbers
Test #63:
score: 0
Accepted
time: 3186ms
memory: 29504kb
input:
100000 12687496 -91994997 12824312 -92987026 13317803 -96565251 13299688 -96433902 12720209 -92232193 13542850 -98197029 13074398 -94800361 12545291 -90963892 13229962 -95928329 12969350 -94038672 -48673482 84982797 -45021449 78606431 -45441747 79340261 -46482111 81156714 -49368630 86196511 -4759406...
output:
45050534.9775924359 45031402.7405407320 45058668.0197665160 45033346.3674831028 45030976.4817312577 45016979.9796988616 45028401.8810623447 45021884.5377099503 45028879.9866637012 45040530.2163176225 45040983.5530843050 45031232.2778025014 45026102.8970948741 45034367.4372642260 45030069.4306419107 ...
result:
ok 100000 numbers
Test #64:
score: 0
Accepted
time: 2651ms
memory: 30208kb
input:
99993 95502024 0 91716495 0 93035290 0 72077807 60990245 73843982 62484734 71147783 60203284 70213842 59413009 76122586 64412825 75950793 64267459 70790432 59900904 70968931 60051945 74087858 62691094 74591423 63117197 -60476742 71946579 -62742047 74641515 -58551774 69656528 -63266536 75265477 -5829...
output:
65733201.0707420507 45023455.6965423062 45014395.9001700388 47149047.4557271371 45014289.1781606758 45018390.3390819404 55468012.0962474961 54515884.3215918701 69269766.5937204133 65741869.3378003129 45011260.7521513985 45013931.8266115005 45027567.9286370474 45039013.5204297566 80066785.8375092119 ...
result:
ok 100000 numbers
Test #65:
score: 0
Accepted
time: 2527ms
memory: 28752kb
input:
100000 42239570 84097913 40467871 80570506 44226575 88053991 40847944 81327222 40619575 80872544 44389877 88379120 42783412 85180690 40891805 81414547 42268186 84154887 41491942 82609406 73479752 -67728993 69659672 -64207884 70858995 -65313344 71508900 -65912386 69056997 -63652376 71008080 -65450762...
output:
45013524.0640210529 45020398.7656000508 45019955.6471926028 45008672.1921625145 45017581.5665665339 45010581.7339772116 45013856.7514872102 45012629.0191479300 45016784.9746403408 45011523.2878575375 45026949.6634179933 45026007.7647797698 45018574.5536487730 45024474.4795329016 45012557.1394633938 ...
result:
ok 100000 numbers
Test #66:
score: 0
Accepted
time: 2116ms
memory: 29628kb
input:
99993 96817884 0 92960446 0 94106286 0 -33154491 86737124 -33608115 87923875 -33196444 86846880 -32705929 85563620 -33550638 87773506 -34572794 90447619 -34019689 89000613 -33108878 86617795 -35297179 92342720 -34664558 90687688 -6326254 92273893 -6316622 92133389 -6606001 96354241 -6694254 97641488...
output:
45025599.0601631059 45010203.0927176462 45016437.3093482760 45006467.8550140585 131742656.7725027509 46980361.8293543606 80973529.2432912880 52921873.4666583445 45011842.8843788284 68504825.0616140164 45018861.0515193463 59853174.1557963471 59496860.4174862116 71137140.2858088740 69404093.6005590590...
result:
ok 100000 numbers
Test #67:
score: 0
Accepted
time: 2816ms
memory: 30540kb
input:
100000 -54553504 -83466397 -53217438 -81422228 -51401674 -78644124 -53757138 -82247964 -53403130 -81706335 -54001247 -82621449 -51670298 -79055116 -54267073 -83028160 -51905316 -79414692 -52078219 -79679232 -52023670 -79595772 -50932231 -77925880 -53690814 -82146489 -54567725 -83488155 -51286909 -78...
output:
45049274.7608778266 45035096.8537957356 45026791.0454170999 45029899.2833551770 45029865.2894790436 45044294.7701691175 45015654.4181945811 45041224.6847060932 45033658.7823966464 45015206.2866536582 45032305.8972296536 45041809.5075903879 45031745.0456340045 45023243.8834511828 45030383.3286296057 ...
result:
ok 100000 numbers
Test #68:
score: 0
Accepted
time: 2727ms
memory: 29944kb
input:
99903 94448229 0 90761763 0 97985588 0 89901191 14452033 97883093 15735161 90118625 14486987 95578572 15364698 94701726 15223741 98448883 15826114 92212912 14823653 94215840 15145633 95077988 15284227 91419317 14696079 91425707 14697106 90844976 14603751 98587220 15848352 97841999 15728555 91363965 ...
output:
45011299.7432542852 134372110.0542201047 45014323.9347484636 45013925.5732134530 45199650.7069377874 47433053.8517436891 -1 179514912.4773603502 45024826.5968423372 45018053.6683541877 45013564.3147946151 45020087.0812145726 45023353.3642510683 187685563.8983114058 45018822.4061009862 -1 86547804.31...
result:
ok 100000 numbers
Test #69:
score: 0
Accepted
time: 2151ms
memory: 31616kb
input:
100000 88804287 36439715 86562171 35519691 87659885 35970124 89457475 36707742 83298350 34180423 91106060 37384218 91620802 37595437 90862639 37284334 85069690 34907271 85764475 35192367 92170179 37820866 87796542 36026200 85616339 35131581 87350464 35843157 90172873 37001297 89474600 36714770 90840...
output:
45025630.7338846924 45016999.1407901647 45020400.7283336450 45037891.7342360654 45045272.8010038823 45009662.0720252209 45038911.4381610766 45024442.0488517219 45021030.9468094690 45043493.9626652102 45031010.4706786561 45017259.8968519995 45057873.6377957478 45029140.5477419784 45007418.0812072423 ...
result:
ok 100000 numbers
Test #70:
score: 0
Accepted
time: 2438ms
memory: 31928kb
input:
99903 95572601 0 92262610 0 94280776 0 17594269 97925670 17071048 95013545 16101053 89614772 16162408 89956264 16801040 93510741 17116697 95267616 16966675 94432627 15954553 88799389 17348696 96558871 17153395 95471867 16358027 91045032 16040142 89275758 17578486 97837828 16743413 93190002 17196216 ...
output:
78834094.0361864958 45349195.0501640381 45171861.5025769373 48480891.2220246137 45009700.9962923858 45055519.3038752356 53401156.2798113538 45007886.0118599667 45002321.0308878271 237333132.9838362835 45004216.4378639523 45016230.6974557801 45015011.0378342303 45004955.1216323330 45007950.6161544896...
result:
ok 100000 numbers
Test #71:
score: 0
Accepted
time: 2403ms
memory: 30024kb
input:
100000 90980678 90980678 -90980678 90980678 90980678 -90980678 -90980678 -90980678 90980678 56516627 -39032083 90980678 -90980678 -67650282 90980678 77163629 57789179 90980678 -90980678 -60740012 -90980678 -46397517 25299242 90980678 -1387583 -90980678 9324008 -90980678 -90980678 47716991 90980678 -...
output:
45454659.8830251411 52267721.0949332731 47567301.4165598987 45835920.4892062034 45281217.3320670329 49497507.4403073584 51087067.3972035924 47211961.4669472678 49979164.3011098423 47194779.2571501646 50877841.0260503009 45886964.4134847592 45659783.2572532137 46666472.0335006863 46848634.4928513279 ...
result:
ok 100000 numbers
Test #72:
score: 0
Accepted
time: 3213ms
memory: 29844kb
input:
100000 90964825 90964825 -90964825 90964825 90964825 -90964825 -90964825 -90964825 66922048 -90964825 -3433934 -90964825 90964825 -65962488 -35699201 -90964825 -64781820 -90964825 -68303343 -90964825 -90964825 -11834307 -90964825 -75592444 61554274 90964825 -90964825 -65419756 -90964825 -83227577 -2...
output:
52506632.9411708953 48917742.2433202442 45730847.9844045618 46625710.2538793575 45894715.5302421570 46243303.9184774096 46323847.8251028856 51857953.7106286283 50701807.7602210043 53111418.4215916485 53185499.0273624348 49541798.4368137556 48782381.5436496280 46126166.8516915946 51463817.9565056321 ...
result:
ok 100000 numbers
Test #73:
score: 0
Accepted
time: 685ms
memory: 8628kb
input:
100 94620051 94620051 -94620051 94620051 94620051 -94620051 -94620051 -94620051 19629451 -94620051 39482667 -94620051 80264366 94620051 73728319 -94620051 94620051 -8757638 -94620051 48404092 97294526 97294526 -97294526 97294526 97294526 -97294526 -97294526 -97294526 74085262 -97294526 97294526 5339...
output:
57058690.5873583765 58750526.7170771098 53921471.6114118309 48054800.0638517970 51388953.7726174170 53049592.9487737245 50255976.6856611441 51611646.5216844472 49085978.9030773908 49986287.6034015398 57564532.4936763976 53389743.1069165483 51263620.2503185733 47818554.7950521168 55469541.8433356782 ...
result:
ok 100000 numbers
Test #74:
score: 0
Accepted
time: 1169ms
memory: 8696kb
input:
100 96939842 96939842 -96939842 96939842 96939842 -96939842 -96939842 -96939842 96939842 9467761 72127104 -96939842 -90892367 -96939842 92642617 96939842 -96939842 -3094298 82157644 -96939842 98980503 98980503 -98980503 98980503 98980503 -98980503 -98980503 -98980503 98980503 29737792 40467990 -9898...
output:
59832159.8365839804 56789627.0423192096 58605753.9200867289 56241909.2553724175 58403522.0637229519 49867276.6070747791 53771735.3832919584 60878114.6120461786 65403126.5516145451 60385174.3169507357 52834342.7179391853 56640040.6244990238 57515466.0745164576 51278302.0823657319 58653062.9318082379 ...
result:
ok 100000 numbers
Test #75:
score: 0
Accepted
time: 917ms
memory: 10260kb
input:
10000 98738384 98738384 -98738384 98738384 98738384 -98738384 -98738384 -98738384 98738384 -22669726 98738384 -57747390 54319739 98738384 -12312798 -98738384 -45545728 -98738384 -98738384 901349 99911171 99911171 -99911171 99911171 99911171 -99911171 -99911171 -99911171 74948172 -99911171 -99911171 ...
output:
49188554.5716549702 46958060.0143506052 45863802.9493653714 50306854.0210013844 46668429.3058183100 52705395.0631661193 52873900.9345917077 52514950.4219975223 52575642.5149521244 48850843.5111387389 48330406.9893539253 47369837.8276599125 50582138.7499192881 51929332.5739225490 49899005.5120346737 ...
result:
ok 100000 numbers
Test #76:
score: 0
Accepted
time: 1496ms
memory: 10240kb
input:
10000 96091308 96091308 -96091308 96091308 96091308 -96091308 -96091308 -96091308 4375227 -96091308 96091308 41088450 -96091308 -26224158 38116835 96091308 17474983 96091308 -96091308 69402616 99261504 99261504 -99261504 99261504 99261504 -99261504 -99261504 -99261504 99261504 -85669909 -92897330 -9...
output:
50724068.3823507765 46801711.8249328958 46674376.9164714026 48909144.5215955913 52909623.9018947258 53004479.1263406800 49661466.4193414790 49370888.0708044392 52436940.4800759884 51923930.9500074810 45244547.9434834797 46351287.2216959723 48167529.3834429320 46641515.8122306528 45379267.6663666753 ...
result:
ok 100000 numbers
Test #77:
score: -100
Wrong Answer
time: 482ms
memory: 8728kb
input:
16 92745291 92745291 -92745291 92745291 92745291 -92745291 -92745291 -92745291 -60558247 -92745291 92745291 1929378 -58460896 -92745291 -92745291 -74454813 -59173372 92745291 -48562718 92745291 92745291 -53804670 78260613 92745291 -45079729 -92745291 92745291 42058113 2338714 -92745291 -92745291 -29...
output:
89337940.6383037392 59140564.8412466847 60797197.2508570111 55026722.4199239659 57981311.2465901021 67061094.8350036197 65972052.6269024602 76743936.9091993039 81881611.8233651285 56558247.6286641010 51620749.4492294506 59656358.6099332523 73545017.8452876286 133429846.9312586196 67627378.0302954990...
result:
wrong answer 12th numbers differ - expected: '56964033.1841272', found: '59656358.6099332', error = '0.0472636'