QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#442463 | #8795. Mysterious Sequence | ucup-team3877 | AC ✓ | 1ms | 3948kb | C++23 | 11.3kb | 2024-06-15 12:13:29 | 2024-06-15 12:13:41 |
Judging History
answer
//line 1 "answer.cpp"
#if !__INCLUDE_LEVEL__
#include __FILE__
int main() {
double a,b,x,y;
int n;
input(a,b,n,x,y);
if (n == 2) {
print(x);
print(y);
return 0;
}
auto dp = vv<double>(n, 2);
dp[0] = {0.0, x};
dp[1] = {1.0, 0.0};
rep(i, 2, n) {
dp[i][0] = dp[i-1][0] * a + dp[i-2][0] * b;
dp[i][1] = dp[i-1][1] * a + dp[i-2][1] * b;
}
auto ans = vector<double>(n);
ans[0] = x;
ans[1] = (y - dp[n-1][1]) / dp[n-1][0];
rep(i, 2, n) ans[i] = ans[i-1] * a + ans[i-2] * b;
repe(x, ans) print(x);
}
#else
//line 2 "/home/seekworser/.cpp_lib/competitive_library/competitive/std/std.hpp"
#include <bits/stdc++.h>
#ifndef LOCAL_TEST
#pragma GCC target ("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#endif // LOCAL_TEST
using namespace std;
// 型名の短縮
using ll = long long;
using pii = pair<int, int>; using pll = pair<ll, ll>;
using vi = vector<int>; using vvi = vector<vi>; using vvvi = vector<vvi>;
using vl = vector<ll>; using vvl = vector<vl>; using vvvl = vector<vvl>;
using vb = vector<bool>; using vvb = vector<vb>; using vvvb = vector<vvb>;
using vc = vector<char>; using vvc = vector<vc>; using vvvc = vector<vvc>;
using vd = vector<double>; using vvd = vector<vd>; using vvvd = vector<vvd>;
using vs = vector<string>; using vvs = vector<vector<string>>; using vvvs = vector<vector<vector<string>>>;
template<typename T> vector<vector<T>> vv(int h, int w, T val = T()) { return vector(h, vector<T>(w, val)); }
template<typename T> vector<vector<vector<T>>> vvv(int h1, int h2, int h3, T val = T()) { return vector(h1, vector(h2, vector<T>(h3, val))); }
template<typename T> vector<vector<vector<vector<T>>>> vvvv(int h1, int h2, int h3, int h4, T val = T()) { return vector(h1, vector(h2, vector(h3, vector<T>(h4, val)))); }
template <class T> using priority_queue_min = priority_queue<T, vector<T>, greater<T>>;
// 定数の定義
constexpr double PI = 3.14159265358979323;
constexpr int INF = 100100111; constexpr ll INFL = 3300300300300300491LL;
float EPS = 1e-8; double EPSL = 1e-16;
template<typename T> bool eq(const T x, const T y) { return x == y; }
template<> bool eq<double>(const double x, const double y) { return abs(x - y) < EPSL; }
template<> bool eq<float>(const float x, const float y) { return abs(x - y) < EPS; }
template<typename T> bool neq(const T x, const T y) { return !(eq<T>(x, y)); }
template<typename T> bool ge(const T x, const T y) { return (eq<T>(x, y) || (x > y)); }
template<typename T> bool le(const T x, const T y) { return (eq<T>(x, y) || (x < y)); }
template<typename T> bool gt(const T x, const T y) { return !(le<T>(x, y)); }
template<typename T> bool lt(const T x, const T y) { return !(ge<T>(x, y)); }
constexpr int MODINT998244353 = 998244353;
constexpr int MODINT1000000007 = 1000000007;
// 入出力高速化
struct Nyan { Nyan() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(18); } } nyan;
// 汎用マクロの定義
#define all(a) (a).begin(), (a).end()
#define sz(x) ((ll)(x).size())
#define rep1(n) for(ll dummy_iter = 0LL; dummy_iter < n; ++dummy_iter) // 0 から n-1 まで昇順
#define rep2(i, n) for(ll i = 0LL, i##_counter = 0LL; i##_counter < ll(n); ++(i##_counter), (i) = i##_counter) // 0 から n-1 まで昇順
#define rep3(i, s, t) for(ll i = ll(s), i##_counter = ll(s); i##_counter < ll(t); ++(i##_counter), (i) = (i##_counter)) // s から t まで昇順
#define rep4(i, s, t, step) for(ll i##_counter = step > 0 ? ll(s) : -ll(s), i##_end = step > 0 ? ll(t) : -ll(t), i##_step = abs(step), i = ll(s); i##_counter < i##_end; i##_counter += i##_step, i = step > 0 ? i##_counter : -i##_counter) // s から t まで stepずつ
#define overload4(a, b, c, d, e, ...) e
#define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
#define repe(a, v) for(auto& a : (v)) // v の全要素(変更可能)
#define smod(n, m) ((((n) % (m)) + (m)) % (m)) // 非負mod
#define sdiv(n, m) (((n) - smod(n, m)) / (m)) // 非負div
#define uniq(a) {sort(all(a)); (a).erase(unique(all(a)), (a).end());} // 重複除去
int Yes(bool b=true) { cout << (b ? "Yes\n" : "No\n"); return 0; };
int YES(bool b=true) { cout << (b ? "YES\n" : "NO\n"); return 0; };
int No(bool b=true) {return Yes(!b);};
int NO(bool b=true) {return YES(!b);};
template<typename T, size_t N> T max(array<T, N>& a) { return *max_element(all(a)); };
template<typename T, size_t N> T min(array<T, N>& a) { return *min_element(all(a)); };
template<typename T> T max(vector<T>& a) { return *max_element(all(a)); };
template<typename T> T min(vector<T>& a) { return *min_element(all(a)); };
template<typename T> vector<T> accum(const vector<T>& a) { vector<T> rev(sz(a)+1, 0); rep(i, sz(a)) rev[i+1] = rev[i] + a[i]; return rev; };
template<typename T> vector<T> vec_slice(const vector<T>& a, int l, int r) { vector<T> rev; rep(i, l, r) rev.push_back(a[i]); return rev; };
template<typename T> T sum(vector<T>& a, T zero = T(0)) { T rev = zero; rep(i, sz(a)) rev += a[i]; return rev; };
template<typename T> bool in_range(const T& val, const T& s, const T& t) { return s <= val && val < t; };
template <class T> inline vector<T>& operator--(vector<T>& v) { repe(x, v) --x; return v; }
template <class T> inline vector<T>& operator++(vector<T>& v) { repe(x, v) ++x; return v; }
// modでのpow
ll powm(ll a, ll n, ll mod=INFL) {
ll res = 1;
while (n > 0) {
if (n & 1) res = (res * a) % mod;
if (n > 1) a = (a * a) % mod;
n >>= 1;
}
return res;
}
// 整数Sqrt
ll sqrtll(ll x) {
assert(x >= 0);
ll rev = sqrt(x);
while(rev * rev > x) --rev;
while((rev+1) * (rev+1)<=x) ++rev;
return rev;
}
template <class T> inline bool chmax(T& M, const T& x) { if (M < x) { M = x; return true; } return false; } // 最大値を更新(更新されたら true を返す)
template <class T> inline bool chmin(T& m, const T& x) { if (m > x) { m = x; return true; } return false; } // 最小値を更新(更新されたら true を返す)
int digit(ll x, int d=10) { int rev=0; while (x > 0) { rev++; x /= d;}; return rev; } // xのd進数桁数
/**
* @brief std.hpp
* @docs docs/std/std.md
*/
//line 3 "/home/seekworser/.cpp_lib/competitive_library/competitive/std/io.hpp"
// 演算子オーバーロード(プロトタイプ宣言)
template <class T, class U> inline istream& operator>>(istream& is, pair<T, U>& p);
template <class T> inline istream& operator>>(istream& is, vector<T>& v);
template <class T, class U> inline ostream& operator<<(ostream& os, const pair<T, U>& p);
template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v);
template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp);
template <typename T> ostream &operator<<(ostream &os, const set<T> &st);
template <typename T> ostream &operator<<(ostream &os, const multiset<T> &st);
template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st);
template <typename T> ostream &operator<<(ostream &os, queue<T> q);
template <typename T> ostream &operator<<(ostream &os, deque<T> q);
template <typename T> ostream &operator<<(ostream &os, stack<T> st);
template <class T, class Container, class Compare> ostream &operator<<(ostream &os, priority_queue<T, Container, Compare> pq);
// 演算子オーバーロード
template <class T, class U> inline istream& operator>>(istream& is, pair<T, U>& p) { is >> p.first >> p.second; return is; }
template <class T> inline istream& operator>>(istream& is, vector<T>& v) { repe(x, v) is >> x; return is; }
template <class T, class U> inline ostream& operator<<(ostream& os, const pair<T, U>& p) { os << p.first << " " << p.second; return os; }
template <class T> inline ostream& operator<<(ostream& os, const vector<T>& v) { rep(i, sz(v)) { os << v.at(i); if (i != sz(v) - 1) os << " "; } return os; }
template <typename T, typename S> ostream &operator<<(ostream &os, const map<T, S> &mp) { for (auto &[key, val] : mp) { os << key << ":" << val << " "; } return os; }
template <typename T> ostream &operator<<(ostream &os, const set<T> &st) { auto itr = st.begin(); for (int i = 0; i < (int)st.size(); i++) { os << *itr << (i + 1 != (int)st.size() ? " " : ""); itr++; } return os; }
template <typename T> ostream &operator<<(ostream &os, const multiset<T> &st) { auto itr = st.begin(); for (int i = 0; i < (int)st.size(); i++) { os << *itr << (i + 1 != (int)st.size() ? " " : ""); itr++; } return os; }
template <typename T> ostream &operator<<(ostream &os, const unordered_set<T> &st) { ll cnt = 0; for (auto &e : st) { os << e << (++cnt != (int)st.size() ? " " : ""); } return os; }
template <typename T> ostream &operator<<(ostream &os, queue<T> q) { while (q.size()) { os << q.front() << " "; q.pop(); } return os; }
template <typename T> ostream &operator<<(ostream &os, deque<T> q) { while (q.size()) { os << q.front() << " "; q.pop_front(); } return os; }
template <typename T> ostream &operator<<(ostream &os, stack<T> st) { while (st.size()) { os << st.top() << " "; st.pop(); } return os; }
template <class T, class Container, class Compare> ostream &operator<<(ostream &os, priority_queue<T, Container, Compare> pq) { while (pq.size()) { os << pq.top() << " "; pq.pop(); } return os; }
template <typename T> int print_sep_end(string sep, string end, const T& val) { (void)sep; cout << val << end; return 0; };
template <typename T1, typename... T2> int print_sep_end(string sep, string end, const T1 &val, const T2 &...remain) {
cout << val << sep;
print_sep_end(sep, end, remain...);
return 0;
};
template <typename... T> int print(const T &...args) { print_sep_end(" ", "\n", args...); return 0; };
template <typename... T> void flush() { cout << flush; };
template <typename... T> int print_and_flush(const T &...args) { print(args...); flush(); return 0; };
#define debug(...) debug_func(0, #__VA_ARGS__, __VA_ARGS__) // debug print
template <typename T> void input(T &a) { cin >> a; };
template <typename T1, typename... T2> void input(T1&a, T2 &...b) { cin >> a; input(b...); };
#ifdef LOCAL_TEST
template <typename T> void debug_func(int i, const T name) { (void)i; (void)name; cerr << endl; }
template <typename T1, typename T2, typename... T3> void debug_func(int i, const T1 &name, const T2 &a, const T3 &...b) {
int scope = 0;
for ( ; (scope != 0 || name[i] != ',') && name[i] != '\0'; i++ ) {
cerr << name[i];
if (name[i] == '(' || name[i] == '{') scope++;
if (name[i] == ')' || name[i] == '}') scope--;
}
cerr << ":" << a << " ";
debug_func(i + 1, name, b...);
}
template <typename T1, typename T2, typename... T3> void debug_func(int i, const T1 &name, T2 &a, T3 &...b) {
int scope = 0;
for ( ; (scope != 0 || name[i] != ',') && name[i] != '\0'; i++ ) {
cerr << name[i];
if (name[i] == '(' || name[i] == '{') scope++;
if (name[i] == ')' || name[i] == '}') scope--;
}
cerr << ":" << a << " ";
debug_func(i + 1, name, b...);
}
#endif
#ifndef LOCAL_TEST
template <typename... T>
void debug_func(T &...) {}
template <typename... T>
void debug_func(const T &...) {}
#endif
/**
* @brief io.hpp
* @docs docs/std/io.md
*/
//line 28 "answer.cpp"
#endif
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3900kb
input:
1.0 1.0 10 1 10
output:
1.000000000000000000 -0.323529411764705899 0.676470588235294157 0.352941176470588258 1.029411764705882470 1.382352941176470784 2.411764705882353255 3.794117647058824261 6.205882352941177516 10.000000000000001776
result:
ok 10 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
1 1 2 1 100
output:
1.000000000000000000 100.000000000000000000
result:
ok 2 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
1 1 5 50 100
output:
50.000000000000000000 0.000000000000000000 50.000000000000000000 50.000000000000000000 100.000000000000000000
result:
ok 5 numbers
Test #4:
score: 0
Accepted
time: 1ms
memory: 3892kb
input:
0.25 0.25 10 1 1
output:
1.000000000000000000 55.875536480686697871 14.218884120171674468 17.523605150214592641 7.935622317596566333 6.364806866952790187 3.575107296137339130 2.484978540772532440 1.515021459227468004 1.000000000000000000
result:
ok 10 numbers
Test #5:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
0.25 0.63 6 93 12
output:
93.000000000000000000 -14.204807958665043088 55.038798010333742639 4.810670488624458230 35.877110368666372153 12.000000000000001776
result:
ok 6 numbers
Test #6:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
0.25 0.80 10 5 63
output:
5.000000000000000000 78.769536183531357665 23.692384045882839416 68.938724958295793499 36.188588476280216355 64.198127085706687467 45.000402552450850635 62.608602306678065474 51.652472618630199008 63.000000000000000000
result:
ok 10 numbers
Test #7:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
0.25 0.99 3 18 30
output:
18.000000000000000000 48.719999999999998863 30.000000000000000000
result:
ok 3 numbers
Test #8:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
0.28 0.64 9 6 10
output:
6.000000000000000000 20.950403348507801837 9.706112937582185296 16.125969765568004988 10.727183814411640483 13.324232117998782599 10.596182634263108469 11.494439693112891376 10.000000000000000000
result:
ok 9 numbers
Test #9:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
0.31 0.40 7 10 49
output:
10.000000000000000000 240.115063998688214042 78.435669839593344932 120.361083249749214019 68.686203743259596877 69.437156460310163197 48.999999999999992895
result:
ok 7 numbers
Test #10:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
0.32 0.28 5 36 6
output:
36.000000000000000000 10.121376811594195999 13.318840579710144567 7.096014492753621283 6.000000000000000000
result:
ok 5 numbers
Test #11:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
0.35 0.65 10 86 82
output:
86.000000000000000000 79.533924786230855375 83.736873675180788723 81.004956897363328494 82.780702802944674090 81.626467964316802295 82.376720609424921804 81.889056390104641991 82.206038132662826001 82.000000000000000000
result:
ok 10 numbers
Test #12:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
0.36 0.68 8 72 59
output:
72.000000000000000000 38.239918642605687182 62.726370711338049091 48.584638133053559272 60.144401811609156994 54.689538582655714549 60.586427121650288541 58.999999999999992895
result:
ok 8 numbers
Test #13:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
0.43 0.61 2 93 84
output:
93.000000000000000000 84.000000000000000000
result:
ok 2 numbers
Test #14:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
0.46 0.96 6 65 35
output:
65.000000000000000000 -16.617423662818051611 54.755985115103698035 9.235026436642375103 56.813857871355040174 35.000000000000000000
result:
ok 6 numbers
Test #15:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
0.50 0.90 4 19 1
output:
19.000000000000000000 -6.565217391304348560 13.817391304347827585 1.000000000000000000
result:
ok 4 numbers
Test #16:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
0.54 0.35 3 16 22
output:
16.000000000000000000 30.370370370370366686 22.000000000000000000
result:
ok 3 numbers
Test #17:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
0.55 0.89 10 74 13
output:
74.000000000000000000 -48.321937076576517711 39.282934607882907585 -21.400909963817497328 23.191311320916167205 -6.291588641293680340 17.179893322903861730 3.849427436845748396 17.407290147649597145 12.999999999999996447
result:
ok 10 numbers
Test #18:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
0.56 0.36 3 31 88
output:
31.000000000000000000 137.214285714285693984 87.999999999999985789
result:
ok 3 numbers
Test #19:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
0.57 0.93 7 71 48
output:
71.000000000000000000 -34.080565361686012693 46.604077743838971060 -5.130601472379780148 40.417349462513776359 18.266429824319654784 48.000000000000014211
result:
ok 7 numbers
Test #20:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
0.58 0.41 8 30 69
output:
30.000000000000000000 89.432121682809821550 64.170630576029694225 73.886135624049245507 69.163917198120728358 70.408387580770209979 69.194070848076222546 68.999999999999985789
result:
ok 8 numbers
Test #21:
score: 0
Accepted
time: 0ms
memory: 3936kb
input:
0.58 0.49 6 31 96
output:
31.000000000000000000 99.557613538417186305 72.933415852281967773 91.084611828147956203 88.566448627943969996 96.000000000000000000
result:
ok 6 numbers
Test #22:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
0.61 0.29 8 62 25
output:
62.000000000000000000 34.407651257133728961 38.968667266851575448 33.749105897348243843 31.887868104769381716 29.238840254140310293 27.083174305408707738 25.000000000000000000
result:
ok 8 numbers
Test #23:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
0.63 0.89 9 37 85
output:
37.000000000000000000 -5.887853302176887738 29.220652419628560637 13.168821585428563736 34.302738252289415755 33.330976309973756599 51.527952119821051724 62.127178751363906883 85.000000000000000000
result:
ok 9 numbers
Test #24:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
0.64 0.67 2 74 42
output:
74.000000000000000000 42.000000000000000000
result:
ok 2 numbers
Test #25:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
0.65 0.56 2 94 96
output:
94.000000000000000000 96.000000000000000000
result:
ok 2 numbers
Test #26:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
0.65 0.90 10 97 23
output:
97.000000000000000000 -61.703576279117562819 47.192675418573578838 -24.857979629132980648 26.315721117779784066 -5.266962939662821697 20.260623095220971379 8.429138366197092225 23.713500723726983921 22.999999999999921840
result:
ok 10 numbers
Test #27:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
0.67 0.88 4 70 42
output:
70.000000000000000000 0.547821506509138745 61.967040409361125342 42.000000000000000000
result:
ok 4 numbers
Test #28:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
0.69 0.39 10 2 27
output:
2.000000000000000000 22.365907687016132854 16.212476304041132380 19.909312647724675571 20.060291485506066778 21.606233057611810011 22.731814489099512855 24.111382889947268637 25.502261844812423419 27.000000000000007105
result:
ok 10 numbers
Test #29:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
0.69 0.57 4 88 47
output:
88.000000000000000000 11.843609597552818613 58.332090622311440598 46.999999999999992895
result:
ok 4 numbers
Test #30:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
0.71 0.89 8 4 41
output:
4.000000000000000000 6.838890362691073754 8.415612157510661717 12.061697054627625647 16.053699728970102001 22.133037186187358714 30.002249160976415254 41.000000000000000000
result:
ok 8 numbers
Test #31:
score: 0
Accepted
time: 0ms
memory: 3936kb
input:
0.72 0.49 8 21 48
output:
21.000000000000000000 19.940442369940310385 24.647118506357024614 27.516742085847809562 31.889142369925366438 36.443386128411688674 41.864917773719845684 48.000000000000014211
result:
ok 8 numbers
Test #32:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
0.74 0.58 3 57 29
output:
57.000000000000000000 -5.486486486486479741 29.000000000000000000
result:
ok 3 numbers
Test #33:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
0.76 0.70 2 91 18
output:
91.000000000000000000 18.000000000000000000
result:
ok 2 numbers
Test #34:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
0.77 0.36 10 31 25
output:
31.000000000000000000 5.214972085026420068 15.175528505470342822 13.562546899821676050 15.906351374832015111 17.130407442556453645 18.916700225707995031 20.732805853115479522 22.774272588153795738 24.999999999999992895
result:
ok 10 numbers
Test #35:
score: 0
Accepted
time: 0ms
memory: 3936kb
input:
0.77 0.96 8 78 68
output:
78.000000000000000000 -40.097557007604983426 44.004881104144160986 -4.609896277109783114 38.695065726603857570 25.369700183459581666 56.681932238803582891 67.999999999999957367
result:
ok 8 numbers
Test #36:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
0.78 0.52 7 73 77
output:
73.000000000000000000 8.727547506052934168 44.767487054721286199 39.456964605830130211 54.055525661002576499 62.680931610613683347 77.000000000000014211
result:
ok 7 numbers
Test #37:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
0.78 0.69 4 42 97
output:
42.000000000000000000 57.297905113986445258 73.672365988909433554 97.000000000000000000
result:
ok 4 numbers
Test #38:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
0.78 0.70 10 54 99
output:
54.000000000000000000 -13.012886350899689702 27.649948646298238231 12.457939498482842211 29.072156861225380453 31.396840000693785555 44.840045003398920187 56.953023103136814598 75.811389522825962217 99.000000000000014211
result:
ok 10 numbers
Test #39:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
0.78 0.76 10 97 83
output:
97.000000000000000000 -43.734736959040489523 39.606905171948419309 -2.345014054751000998 28.272136967975018962 20.270056153409754529 37.297467895320622233 44.497267634941501058 63.053944355698050117 83.000000000000028422
result:
ok 10 numbers
Test #40:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
0.78 0.95 10 100 32
output:
100.000000000000000000 -63.269578817364127588 45.649728522455980340 -24.499311628980251498 24.257779025728581246 -4.353278407462944699 19.649332916621055745 11.190865187874628361 27.395741117332214287 32.000000000000028422
result:
ok 10 numbers
Test #41:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
0.79 0.90 10 98 42
output:
98.000000000000000000 -58.246914628041366768 42.184937443847317695 -19.096122584597850391 22.880506857630287243 0.889090091389860504 21.294837344065246754 17.623102584062419140 33.087604651068033945 41.999999999999928946
result:
ok 10 numbers
Test #42:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
0.81 0.48 10 97 1
output:
97.000000000000000000 -38.257501681599222820 15.571423637904622694 -5.750747660464879729 2.816177741217665620 -0.479254906636832789 0.963568841408644738 0.550448406355322550 0.908376253023960745 0.999999999999963141
result:
ok 10 numbers
Test #43:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
0.81 0.86 10 20 100
output:
20.000000000000000000 -3.332842869651402307 14.500397275582363577 8.879076925321509606 19.662393966511253041 23.562545268650612940 35.995320478806675624 49.419998518872937154 70.986174412060819350 100.000000000000000000
result:
ok 10 numbers
Test #44:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
0.84 0.85 10 74 95
output:
74.000000000000000000 -36.290804877098295833 32.415723903237434911 -3.617976066814104996 24.514265421627971620 17.516703297375507020 35.551156378179200601 44.752169160439706275 67.810305016221661845 94.999999999999943157
result:
ok 10 numbers
Test #45:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
0.88 0.37 10 3 96
output:
3.000000000000000000 29.021828490376417875 26.649209071531245741 34.189380524386770333 39.946862217926920380 47.803309545798796876 56.847251420935897670 67.712805782369144936 80.620752114231123642 95.999999999999971578
result:
ok 10 numbers
Test #46:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
0.91 0.50 10 100 98
output:
100.000000000000000000 -22.586857854484428287 29.445959352419169619 15.502394083459229535 28.830158292157484823 33.986641087592929011 45.342922535788304117 58.255380051363822247 75.683857114635230801 97.999999999999971578
result:
ok 10 numbers
Test #47:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
0.94 0.48 10 44 97
output:
44.000000000000000000 -1.582743438717797657 19.632221167605266032 17.694571046964405525 26.056362944597065479 32.986375270464151299 43.514246967642890240 56.736852279407102628 74.219479687111260091 96.999999999999985789
result:
ok 10 numbers
Test #48:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
0.94 0.54 10 28 95
output:
28.000000000000000000 0.452546307145842708 15.545393528717093901 14.857044922852821855 22.360134732988882433 29.041330907350072721 39.373323808723064587 52.693243070168719555 70.793243342669043727 95.000000000000000000
result:
ok 10 numbers
Test #49:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
0.95 0.57 10 2 94
output:
2.000000000000000000 9.227284174161063390 9.905919965453010789 14.670175946452165050 19.583041529437771544 26.965889742443614807 36.779928927100961289 50.311489633938776933 68.760474640689380976 94.000000000000014211
result:
ok 10 numbers
Test #50:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
0.98 0.90 10 21 99
output:
21.000000000000000000 -8.213193484970178204 10.851070384729228024 3.242174840561482974 12.943294690006558412 15.602386152711762435 26.939303650663429579 40.442665115090747463 63.879185098386017216 98.999999999999971578
result:
ok 10 numbers
Extra Test:
score: 0
Extra Test Passed