QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#727873#1431. JoyFloze3AC ✓210ms7172kbC++207.4kb2024-11-09 14:02:102024-11-09 14:02:15

Judging History

你现在查看的是最新测评结果

  • [2024-11-09 14:02:15]
  • 评测
  • 测评结果:AC
  • 用时:210ms
  • 内存:7172kb
  • [2024-11-09 14:02:10]
  • 提交

answer

#include <bits/stdc++.h>
#ifndef ONLINE_JUDGE
#ifdef CPH
#include "/home/floze3/OI/debug.cpp"
#else 
#include "/home/floze3/OI/debug_colored.cpp"
#endif
#else
#define debug(...) 42
#define debugArr(...) 42
#define look_time 42
#define look_memory 42
#endif
#define mp(x, y) std::make_pair(x, y)
#define mt std::make_tuple
#define eb emplace_back
#define fi first
#define se second
#define all(s) s.begin(), s.end()
#define rall(s) s.rbegin(), s.rend()
#define file(name)                 \
  freopen(name ".in", "r", stdin); \
  freopen(name ".out", "w", stdout);
#define fs(x) std::fixed << std::setprecision(x)
#define lowbit(x) (x & -x)
#define il inline
#define Avada_Kedavra return 0
#define _IOS                        \
  std::ios::sync_with_stdio(false); \
  std::cin.tie(nullptr), std::cout.tie(nullptr)
#define RANDOM_SEED std::chrono::steady_clock::now().time_since_epoch().count()
#define popcount __builtin_popcount
#define popcountll __builtin_popcountll
#define multitask    \
  int _; rd >> _; \
  while (_--)
using std::cerr;

namespace TYPEDEF {

using i64 = long long;
using u64 = unsigned long long;
using u32 = unsigned int;
using i128 = __int128;
using pii = std::pair<int, int>;
using pi64 = std::pair<i64, i64>;
using vi = std::vector<int>;
using vi64 = std::vector<i64>;
using vu64 = std::vector<u64>;
using vpii = std::vector<pii>;
using vpi64 = std::vector<pi64>;
using si = std::stack<int>;
using si64 = std::stack<i64>;
using su64 = std::stack<u64>;
using spii = std::stack<pii>;
using spi64 = std::stack<pi64>;
using qi = std::queue<int>;
using qi64 = std::queue<i64>;
using qu64 = std::queue<u64>;
using qpii = std::queue<pii>;
using qpi64 = std::queue<pi64>;
using siset = std::set<int>;
using si64set = std::set<i64>;
using su64set = std::set<u64>;
using spiiset = std::set<pii>;
using spi64set = std::set<pi64>;
using str = std::string;
using vstr = std::vector<str>;
using f64 = long double;

} // namespaec TYPEDEF

using namespace TYPEDEF;

struct Scanner {
  FILE* stream;
  Scanner(FILE* s): stream(s) {}
  char buf[1 << 20], *l = buf, *r = buf;
  bool flush() { l = buf; r = l + fread(buf, 1, 1 << 20, stream); return l == r; }
  void get(char& c) {
#ifndef ONLINE_JUDGE
    c = getchar();
#else
    c = l == r && flush() ? ' ' : *l++;
#endif
  }

  friend Scanner &operator>>(Scanner &in, char& c) { return in.get(c), in; }

  friend Scanner &operator>>(Scanner &in, char* s) {
    for (in.get(s[0]); isspace(s[0]); in.get(s[0]));
    for (int i = 0; !isspace(s[i]) || (s[i] = '\0'); i++) in.get(s[i + 1]);
    return in;
  }

  friend Scanner &operator>>(Scanner &in, std::string &s) {
    char c;
    for (in.get(c); isspace(c); in.get(c));
    for (s = ""; !isspace(c); in.get(c)) s += c;
    return in;
  }

  friend Scanner &operator>>(Scanner &in, i128 &x) {
    char c, f = '+';
    for (in.get(c); !isdigit(c); in.get(c))
      if (c == '-') f = c;
    for (x = 0; isdigit(c); in.get(c)) x = (x << 1) + (x << 3) + c - '0';
    if (f == '-') x = -x;
    return in;
  }

  template<class T> friend Scanner &operator>>(Scanner &in, T &x) {
    if (std::is_integral<T>()) {
      char c, f = '+';
      for (in.get(c); !isdigit(c); in.get(c))
        if (c == '-') f = c;
      for (x = 0; isdigit(c); in.get(c)) x = x * 10 + c - '0';
      if (f == '-') x = -x;
      return in;
    }
    else {
      std::string s;
      in >> s;
      x = std::stod(s);
      return in;
    }
  }
};

struct Printer {
  FILE* stream;
  Printer(FILE* s): stream(s) {}
  char buf[1 << 20], *l = buf, *r = buf + (1 << 20) - 1;
  int format = 0, precision = 15;
  ~Printer() { flush(); }

  void flush() { fwrite(buf, 1, l - buf, stream); l = buf; }
  void put(const char& c) {
#ifndef ONLINE_JUDGE
    putchar(c);
#else
    *l++ = c;
    if (l == r) flush();
#endif
  }

  friend Printer &operator<<(Printer &out, const char &c) {
    return out.put(c), out;
  }

  friend Printer &operator<<(Printer &out, const char* s) {
    for (int i = 0; s[i] != '\0'; i++) out.put(s[i]);
    return out;
  }

  friend Printer &operator<<(Printer &out, char* s) {
    for (int i = 0; s[i] != '\0'; i++) out.put(s[i]);
    return out;
  }

  friend Printer &operator<<(Printer &out, const std::string &s) {
    for (int i = 0, n = s.size(); i < n; i++) out.put(s[i]);
    return out;
  }

  friend Printer &operator<<(Printer &out, i128 x) {
    static int s[40], top = 0;
    if (x < 0) out.put('-'), x = -x;
    do s[++top] = x % 10, x /= 10; while (x);
    while (top) out.put(s[top--] + '0');
    return out;
  }

  template<class T> friend Printer &operator<<(Printer &out, T x) {
    if (std::is_integral<T>()) {
      static int s[40], top = 0;
      i64 nx = x;
      if (nx < 0) out.put('-'), nx = -nx;
      do s[++top] = nx % 10, nx /= 10; while (nx);
      while (top) out.put(s[top--] + '0');
      return out;
    }
    else {
      std::ostringstream oss;
      oss << std::fixed << std::setprecision(out.precision) << x;
      return out << oss.str();
    }
    return out;
  }
};

Scanner rd(stdin);
Printer wt(stdout);

/*===============================ALGOS===============================*/

namespace basic_algorithm {
template <typename T> il T abs(T a) { return a >= 0 ? a : -a; }
template <typename T> il void chmin(T &a, T b) { if (a > b) a = b; }
template <typename T> il void chmax(T &a, T b) { if (a < b) a = b; }
}  // namespace basic_algorithm

using namespace basic_algorithm;

/*================================END================================*/

constexpr int N = 4100;
constexpr int mod = 1e9 + 7;
constexpr int inf = 0x3f3f3f3f;
constexpr i64 inf64 = 0x3f3f3f3f3f3f3f3fll;

std::mt19937 rng(RANDOM_SEED);

bool mst;

int n, x, a[N], pos[N];
bool med;

struct node {
  int l, r;
  std::vector<f64> f;

  #define ls (p << 1)
  #define rs (ls | 1)
  #define mid ((t[p].l + t[p].r) >> 1)
} t[N << 2];

void pushup(int p, int l, int r) {
  std::fill(all(t[p].f), 0);
  // for (int i = 0; i < t[p].f.size(); ++i) t[p].f[i] = 0;
  for (int i = 0; i < t[ls].f.size(); ++i) {
    for (int j = 0; j < t[rs].f.size(); ++j) {
      int id1 = l + i, id2 = l + t[ls].f.size() + j;
      t[p].f[i] += t[ls].f[i] * t[rs].f[j] * (1.0 * a[id1] / (a[id1] + a[id2]));
      t[p].f[j + t[ls].f.size()] += t[ls].f[i] * t[rs].f[j] * (1.0 * a[id2] / (a[id1] + a[id2]));
    }
  }
  return ;
}

void build(int p, int l, int r) {
  t[p].l = l, t[p].r = r, t[p].f.resize(r - l + 1);
  if (l == r) return t[p].f[0] = 1.0, pos[l] = p, void();
  build(ls, l, mid), build(rs, mid + 1, r);
  return pushup(p, l, r);
}

void rebuild(int p) {
  if (t[p].l == t[p].r) return ;
  rebuild(ls), rebuild(rs);
  pushup(p, t[p].l, t[p].r);
}

signed main() {
  rd >> n >> x;
  for (int i = 1; i < n; ++i) rd >> a[i];
  a[0] = x;
  build(1, 0, n - 1);
  wt << t[1].f[0] << '\n';
  for (int i = 1; i < n; ++i) {
    int lp = pos[i - 1], rp = pos[i];
    std::swap(a[i - 1], a[i]);
    while (lp != rp) lp >>= 1, rp >>= 1;
    rebuild(lp);
    f64 res = t[lp].f[i - t[lp].l];
    while (lp != 1) {
      rp = lp ^ 1;
      f64 nres = 0;
      for (int j = 0; j < t[rp].f.size(); ++j) {
        nres += res * t[rp].f[j] * 1.0 * x / (x + a[t[rp].l + j]);
      }
      res = nres;
      lp >>= 1;
    }
    wt << res << '\n';
  }
  Avada_Kedavra;
}

/*
all the things you do
the words you say
it all comes back to you
*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 2
1 1 1

output:

0.444444444444444
0.444444444444444
0.444444444444444
0.444444444444444

result:

ok 4 numbers

Test #2:

score: 0
Accepted
time: 1ms
memory: 6140kb

input:

4 3
4 5 2

output:

0.188265306122449
0.188265306122449
0.239285714285714
0.239285714285714

result:

ok 4 numbers

Test #3:

score: 0
Accepted
time: 1ms
memory: 4396kb

input:

8 8
1 2 3 4 5 6 7

output:

0.393768719371413
0.393768719371413
0.353382184051268
0.353382184051268
0.248207450668989
0.248207450668989
0.230924146560510
0.230924146560510

result:

ok 8 numbers

Test #4:

score: 0
Accepted
time: 1ms
memory: 4268kb

input:

2 1
1

output:

0.500000000000000
0.500000000000000

result:

ok 2 numbers

Test #5:

score: 0
Accepted
time: 1ms
memory: 6024kb

input:

2 10000
10000

output:

0.500000000000000
0.500000000000000

result:

ok 2 numbers

Test #6:

score: 0
Accepted
time: 1ms
memory: 6204kb

input:

2 1
10000

output:

0.000099990001000
0.000099990001000

result:

ok 2 numbers

Test #7:

score: 0
Accepted
time: 1ms
memory: 6204kb

input:

2 10000
1

output:

0.999900009999000
0.999900009999000

result:

ok 2 numbers

Test #8:

score: 0
Accepted
time: 1ms
memory: 4460kb

input:

4 9386
9101 8682 8786

output:

0.262985995138540
0.262985995138540
0.265204772618370
0.265204772618370

result:

ok 4 numbers

Test #9:

score: 0
Accepted
time: 1ms
memory: 4364kb

input:

8 6893
5034 8123 7618 8502 9126 5934 6266

output:

0.128435160569671
0.128435160569671
0.114103411912116
0.114103411912116
0.108916064112292
0.108916064112292
0.118108695195528
0.118108695195528

result:

ok 8 numbers

Test #10:

score: 0
Accepted
time: 1ms
memory: 4564kb

input:

16 5208
7684 6435 9759 9130 9059 6179 9465 5727 9861 5262 8879 9245 9995 5742 8877

output:

0.022359192456360
0.022359192456360
0.021062881934500
0.021062881934500
0.021054220790802
0.021054220790802
0.020838362315855
0.020838362315855
0.020850443582524
0.020850443582524
0.021299160925391
0.021299160925391
0.020404538856971
0.020404538856971
0.020941310754092
0.020941310754092

result:

ok 16 numbers

Test #11:

score: 0
Accepted
time: 1ms
memory: 4368kb

input:

32 9695
8933 6804 5942 5341 7507 8195 6840 6535 7766 9423 7458 5745 8691 8843 8479 8778 7381 7601 5111 5895 9280 8843 5334 5867 5850 7290 6606 6039 7130 7952 5329

output:

0.056058051844629
0.056058051844629
0.060883569222537
0.060883569222537
0.057221908329366
0.057221908329366
0.058487976373953
0.058487976373953
0.052496099661437
0.052496099661437
0.053045204454446
0.053045204454446
0.050450708747279
0.050450708747279
0.050750808604075
0.050750808604075
0.0616982326...

result:

ok 32 numbers

Test #12:

score: 0
Accepted
time: 1ms
memory: 4400kb

input:

64 5254
7639 7222 6516 5120 9333 6774 9926 6102 9598 7107 5870 9954 5274 9569 5460 5719 8526 6799 6064 8239 8982 5307 8768 5064 7999 9963 6735 6312 9524 8977 8302 7713 6150 8969 7546 9232 7563 8087 8732 8017 7543 9631 8297 6788 8969 7049 8731 5474 7281 7457 9291 8643 9657 9309 9748 6503 5028 8231 56...

output:

0.004184037121158
0.004184037121158
0.004382367371389
0.004382367371389
0.003683942985375
0.003683942985375
0.003627929623223
0.003627929623223
0.003863436199255
0.003863436199255
0.004437892407980
0.004437892407980
0.004823561947288
0.004823561947288
0.004763223981220
0.004763223981220
0.0040611917...

result:

ok 64 numbers

Test #13:

score: 0
Accepted
time: 1ms
memory: 4408kb

input:

128 9811
5187 7794 6112 9120 6630 7864 5504 7080 6754 7456 9664 5450 6155 7377 6381 5666 9349 8091 5516 8471 9527 6930 8721 5058 5701 8036 7589 9699 5155 7111 8353 8134 5109 9896 6788 5264 7488 7531 7257 7149 7456 6866 8147 9852 6033 6272 5629 5108 5408 9966 7329 7183 5104 7923 5122 8409 5229 5968 5...

output:

0.021225997388438
0.021225997388438
0.020432919363403
0.020432919363403
0.019763001270861
0.019763001270861
0.020635211134411
0.020635211134411
0.018743147080149
0.018743147080149
0.017375651954796
0.017375651954796
0.019915093289550
0.019915093289550
0.019757097375035
0.019757097375035
0.0161232316...

result:

ok 128 numbers

Test #14:

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

input:

256 9073
8755 9889 5004 6437 7737 5460 5670 8901 9439 6300 5760 8020 6253 6833 9249 7001 5283 9985 7898 7065 6725 9208 6762 6085 8641 9282 7233 5225 7639 9045 7792 6950 5180 5935 6087 8266 9296 8503 9082 8150 7868 7162 9553 9276 5565 5365 9485 5580 7022 5773 8233 9021 7627 9431 8695 5455 5519 9508 8...

output:

0.006468934553568
0.006468934553568
0.007556327448480
0.007556327448480
0.007293281222099
0.007293281222099
0.007711386236227
0.007711386236227
0.006507487295308
0.006507487295308
0.007170946656460
0.007170946656460
0.006939972798177
0.006939972798177
0.006395114223280
0.006395114223280
0.0070663085...

result:

ok 256 numbers

Test #15:

score: 0
Accepted
time: 4ms
memory: 4664kb

input:

512 9670
7180 7776 9130 9119 9476 7665 5322 7738 7333 8423 9517 5874 6134 5512 8152 6553 5589 7700 6345 8276 6696 7478 8798 7990 8880 6344 7568 7760 8887 6278 6717 5082 9254 7208 9753 5257 8352 8739 8105 8148 9245 5159 9974 7573 6278 5879 5661 5881 5554 8126 8543 8965 7331 6169 9857 8641 8397 8953 8...

output:

0.004292885195268
0.004292885195268
0.004071299737631
0.004071299737631
0.004161726970698
0.004161726970698
0.004733772001440
0.004733772001440
0.004385341531367
0.004385341531367
0.004126947065121
0.004126947065121
0.004849640692449
0.004849640692449
0.004619627758377
0.004619627758377
0.0050715573...

result:

ok 512 numbers

Test #16:

score: 0
Accepted
time: 14ms
memory: 4656kb

input:

1024 8325
6791 9687 7163 6955 5339 8291 7149 9782 5685 6526 8643 9323 7085 9707 9304 6787 7418 8594 8088 9942 7224 7162 6969 5585 9112 7033 6206 5014 8099 9262 8395 9371 7584 8427 7634 9868 7304 6436 7201 6468 9353 6668 9113 9386 8966 7368 6826 6513 7387 6397 9383 7943 7016 6644 8642 8181 5487 8111 ...

output:

0.001165223047271
0.001165223047271
0.001147531303815
0.001147531303815
0.001289276944427
0.001289276944427
0.001194012598206
0.001194012598206
0.001223120668118
0.001223120668118
0.001117565789636
0.001117565789636
0.001074342806542
0.001074342806542
0.000995396215867
0.000995396215867
0.0011053528...

result:

ok 1024 numbers

Test #17:

score: 0
Accepted
time: 52ms
memory: 6740kb

input:

2048 8795
5070 7584 6051 7959 8849 8258 5514 8885 7135 5103 9536 9163 9892 5218 6027 6785 9753 7020 7707 7170 9339 9286 5927 6926 9497 7859 6025 6245 7102 5336 8192 5349 6094 9713 5844 8625 5445 5445 7859 6026 5178 7918 6143 5947 7647 9929 6237 9021 9025 8613 7985 6766 5270 8429 7865 8455 5301 9911 ...

output:

0.000953039354383
0.000953039354383
0.000912892184063
0.000912892184063
0.000786030899797
0.000786030899797
0.000884524571737
0.000884524571737
0.000812858771487
0.000812858771487
0.000776119840706
0.000776119840706
0.000785721238099
0.000785721238099
0.000853363751818
0.000853363751818
0.0007065905...

result:

ok 2048 numbers

Test #18:

score: 0
Accepted
time: 203ms
memory: 5344kb

input:

4096 9868
5909 6763 7524 9537 5341 5227 5679 8256 5388 6116 7859 8529 8357 9114 6276 8105 5290 9490 7020 7315 6615 9982 6429 6544 5267 9865 9022 9737 9275 8713 8020 9291 9721 8465 5820 7855 5977 8177 6683 6622 9530 7846 8661 6707 8659 7571 6497 5539 5964 6720 6508 5671 9609 9636 7157 8348 9979 6766 ...

output:

0.000879631181979
0.000879631181979
0.000837386619207
0.000837386619207
0.000971045339345
0.000971045339345
0.000960882586039
0.000960882586039
0.000879520729175
0.000879520729175
0.000819132660086
0.000819132660086
0.000748769053285
0.000748769053285
0.000804414825218
0.000804414825218
0.0008110500...

result:

ok 4096 numbers

Test #19:

score: 0
Accepted
time: 1ms
memory: 4276kb

input:

4 1
1 1 1

output:

0.250000000000000
0.250000000000000
0.250000000000000
0.250000000000000

result:

ok 4 numbers

Test #20:

score: 0
Accepted
time: 1ms
memory: 4396kb

input:

4 9028
9982 1344 8291

output:

0.270687882344378
0.270687882344378
0.272024045610847
0.272024045610847

result:

ok 4 numbers

Test #21:

score: 0
Accepted
time: 1ms
memory: 4400kb

input:

4 10000
10000 10000 10000

output:

0.250000000000000
0.250000000000000
0.250000000000000
0.250000000000000

result:

ok 4 numbers

Test #22:

score: 0
Accepted
time: 1ms
memory: 4272kb

input:

4 1
10000 10000 10000

output:

0.000000009998000
0.000000009998000
0.000000009998000
0.000000009998000

result:

ok 4 numbers

Test #23:

score: 0
Accepted
time: 1ms
memory: 4384kb

input:

4 1
9951 9514 9388

output:

0.000000010630799
0.000000010630799
0.000000010942375
0.000000010942375

result:

ok 4 numbers

Test #24:

score: 0
Accepted
time: 1ms
memory: 4552kb

input:

4 10000
807 556 706

output:

0.869717129889361
0.869717129889361
0.872689575863406
0.872689575863406

result:

ok 4 numbers

Test #25:

score: 0
Accepted
time: 1ms
memory: 4396kb

input:

4 10000
1 1 1

output:

0.999800029996000
0.999800029996000
0.999800029996000
0.999800029996000

result:

ok 4 numbers

Test #26:

score: 0
Accepted
time: 1ms
memory: 4556kb

input:

8 1
1 1 1 1 1 1 1

output:

0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000

result:

ok 8 numbers

Test #27:

score: 0
Accepted
time: 1ms
memory: 4328kb

input:

8 8060
2892 2523 7071 4102 6376 6670 5914

output:

0.251199456950908
0.251199456950908
0.229359676137811
0.229359676137811
0.197517337504974
0.197517337504974
0.200968839037963
0.200968839037963

result:

ok 8 numbers

Test #28:

score: 0
Accepted
time: 1ms
memory: 6068kb

input:

8 10000
10000 10000 10000 10000 10000 10000 10000

output:

0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000

result:

ok 8 numbers

Test #29:

score: 0
Accepted
time: 1ms
memory: 4396kb

input:

8 1
10000 10000 10000 10000 10000 10000 10000

output:

0.000000000001000
0.000000000001000
0.000000000001000
0.000000000001000
0.000000000001000
0.000000000001000
0.000000000001000
0.000000000001000

result:

ok 8 numbers

Test #30:

score: 0
Accepted
time: 1ms
memory: 4268kb

input:

8 1
9119 9095 9855 9950 9540 9662 9642

output:

0.000000000001193
0.000000000001193
0.000000000001148
0.000000000001148
0.000000000001142
0.000000000001142
0.000000000001136
0.000000000001136

result:

ok 8 numbers

Test #31:

score: 0
Accepted
time: 0ms
memory: 4400kb

input:

8 10000
113 860 940 78 277 446 431

output:

0.874088145286372
0.874088145286372
0.818067690097335
0.818067690097335
0.856746933148643
0.856746933148643
0.848816400757959
0.848816400757959

result:

ok 8 numbers

Test #32:

score: 0
Accepted
time: 1ms
memory: 4324kb

input:

8 10000
1 1 1 1 1 1 1

output:

0.999700059990001
0.999700059990001
0.999700059990001
0.999700059990001
0.999700059990001
0.999700059990001
0.999700059990001
0.999700059990001

result:

ok 8 numbers

Test #33:

score: 0
Accepted
time: 1ms
memory: 6076kb

input:

16 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000

result:

ok 16 numbers

Test #34:

score: 0
Accepted
time: 0ms
memory: 5972kb

input:

16 4550
6055 5325 9920 1020 9264 9506 1827 31 3897 9819 6192 8538 4302 4141 8718

output:

0.020984072425669
0.020984072425669
0.018674686346289
0.018674686346289
0.018400394391352
0.018400394391352
0.033668146079478
0.033668146079478
0.026769315420421
0.026769315420421
0.022327584002869
0.022327584002869
0.027076057764037
0.027076057764037
0.023360309592864
0.023360309592864

result:

ok 16 numbers

Test #35:

score: 0
Accepted
time: 1ms
memory: 4576kb

input:

16 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000

output:

0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000
0.062500000000000

result:

ok 16 numbers

Test #36:

score: 0
Accepted
time: 1ms
memory: 4328kb

input:

16 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000

result:

ok 16 numbers

Test #37:

score: 0
Accepted
time: 1ms
memory: 4396kb

input:

16 1
9221 9390 9077 9954 9240 9315 9989 9798 9626 9423 9698 9928 9514 9235 9933

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000

result:

ok 16 numbers

Test #38:

score: 0
Accepted
time: 0ms
memory: 5932kb

input:

16 10000
25 866 428 252 501 808 425 561 974 907 893 688 509 531 922

output:

0.811977890438891
0.811977890438891
0.771714523728629
0.771714523728629
0.770133305486530
0.770133305486530
0.774618572852222
0.774618572852222
0.729150760138256
0.729150760138256
0.731783823391890
0.731783823391890
0.758592392774833
0.758592392774833
0.747638818814248
0.747638818814248

result:

ok 16 numbers

Test #39:

score: 0
Accepted
time: 1ms
memory: 4552kb

input:

16 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003
0.999600099980003

result:

ok 16 numbers

Test #40:

score: 0
Accepted
time: 1ms
memory: 4556kb

input:

32 1
1 1 1 1 1 1 1 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:

0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.0312500000...

result:

ok 32 numbers

Test #41:

score: 0
Accepted
time: 1ms
memory: 6380kb

input:

32 4727
83 5541 5936 2032 4039 6474 5077 1747 9239 103 6456 1720 6571 2908 8762 8232 6094 9790 4721 3987 49 613 8903 7771 7111 2862 9721 9527 5847 6729 8856

output:

0.031390034342103
0.031390034342103
0.014678162404746
0.014678162404746
0.016297305813319
0.016297305813319
0.015176431200693
0.015176431200693
0.010540434198125
0.010540434198125
0.010542494697262
0.010542494697262
0.011431531353799
0.011431531353799
0.011010426799758
0.011010426799758
0.0104788252...

result:

ok 32 numbers

Test #42:

score: 0
Accepted
time: 0ms
memory: 4400kb

input:

32 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000

output:

0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.031250000000000
0.0312500000...

result:

ok 32 numbers

Test #43:

score: 0
Accepted
time: 0ms
memory: 4460kb

input:

32 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 32 numbers

Test #44:

score: 0
Accepted
time: 0ms
memory: 4404kb

input:

32 1
9638 9713 9601 9813 9525 9724 9267 9468 9228 9945 9141 9838 9855 9733 9010 9688 9162 9379 9377 9316 9629 9267 9859 9865 9428 9979 9823 9771 9641 9964 9203

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 32 numbers

Test #45:

score: 0
Accepted
time: 0ms
memory: 4464kb

input:

32 10000
377 823 891 757 179 997 469 963 636 214 510 818 737 898 53 112 217 824 947 978 59 312 143 904 5 210 901 44 726 85 530

output:

0.701421338764457
0.701421338764457
0.679547559843963
0.679547559843963
0.718071222777838
0.718071222777838
0.695498291883852
0.695498291883852
0.706043755867830
0.706043755867830
0.707329048726808
0.707329048726808
0.683514690533094
0.683514690533094
0.731528149817217
0.731528149817217
0.7129232671...

result:

ok 32 numbers

Test #46:

score: 0
Accepted
time: 1ms
memory: 4412kb

input:

32 10000
1 1 1 1 1 1 1 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:

0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.999500149965007
0.9995001499...

result:

ok 32 numbers

Test #47:

score: 0
Accepted
time: 1ms
memory: 4500kb

input:

64 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.0156250000...

result:

ok 64 numbers

Test #48:

score: 0
Accepted
time: 1ms
memory: 5856kb

input:

64 1159
7362 3228 6791 8851 3994 9077 9533 1983 7731 2722 9371 8782 7600 8318 6191 4725 4682 2555 8395 6769 3082 8875 8275 2015 6435 8314 3426 4227 1142 4066 6773 3538 6907 836 7038 9927 5295 7734 7186 8561 4736 5488 6796 7443 8307 5150 5304 4948 7631 369 8152 8941 3920 6686 5635 8221 8308 461 7889 ...

output:

0.000007718093096
0.000007718093096
0.000007874483000
0.000007874483000
0.000008914194820
0.000008914194820
0.000005715983444
0.000005715983444
0.000006466955528
0.000006466955528
0.000006235756947
0.000006235756947
0.000005944211658
0.000005944211658
0.000006551917858
0.000006551917858
0.0000128254...

result:

ok 64 numbers

Test #49:

score: 0
Accepted
time: 1ms
memory: 4336kb

input:

64 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 100...

output:

0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.015625000000000
0.0156250000...

result:

ok 64 numbers

Test #50:

score: 0
Accepted
time: 1ms
memory: 4408kb

input:

64 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 64 numbers

Test #51:

score: 0
Accepted
time: 1ms
memory: 4348kb

input:

64 1
9124 9168 9406 9101 9101 9078 9502 9188 9906 9994 9065 9728 9617 9885 9273 9039 9405 9476 9133 9507 9066 9049 9097 9638 9957 9552 9275 9505 9646 9887 9196 9176 9540 9973 9593 9275 9840 9879 9788 9879 9902 9051 9805 9516 9185 9813 9537 9188 9431 9908 9517 9664 9455 9426 9184 9158 9776 9211 9033 ...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 64 numbers

Test #52:

score: 0
Accepted
time: 1ms
memory: 4372kb

input:

64 10000
198 417 128 84 429 794 703 569 14 217 86 55 458 753 160 474 957 142 163 416 193 419 138 598 873 716 11 284 78 77 866 980 878 321 292 855 192 539 173 216 169 561 643 846 730 147 96 551 519 289 3 296 105 355 376 717 93 22 812 672 84 806 378

output:

0.730409925566402
0.730409925566402
0.735613127507239
0.735613127507239
0.710658148824376
0.710658148824376
0.698178626710740
0.698178626710740
0.759542259344374
0.759542259344374
0.752273466879220
0.752273466879220
0.724223254439536
0.724223254439536
0.745789793216285
0.745789793216285
0.7096404848...

result:

ok 64 numbers

Test #53:

score: 0
Accepted
time: 1ms
memory: 4432kb

input:

64 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.999400209944012
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.999400209944013
0.9994002099...

result:

ok 64 numbers

Test #54:

score: 0
Accepted
time: 1ms
memory: 6088kb

input:

128 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.0078125000...

result:

ok 128 numbers

Test #55:

score: 0
Accepted
time: 1ms
memory: 4396kb

input:

128 23
7988 1072 4035 6968 8358 5038 7197 7003 952 87 1670 8077 3004 7634 2919 6962 275 8508 5949 5921 9863 1895 6843 4755 7106 4230 3590 1208 4965 3875 5303 3921 6051 7946 9581 2663 8179 2139 4648 9651 5617 4283 8143 9508 5997 323 6459 7596 2714 3616 1114 2003 5776 9250 3741 5987 3275 2685 5386 714...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 128 numbers

Test #56:

score: 0
Accepted
time: 1ms
memory: 4420kb

input:

128 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10...

output:

0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.007812500000000
0.0078125000...

result:

ok 128 numbers

Test #57:

score: 0
Accepted
time: 1ms
memory: 4344kb

input:

128 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 ...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 128 numbers

Test #58:

score: 0
Accepted
time: 1ms
memory: 4424kb

input:

128 1
9411 9674 9044 9516 9406 9632 9578 9510 9245 9199 9427 9639 9154 9929 9539 9975 9056 9235 9271 9691 9076 9467 9661 9117 9675 9285 9396 9227 9146 9928 9229 9172 9610 9402 9128 9507 9128 9694 9640 9368 9221 9919 9673 9113 9723 9098 9688 9646 9553 9833 9974 9620 9640 9704 9146 9394 9533 9638 9639...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 128 numbers

Test #59:

score: 0
Accepted
time: 1ms
memory: 4352kb

input:

128 10000
221 491 314 445 452 143 362 585 641 644 467 726 352 255 60 852 809 227 831 638 282 28 884 492 276 84 781 562 698 177 696 695 341 261 528 687 594 805 108 874 977 291 183 3 968 772 734 217 223 571 741 785 890 428 986 10 826 706 928 71 116 905 598 337 568 92 662 299 83 88 254 324 518 631 138 ...

output:

0.679955235161540
0.679955235161540
0.674831864138329
0.674831864138329
0.671992179141172
0.671992179141172
0.672798832331636
0.672798832331636
0.645105663388429
0.645105663388429
0.651292467011341
0.651292467011341
0.677720737757546
0.677720737757546
0.691051231557451
0.691051231557451
0.6094255376...

result:

ok 128 numbers

Test #60:

score: 0
Accepted
time: 1ms
memory: 4432kb

input:

128 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.999300279916021
0.9993002799...

result:

ok 128 numbers

Test #61:

score: 0
Accepted
time: 0ms
memory: 4436kb

input:

256 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.0039062500...

result:

ok 256 numbers

Test #62:

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

input:

256 7237
1269 4498 1333 5677 6086 5032 2603 219 5725 8691 8203 5354 1524 9273 88 9594 9948 913 3726 2444 9337 5097 4714 2007 322 8320 7789 1591 8322 1245 9132 2616 6026 6278 8099 6319 5676 1546 3805 7506 6193 5448 3758 7067 741 1589 7770 2952 6614 6875 8779 4318 4760 4596 4222 4578 2707 8979 2342 10...

output:

0.008990462488229
0.008990462488229
0.008915962385090
0.008915962385090
0.005784167697331
0.005784167697331
0.006910799630034
0.006910799630034
0.004235111817807
0.004235111817807
0.003819874103462
0.003819874103462
0.006109129449638
0.006109129449638
0.008123233385355
0.008123233385355
0.0044866226...

result:

ok 256 numbers

Test #63:

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

input:

256 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10...

output:

0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.003906250000000
0.0039062500...

result:

ok 256 numbers

Test #64:

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

input:

256 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 ...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 256 numbers

Test #65:

score: 0
Accepted
time: 1ms
memory: 4436kb

input:

256 1
9954 9045 9256 9598 9914 9422 9554 9432 9566 9195 9339 9336 9874 9899 9432 9943 9425 9730 9509 9468 9699 9338 9505 9627 9649 9793 9071 9546 9658 9601 9697 9728 9027 9885 9781 9029 9705 9162 9483 9104 9939 9718 9120 9747 9263 9244 9964 9624 9180 9052 9616 9516 9776 9682 9632 9424 9812 9283 9036...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 256 numbers

Test #66:

score: 0
Accepted
time: 1ms
memory: 4432kb

input:

256 10000
552 500 486 130 109 992 234 528 816 980 654 428 440 952 610 464 363 907 751 757 128 502 790 351 421 294 806 469 641 782 370 450 667 379 809 367 217 230 925 918 394 14 4 528 653 363 850 321 784 84 805 519 202 354 520 310 896 627 520 302 860 560 866 523 41 983 411 949 937 73 486 526 71 677 9...

output:

0.581036162440074
0.581036162440074
0.582797850004759
0.582797850004759
0.601479699244727
0.601479699244727
0.590917250614829
0.590917250614829
0.555435780548113
0.555435780548113
0.560896796292767
0.560896796292767
0.572116331900952
0.572116331900952
0.564569430091485
0.564569430091485
0.5790964730...

result:

ok 256 numbers

Test #67:

score: 0
Accepted
time: 1ms
memory: 4472kb

input:

256 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.999200359880033
0.9992003598...

result:

ok 256 numbers

Test #68:

score: 0
Accepted
time: 4ms
memory: 4464kb

input:

512 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.0019531250...

result:

ok 512 numbers

Test #69:

score: 0
Accepted
time: 4ms
memory: 4492kb

input:

512 2869
4130 9454 4067 6359 1631 8297 6300 3704 7370 9208 8652 6960 4186 9742 5798 9962 396 1709 7981 1059 6830 5599 5821 9231 8325 7169 6339 7317 2584 3219 8239 750 4402 7161 9625 1914 9556 9405 9946 4794 3264 3210 8958 5879 8815 7122 2633 3674 7644 954 574 226 6935 3433 5113 9169 804 8172 951 596...

output:

0.000014032902646
0.000014032902646
0.000014133462252
0.000014133462252
0.000021316875882
0.000021316875882
0.000011890288667
0.000011890288667
0.000008323554393
0.000008323554393
0.000007805211271
0.000007805211271
0.000011951384321
0.000011951384321
0.000010284922145
0.000010284922145
0.0000369455...

result:

ok 512 numbers

Test #70:

score: 0
Accepted
time: 4ms
memory: 4508kb

input:

512 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10...

output:

0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.001953125000000
0.0019531250...

result:

ok 512 numbers

Test #71:

score: 0
Accepted
time: 4ms
memory: 4660kb

input:

512 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 ...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 512 numbers

Test #72:

score: 0
Accepted
time: 4ms
memory: 4440kb

input:

512 1
9118 9161 9630 9427 9993 9407 9902 9961 9212 9884 9365 9967 9533 9948 9170 9879 9333 9189 9172 9724 9925 9625 9283 9901 9844 9623 9625 9869 9417 9806 9463 9251 9475 9894 9192 9178 9548 9080 9671 9428 9025 9059 9433 9535 9167 9620 9639 9759 9246 9442 9487 9670 9542 9382 9215 9205 9433 9622 9750...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 512 numbers

Test #73:

score: 0
Accepted
time: 4ms
memory: 4660kb

input:

512 10000
278 622 157 482 418 47 464 401 927 627 947 694 345 157 390 904 1000 576 129 668 241 130 717 560 854 868 19 113 585 387 554 342 173 106 853 74 597 590 211 598 171 640 302 596 371 447 116 285 5 43 137 172 310 195 75 537 103 752 789 864 797 8 484 487 543 820 229 587 292 90 277 171 498 683 359...

output:

0.565720442716011
0.565720442716011
0.573090380584386
0.573090380584386
0.561449266992986
0.561449266992986
0.561401653608465
0.561401653608465
0.527769348176494
0.527769348176494
0.527453851764361
0.527453851764361
0.566438413142523
0.566438413142523
0.565990815378777
0.565990815378777
0.5256739651...

result:

ok 512 numbers

Test #74:

score: 0
Accepted
time: 4ms
memory: 4432kb

input:

512 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.999100449835049
0.9991004498...

result:

ok 512 numbers

Test #75:

score: 0
Accepted
time: 14ms
memory: 4716kb

input:

1024 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.0009765625...

result:

ok 1024 numbers

Test #76:

score: 0
Accepted
time: 14ms
memory: 6156kb

input:

1024 5948
9435 8976 521 6100 6322 9031 9932 9209 6771 5829 6921 7119 3810 8441 6798 2539 3654 1298 4971 9320 9164 3894 7783 9862 4290 668 8539 7670 9405 5474 8580 1519 3635 7847 3077 8236 2610 9154 7123 1084 1991 6505 327 5953 2920 3387 5040 5762 1195 4695 9614 6536 124 7522 7176 436 9003 1045 2199 ...

output:

0.000212203575499
0.000212203575499
0.000463650447791
0.000463650447791
0.000243123411974
0.000243123411974
0.000211209031526
0.000211209031526
0.000287746391161
0.000287746391161
0.000286259177838
0.000286259177838
0.000346668905363
0.000346668905363
0.000288010552340
0.000288010552340
0.0004435581...

result:

ok 1024 numbers

Test #77:

score: 0
Accepted
time: 14ms
memory: 4684kb

input:

1024 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1...

output:

0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.000976562500000
0.0009765625...

result:

ok 1024 numbers

Test #78:

score: 0
Accepted
time: 10ms
memory: 4508kb

input:

1024 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 1024 numbers

Test #79:

score: 0
Accepted
time: 14ms
memory: 6136kb

input:

1024 1
9408 9308 9130 9759 9780 9022 9492 9415 9469 9254 9879 9098 9449 9438 9833 9755 9224 9671 9557 9732 9127 9313 9702 9168 9793 9707 9038 9596 9084 9888 9472 9584 9759 9960 9619 9890 9286 9955 9964 9857 9393 9993 9838 9703 9806 9076 9980 9239 9001 9823 9409 9812 9462 9829 9672 9145 9578 9170 901...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 1024 numbers

Test #80:

score: 0
Accepted
time: 14ms
memory: 4504kb

input:

1024 10000
450 439 287 247 893 174 931 185 855 502 388 406 58 79 453 825 458 248 301 626 15 177 15 547 198 889 112 414 1000 16 261 228 146 782 570 463 172 595 419 433 114 996 383 915 262 501 96 751 379 809 716 959 740 844 359 660 99 570 319 119 18 733 838 347 190 378 380 392 102 588 843 874 953 560 ...

output:

0.507271841414379
0.507271841414379
0.512044175789842
0.512044175789842
0.488490341069632
0.488490341069632
0.488397724032296
0.488397724032296
0.498466876904803
0.498466876904803
0.507774011564205
0.507774011564205
0.530643180301748
0.530643180301748
0.527101187098062
0.527101187098062
0.5180321761...

result:

ok 1024 numbers

Test #81:

score: 0
Accepted
time: 14ms
memory: 6188kb

input:

1024 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.999000549780071
0.9990005497...

result:

ok 1024 numbers

Test #82:

score: 0
Accepted
time: 54ms
memory: 5052kb

input:

2048 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.0004882812...

result:

ok 2048 numbers

Test #83:

score: 0
Accepted
time: 52ms
memory: 6432kb

input:

2048 2081
8446 8714 5384 9921 5346 8729 5892 7281 817 920 7728 7247 8938 4479 9237 9548 225 6730 3745 3568 8205 5659 1878 7094 6027 7207 1146 5563 9433 7173 4502 5731 684 467 6711 5221 7979 2288 9344 1050 5505 3331 5990 1457 447 7251 2610 9358 1479 8284 5731 7799 6738 7456 2169 790 8651 4564 2331 18...

output:

0.000000035208316
0.000000035208316
0.000000042954581
0.000000042954581
0.000000046117489
0.000000046117489
0.000000044072104
0.000000044072104
0.000000147161377
0.000000147161377
0.000000116395532
0.000000116395532
0.000000042762683
0.000000042762683
0.000000042419106
0.000000042419106
0.0000002535...

result:

ok 2048 numbers

Test #84:

score: 0
Accepted
time: 46ms
memory: 6760kb

input:

2048 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1...

output:

0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.000488281250000
0.0004882812...

result:

ok 2048 numbers

Test #85:

score: 0
Accepted
time: 55ms
memory: 4932kb

input:

2048 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2048 numbers

Test #86:

score: 0
Accepted
time: 52ms
memory: 4992kb

input:

2048 1
9761 9143 9396 9230 9500 9313 9055 9358 9552 9811 9238 9422 9526 9955 9168 9844 9652 9342 9939 9370 9008 9047 9081 9926 9596 9199 9856 9762 9318 9970 9426 9084 9887 9762 9377 9582 9979 9111 9707 9568 9761 9594 9837 9189 9396 9981 9899 9969 9999 9443 9633 9015 9468 9007 9838 9711 9443 9415 968...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2048 numbers

Test #87:

score: 0
Accepted
time: 52ms
memory: 4828kb

input:

2048 10000
432 474 238 374 948 699 199 642 795 159 14 760 569 771 300 81 304 88 625 704 587 484 293 957 509 690 131 674 872 973 672 952 902 361 64 859 868 259 2 418 626 412 151 400 972 105 151 54 468 710 75 630 277 454 252 729 930 181 491 755 285 487 711 506 16 398 642 754 648 159 844 563 644 829 86...

output:

0.469813849777661
0.469813849777661
0.475967847514736
0.475967847514736
0.454055961659933
0.454055961659933
0.475850882487282
0.475850882487282
0.470211489227585
0.470211489227585
0.481433168566994
0.481433168566994
0.455152681038674
0.455152681038674
0.464875430349935
0.464875430349935
0.4721130852...

result:

ok 2048 numbers

Test #88:

score: 0
Accepted
time: 48ms
memory: 4888kb

input:

2048 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.998900659714100
0.9989006597...

result:

ok 2048 numbers

Test #89:

score: 0
Accepted
time: 210ms
memory: 5388kb

input:

4096 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.0002441406...

result:

ok 4096 numbers

Test #90:

score: 0
Accepted
time: 206ms
memory: 5628kb

input:

4096 2990
7256 5369 1853 6811 4989 9101 95 7660 7073 4140 4586 3868 8016 2778 9158 2633 9145 6193 8763 534 6623 9597 5768 5067 2684 4030 8397 3104 9177 665 849 6070 1112 1928 3484 446 3194 965 4702 3343 6921 2419 4951 420 2671 6453 7837 1644 9885 4853 1193 8985 150 7823 7098 1985 465 9875 3104 8208 ...

output:

0.000000335859413
0.000000335859413
0.000000535579124
0.000000535579124
0.000000301074555
0.000000301074555
0.000000893832402
0.000000893832402
0.000000339303287
0.000000339303287
0.000000379571899
0.000000379571899
0.000000292655294
0.000000292655294
0.000000287134968
0.000000287134968
0.0000002138...

result:

ok 4096 numbers

Test #91:

score: 0
Accepted
time: 209ms
memory: 5344kb

input:

4096 10000
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1...

output:

0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.000244140625000
0.0002441406...

result:

ok 4096 numbers

Test #92:

score: 0
Accepted
time: 203ms
memory: 7172kb

input:

4096 1
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 4096 numbers

Test #93:

score: 0
Accepted
time: 204ms
memory: 5632kb

input:

4096 1
9666 9698 9620 9417 9260 9441 9783 9200 9977 9734 9383 9919 9748 9513 9524 9368 9588 9943 9247 9764 9495 9546 9219 9909 9168 9636 9701 9597 9391 9336 9424 9045 9424 9748 9419 9919 9102 9750 9699 9767 9990 9507 9045 9619 9990 9067 9400 9374 9608 9841 9100 9883 9168 9416 9644 9135 9657 9234 925...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 4096 numbers

Test #94:

score: 0
Accepted
time: 203ms
memory: 5400kb

input:

4096 10000
634 587 361 14 52 692 134 875 87 21 606 63 478 353 630 374 133 621 108 695 348 458 313 590 375 502 709 938 952 643 155 968 956 911 624 886 770 235 56 481 744 484 434 824 885 125 855 334 904 555 214 140 968 919 475 284 673 792 308 111 701 238 3 592 385 640 719 775 292 991 938 496 899 825 7...

output:

0.427743183267102
0.427743183267102
0.434397964802974
0.434397964802974
0.450061754953757
0.450061754953757
0.444436630867693
0.444436630867693
0.448700240990641
0.448700240990641
0.448398147356786
0.448398147356786
0.434637320907460
0.434637320907460
0.432709012681241
0.432709012681241
0.4473428842...

result:

ok 4096 numbers

Test #95:

score: 0
Accepted
time: 204ms
memory: 5452kb

input:

4096 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.998800779636136
0.9988007796...

result:

ok 4096 numbers