QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#73703 | #3527. Varvara and matrix | sinbad# | AC ✓ | 492ms | 11112kb | C++ | 8.3kb | 2023-01-27 16:46:48 | 2023-01-27 16:46:50 |
Judging History
answer
#define LOCAL
#define _USE_MATH_DEFINES
#include <array>
#include <cassert>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <vector>
#include <queue>
#include <stack>
#include <list>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <algorithm>
#include <complex>
#include <cmath>
#include <numeric>
#include <bitset>
#include <functional>
#include <random>
#include <ctime>
using namespace std;
template <typename A, typename B>
ostream& operator <<(ostream& out, const pair<A, B>& a) {
out << "(" << a.first << "," << a.second << ")";
return out;
}
template <typename T, size_t N>
ostream& operator <<(ostream& out, const array<T, N>& a) {
out << "["; bool first = true;
for (auto& v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "]";
return out;
}
template <typename T>
ostream& operator <<(ostream& out, const vector<T>& a) {
out << "["; bool first = true;
for (auto v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "]";
return out;
}
template <typename T, class Cmp>
ostream& operator <<(ostream& out, const set<T, Cmp>& a) {
out << "{"; bool first = true;
for (auto& v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "}";
return out;
}
template <typename T, class Cmp>
ostream& operator <<(ostream& out, const multiset<T, Cmp>& a) {
out << "{"; bool first = true;
for (auto& v : a) { out << (first ? "" : ", "); out << v; first = 0;} out << "}";
return out;
}
template <typename U, typename T, class Cmp>
ostream& operator <<(ostream& out, const map<U, T, Cmp>& a) {
out << "{"; bool first = true;
for (auto& p : a) { out << (first ? "" : ", "); out << p.first << ":" << p.second; first = 0;} out << "}";
return out;
}
#ifdef LOCAL
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
#else
#define trace(...) 42
#endif
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
cerr << name << ": " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
const char* comma = strchr(names + 1, ',');
cerr.write(names, comma - names) << ": " << arg1 << " |";
__f(comma + 1, args...);
}
template <class T> auto vect(const T& v, int n) { return vector<T>(n, v); }
template <class T, class... D> auto vect(const T& v, int n, D... m) {
return vector<decltype(vect(v, m...))>(n, vect(v, m...));
}
using int64 = long long;
using int128 = __int128_t;
using ii = pair<int, int>;
#define SZ(x) (int)((x).size())
template <typename T> static constexpr T inf = numeric_limits<T>::max() / 2;
const int MOD = 1e9 + 7;
// const int MOD = 998244353;
mt19937_64 mrand(random_device{}());
int64 rnd(int64 x) { return mrand() % x; }
constexpr inline int lg2(int64 x) { return x == 0 ? -1 : sizeof(int64) * 8 - 1 - __builtin_clzll(x); }
constexpr inline int p2ceil(int64 x) { return 1 << (lg2(x - 1) + 1); }
template <class T> void out(const vector<T>& a) { for (int i = 0; i < SZ(a); ++i) cout << a[i] << " \n"[i + 1 == SZ(a)]; }
template <class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
template <class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
template <class T> void dedup(vector<T>& v) { sort(v.begin(), v.end()); v.erase(unique(v.begin(), v.end()), v.end()); }
inline void add_mod(int& x, int y) { x += y; if (x >= MOD) x -= MOD; }
inline void sub_mod(int& x, int y) { x += MOD - y; if (x >= MOD) x -= MOD; }
inline int mod(int x) { return x >= MOD ? x - MOD : x; }
struct fast_ios {
fast_ios() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
cout << fixed << setprecision(10);
};
} fast_ios_;
template <class E> struct csr {
std::vector<int> start;
std::vector<E> elist;
csr(int n, const std::vector<std::pair<int, E>>& edges)
: start(n + 1), elist(edges.size()) {
for (auto e : edges) {
start[e.first + 1]++;
}
for (int i = 1; i <= n; i++) {
start[i] += start[i - 1];
}
auto counter = start;
for (auto e : edges) {
elist[counter[e.first]++] = e.second;
}
}
};
// Reference:
// R. Tarjan,
// Depth-First Search and Linear Graph Algorithms
struct scc_graph {
public:
scc_graph(int n) : _n(n) {}
int num_vertices() { return _n; }
void add_edge(int from, int to) { edges.push_back({from, {to}}); }
// @return pair of (# of scc, scc id)
std::pair<int, std::vector<int>> scc_ids() {
auto g = csr<edge>(_n, edges);
int now_ord = 0, group_num = 0;
std::vector<int> visited, low(_n), ord(_n, -1), ids(_n);
visited.reserve(_n);
auto dfs = [&](auto self, int v) -> void {
low[v] = ord[v] = now_ord++;
visited.push_back(v);
for (int i = g.start[v]; i < g.start[v + 1]; i++) {
auto to = g.elist[i].to;
if (ord[to] == -1) {
self(self, to);
low[v] = std::min(low[v], low[to]);
} else {
low[v] = std::min(low[v], ord[to]);
}
}
if (low[v] == ord[v]) {
while (true) {
int u = visited.back();
visited.pop_back();
ord[u] = _n;
ids[u] = group_num;
if (u == v) break;
}
group_num++;
}
};
for (int i = 0; i < _n; i++) {
if (ord[i] == -1) dfs(dfs, i);
}
for (auto& x : ids) {
x = group_num - 1 - x;
}
return {group_num, ids};
}
std::vector<std::vector<int>> scc() {
auto ids = scc_ids();
int group_num = ids.first;
std::vector<int> counts(group_num);
for (auto x : ids.second) counts[x]++;
std::vector<std::vector<int>> groups(ids.first);
for (int i = 0; i < group_num; i++) {
groups[i].reserve(counts[i]);
}
for (int i = 0; i < _n; i++) {
groups[ids.second[i]].push_back(i);
}
return groups;
}
private:
int _n;
struct edge {
int to;
};
std::vector<std::pair<int, edge>> edges;
};
struct two_sat {
public:
two_sat() : _n(0), scc(0) {}
two_sat(int n) : _n(n), _answer(n), scc(2 * n) {}
void add_clause(int i, bool f, int j, bool g) {
assert(0 <= i && i < _n);
assert(0 <= j && j < _n);
scc.add_edge(2 * i + (f ? 0 : 1), 2 * j + (g ? 1 : 0));
scc.add_edge(2 * j + (g ? 0 : 1), 2 * i + (f ? 1 : 0));
}
bool satisfiable() {
auto id = scc.scc_ids().second;
for (int i = 0; i < _n; i++) {
if (id[2 * i] == id[2 * i + 1]) return false;
_answer[i] = id[2 * i] < id[2 * i + 1];
}
return true;
}
std::vector<bool> answer() { return _answer; }
private:
int _n;
std::vector<bool> _answer;
scc_graph scc;
};
int main() {
int n, m, C;
cin >> n >> m >> C;
int A, B;
cin >> A >> B;
auto a = vect<int>(0, n, m);
vector<ii> can;
vector<ii> canA, canB;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
cin >> a[i][j];
if (a[i][j] == 0) {
can.push_back({i, j});
} else if (a[i][j] == A) {
canA.push_back({i, j});
} else if (a[i][j] == B) {
canB.push_back({i, j});
}
}
}
int len = SZ(can);
two_sat solver(len);
for (int i = 0; i < len; ++i) {
for (int j = i + 1; j < len; ++j) {
auto [x1, y1] = can[i];
auto [x2, y2] = can[j];
if (a[x1][y2] == A && a[x2][y1] == A) {
solver.add_clause(i, 1, j, 1);
}
if (a[x1][y2] == B && a[x2][y1] == B) {
solver.add_clause(i, 0, j, 0);
}
}
}
for (int i = 0; i < len; ++i) {
auto [x1, y1] = can[i];
bool found = 0;
for (auto [x2, y2] : canA) {
if (a[x1][y2] == A && a[x2][y1] == A) {
found = 1;
break;
}
}
if (found) solver.add_clause(i, 1, i, 1);
found = 0;
for (auto [x2, y2] : canB) {
if (a[x1][y2] == B && a[x2][y1] == B) {
found = 1;
break;
}
}
if (found) solver.add_clause(i, 0, i, 0);
}
if (solver.satisfiable()) {
cout << "Yes" << '\n';
auto ret = solver.answer();
for (int i = 0; i < len; ++i) {
auto [x, y] = can[i];
a[x][y] = ret[i] ? B : A;
}
for (int i = 0; i < n; ++i) out(a[i]);
} else {
cout << "No" << '\n';
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 3460kb
input:
4 4 5 3 5 1 1 0 3 0 5 4 5 1 1 4 4 2 5 3 0
output:
Yes 1 1 5 3 3 5 4 5 1 1 4 4 2 5 3 3
result:
ok answer found and it is correct
Test #2:
score: 0
Accepted
time: 1ms
memory: 3408kb
input:
4 4 4 1 2 1 1 3 3 1 0 2 3 1 2 0 3 1 3 1 3
output:
No
result:
ok answer is No
Test #3:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
10 10 100 26 91 99 72 80 11 75 20 37 21 34 11 26 64 91 0 91 90 58 89 61 33 72 63 15 87 6 39 16 84 97 36 71 64 75 83 35 63 79 36 31 50 94 4 66 64 22 79 21 43 95 54 91 91 26 91 0 96 63 69 86 71 91 0 71 60 91 10 20 32 93 78 42 51 70 99 54 66 64 34 54 29 91 4 0 91 26 16 96 6 67 45 0 91 91 26 91 5 88 10 ...
output:
No
result:
ok answer is No
Test #4:
score: 0
Accepted
time: 2ms
memory: 3364kb
input:
10 9 90 49 77 79 24 54 3 38 18 27 33 74 2 12 81 48 23 8 14 31 50 50 29 45 87 26 45 63 87 55 42 0 4 82 85 4 79 48 67 3 62 64 16 53 69 75 90 39 69 46 35 45 19 18 80 46 57 24 76 22 10 52 41 51 87 22 0 70 74 53 30 20 17 14 71 2 56 59 82 55 15 11 79 60 4 66 46 43 46 21 27 33 52
output:
Yes 79 24 54 3 38 18 27 33 74 2 12 81 48 23 8 14 31 50 50 29 45 87 26 45 63 87 55 42 49 4 82 85 4 79 48 67 3 62 64 16 53 69 75 90 39 69 46 35 45 19 18 80 46 57 24 76 22 10 52 41 51 87 22 49 70 74 53 30 20 17 14 71 2 56 59 82 55 15 11 79 60 4 66 46 43 46 21 27 33 52
result:
ok answer found and it is correct
Test #5:
score: 0
Accepted
time: 2ms
memory: 3376kb
input:
9 10 90 38 74 1 55 7 27 76 90 13 61 85 51 0 22 71 8 41 36 50 24 36 9 15 78 84 36 69 27 86 55 87 45 83 16 3 60 85 7 82 59 35 42 61 76 51 40 72 75 49 55 29 64 62 60 78 8 8 14 18 26 50 1 59 0 78 86 31 12 4 68 54 59 89 58 12 46 39 64 25 9 29 30 24 63 21 86 1 70 62 77 22 4
output:
Yes 1 55 7 27 76 90 13 61 85 51 38 22 71 8 41 36 50 24 36 9 15 78 84 36 69 27 86 55 87 45 83 16 3 60 85 7 82 59 35 42 61 76 51 40 72 75 49 55 29 64 62 60 78 8 8 14 18 26 50 1 59 38 78 86 31 12 4 68 54 59 89 58 12 46 39 64 25 9 29 30 24 63 21 86 1 70 62 77 22 4
result:
ok answer found and it is correct
Test #6:
score: 0
Accepted
time: 2ms
memory: 3460kb
input:
9 10 90 52 36 80 62 33 59 65 79 79 78 29 66 87 55 87 30 68 11 22 62 81 62 0 74 64 17 58 26 89 23 35 80 20 83 19 27 7 28 35 72 5 26 84 19 24 84 38 68 62 32 29 47 14 57 19 25 44 54 65 47 71 29 63 6 22 54 20 60 86 73 89 35 9 0 80 63 61 24 20 8 37 76 38 62 18 14 14 28 57 81 31 16
output:
Yes 80 62 33 59 65 79 79 78 29 66 87 55 87 30 68 11 22 62 81 62 52 74 64 17 58 26 89 23 35 80 20 83 19 27 7 28 35 72 5 26 84 19 24 84 38 68 62 32 29 47 14 57 19 25 44 54 65 47 71 29 63 6 22 54 20 60 86 73 89 35 9 52 80 63 61 24 20 8 37 76 38 62 18 14 14 28 57 81 31 16
result:
ok answer found and it is correct
Test #7:
score: 0
Accepted
time: 2ms
memory: 3404kb
input:
9 10 90 55 27 40 15 9 81 1 3 78 26 9 70 63 39 70 23 88 15 59 74 71 84 60 71 87 36 22 62 44 88 19 54 60 32 34 68 89 22 79 71 30 54 0 81 4 49 1 5 18 41 34 39 12 66 1 44 21 58 24 24 5 38 8 29 23 23 66 28 5 76 38 3 79 0 2 9 32 34 43 12 72 72 38 34 33 56 57 48 26 62 56 62
output:
Yes 40 15 9 81 1 3 78 26 9 70 63 39 70 23 88 15 59 74 71 84 60 71 87 36 22 62 44 88 19 54 60 32 34 68 89 22 79 71 30 54 55 81 4 49 1 5 18 41 34 39 12 66 1 44 21 58 24 24 5 38 8 29 23 23 66 28 5 76 38 3 79 55 2 9 32 34 43 12 72 72 38 34 33 56 57 48 26 62 56 62
result:
ok answer found and it is correct
Test #8:
score: 0
Accepted
time: 1ms
memory: 3360kb
input:
9 10 90 34 30 30 0 60 45 58 76 72 22 85 90 71 76 28 66 15 56 57 28 35 55 50 40 13 67 1 59 28 16 89 44 30 44 65 0 26 73 83 23 14 44 13 65 14 62 76 55 40 53 65 4 19 63 0 35 16 75 2 66 80 66 59 40 65 79 22 82 9 2 11 75 46 27 26 38 78 66 38 87 5 56 0 30 10 30 27 52 70 9 43 38
output:
Yes 30 34 60 45 58 76 72 22 85 90 71 76 28 66 15 56 57 28 35 55 50 40 13 67 1 59 28 16 89 44 30 44 65 34 26 73 83 23 14 44 13 65 14 62 76 55 40 53 65 4 19 63 34 35 16 75 2 66 80 66 59 40 65 79 22 82 9 2 11 75 46 27 26 38 78 66 38 87 5 56 34 30 10 30 27 52 70 9 43 38
result:
ok answer found and it is correct
Test #9:
score: 0
Accepted
time: 2ms
memory: 3424kb
input:
9 10 90 75 74 74 0 12 74 4 39 25 73 58 45 62 74 68 0 19 8 57 12 66 90 49 51 40 77 71 40 71 7 8 7 23 29 25 77 67 1 1 28 59 84 0 74 74 16 18 4 10 52 60 24 43 42 12 45 54 13 87 58 30 61 5 1 15 3 24 17 68 47 32 70 74 83 0 14 28 20 9 29 86 38 45 17 55 82 87 14 14 25 42 12
output:
Yes 74 75 12 74 4 39 25 73 58 45 62 74 68 75 19 8 57 12 66 90 49 51 40 77 71 40 71 7 8 7 23 29 25 77 67 1 1 28 59 84 75 74 74 16 18 4 10 52 60 24 43 42 12 45 54 13 87 58 30 61 5 1 15 3 24 17 68 47 32 70 74 83 75 14 28 20 9 29 86 38 45 17 55 82 87 14 14 25 42 12
result:
ok answer found and it is correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3332kb
input:
9 10 90 42 6 0 29 22 39 47 89 8 53 66 79 76 28 11 76 59 90 36 47 65 62 27 47 66 0 32 24 83 63 46 74 89 74 10 29 50 80 69 79 48 71 85 29 87 83 86 44 86 70 30 57 48 43 25 27 81 45 62 11 3 55 22 0 26 49 79 72 1 74 15 84 57 14 0 11 26 55 65 40 65 28 62 34 56 43 48 35 5 63 16 62
output:
Yes 42 29 22 39 47 89 8 53 66 79 76 28 11 76 59 90 36 47 65 62 27 47 66 42 32 24 83 63 46 74 89 74 10 29 50 80 69 79 48 71 85 29 87 83 86 44 86 70 30 57 48 43 25 27 81 45 62 11 3 55 22 42 26 49 79 72 1 74 15 84 57 14 42 11 26 55 65 40 65 28 62 34 56 43 48 35 5 63 16 62
result:
ok answer found and it is correct
Test #11:
score: 0
Accepted
time: 2ms
memory: 3368kb
input:
10 9 90 20 71 36 26 50 46 53 5 73 5 52 90 48 36 78 12 89 9 2 5 63 71 20 0 63 54 16 28 59 6 0 71 71 3 35 12 41 4 82 38 4 12 17 65 81 66 51 0 65 80 59 50 38 44 46 56 1 71 0 20 49 46 22 72 89 35 34 73 23 7 69 7 85 70 65 75 58 87 21 86 35 61 7 68 26 43 72 78 85 28 61 25
output:
Yes 36 26 50 46 53 5 73 5 52 90 48 36 78 12 89 9 2 5 63 71 20 20 63 54 16 28 59 6 20 71 71 3 35 12 41 4 82 38 4 12 17 65 81 66 51 20 65 80 59 50 38 44 46 56 1 71 71 20 49 46 22 72 89 35 34 73 23 7 69 7 85 70 65 75 58 87 21 86 35 61 7 68 26 43 72 78 85 28 61 25
result:
ok answer found and it is correct
Test #12:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
10 9 90 10 83 69 39 86 88 75 4 88 15 12 83 61 0 45 83 22 68 68 74 49 68 55 33 81 0 8 35 6 13 70 40 52 43 18 18 14 43 0 21 83 82 10 63 37 27 84 58 32 45 1 21 88 67 9 51 10 62 83 41 0 54 24 46 84 9 20 85 87 20 22 40 48 28 20 0 57 37 90 69 9 49 46 31 72 31 0 72 17 59 71 60
output:
Yes 69 39 86 88 75 4 88 15 12 83 61 10 45 83 22 68 68 74 49 68 55 33 81 10 8 35 6 13 70 40 52 43 18 18 14 43 10 21 83 82 10 63 37 27 84 58 32 45 1 21 88 67 9 51 10 62 83 41 83 54 24 46 84 9 20 85 87 20 22 40 48 28 20 10 57 37 90 69 9 49 46 31 72 31 10 72 17 59 71 60
result:
ok answer found and it is correct
Test #13:
score: 0
Accepted
time: 2ms
memory: 3412kb
input:
9 10 90 84 65 73 29 87 86 41 25 80 45 63 54 84 62 9 81 0 84 15 22 2 12 83 34 65 84 84 0 71 64 62 50 69 79 84 0 21 84 35 18 70 70 24 57 73 49 56 40 15 17 36 29 80 0 8 37 44 61 47 29 18 38 0 63 84 49 84 45 46 44 44 43 9 3 27 21 9 85 85 4 14 3 84 33 0 84 74 65 88 44 62 26
output:
Yes 73 29 87 86 41 25 80 45 63 54 84 62 9 81 84 84 15 22 2 12 83 34 65 84 84 65 71 64 62 50 69 79 84 65 21 84 35 18 70 70 24 57 73 49 56 40 15 17 36 29 80 84 8 37 44 61 47 29 18 38 65 63 84 49 84 45 46 44 44 43 9 3 27 21 9 85 85 4 14 3 84 33 84 84 74 65 88 44 62 26
result:
ok answer found and it is correct
Test #14:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
9 10 90 87 29 53 57 14 87 0 39 50 4 64 20 38 49 61 14 56 32 66 15 27 90 5 87 83 29 38 0 20 51 27 43 25 29 39 0 87 29 3 77 42 20 0 87 80 57 30 53 3 6 43 65 25 65 75 24 8 57 56 5 33 67 79 53 0 80 45 45 60 5 65 33 87 0 60 29 44 87 59 4 23 12 6 4 83 54 88 49 11 10 27 67
output:
Yes 53 57 14 87 29 39 50 4 64 20 38 49 61 14 56 32 66 15 27 90 5 87 83 29 38 87 20 51 27 43 25 29 39 87 87 29 3 77 42 20 29 87 80 57 30 53 3 6 43 65 25 65 75 24 8 57 56 5 33 67 79 53 87 80 45 45 60 5 65 33 87 29 60 29 44 87 59 4 23 12 6 4 83 54 88 49 11 10 27 67
result:
ok answer found and it is correct
Test #15:
score: 0
Accepted
time: 2ms
memory: 3464kb
input:
9 10 90 82 89 0 82 8 55 40 56 2 59 25 83 66 54 0 44 43 34 27 21 58 40 46 72 35 9 0 89 47 15 25 32 42 73 35 57 34 49 13 36 84 70 2 30 41 0 51 54 66 26 7 35 35 26 13 27 46 14 61 78 54 44 82 0 45 5 58 80 25 38 43 60 72 4 83 26 9 34 80 63 88 46 56 73 46 88 89 0 20 35 33 20
output:
Yes 82 82 8 55 40 56 2 59 25 83 66 54 82 44 43 34 27 21 58 40 46 72 35 9 82 89 47 15 25 32 42 73 35 57 34 49 13 36 84 70 2 30 41 82 51 54 66 26 7 35 35 26 13 27 46 14 61 78 54 44 82 89 45 5 58 80 25 38 43 60 72 4 83 26 9 34 80 63 88 46 56 73 46 88 89 82 20 35 33 20
result:
ok answer found and it is correct
Test #16:
score: 0
Accepted
time: 2ms
memory: 3432kb
input:
9 10 90 56 12 69 64 73 0 9 18 12 21 67 68 0 32 59 54 21 40 56 80 64 81 56 64 15 12 9 56 0 2 48 22 57 0 21 73 56 17 58 38 6 67 61 56 29 85 0 43 14 16 68 58 38 58 0 47 46 36 19 2 74 20 73 25 4 82 23 28 42 0 56 79 47 79 77 65 32 0 56 40 70 63 58 79 32 85 9 25 50 56 0 35
output:
Yes 69 64 73 56 9 18 12 21 67 68 12 32 59 54 21 40 56 80 64 81 56 64 15 12 9 56 56 2 48 22 57 56 21 73 56 17 58 38 6 67 61 56 29 85 12 43 14 16 68 58 38 58 56 47 46 36 19 2 74 20 73 25 4 82 23 28 42 56 56 79 47 79 77 65 32 12 56 40 70 63 58 79 32 85 9 25 50 56 12 35
result:
ok answer found and it is correct
Test #17:
score: 0
Accepted
time: 2ms
memory: 3392kb
input:
10 9 90 50 52 7 74 66 56 0 61 23 52 59 1 28 23 7 44 52 0 50 75 30 73 62 45 74 80 32 57 42 76 0 40 52 53 17 61 66 36 36 59 0 52 41 50 65 52 65 80 55 50 50 45 0 52 65 45 0 89 40 40 33 66 6 57 30 46 87 52 72 52 34 50 0 74 71 52 52 0 47 50 10 75 50 11 87 79 50 3 88 88 89 0
output:
Yes 7 74 66 56 50 61 23 52 59 1 28 23 7 44 52 50 50 75 30 73 62 45 74 80 32 57 42 76 50 40 52 53 17 61 66 36 36 59 50 52 41 50 65 52 65 80 55 50 50 45 52 52 65 45 50 89 40 40 33 66 6 57 30 46 87 52 72 52 34 50 52 74 71 52 52 50 47 50 10 75 50 11 87 79 50 3 88 88 89 52
result:
ok answer found and it is correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3368kb
input:
9 10 90 27 13 24 56 13 0 59 26 27 60 13 24 33 48 0 13 10 2 44 13 21 1 40 0 71 87 13 85 62 19 45 33 23 25 49 13 36 85 13 13 0 69 43 90 1 28 34 0 75 55 46 39 59 40 66 27 14 25 0 25 13 30 27 13 37 46 0 88 68 8 26 72 0 80 7 31 27 17 4 47 48 87 16 60 13 89 1 22 35 0 13 80
output:
Yes 24 56 13 27 59 26 27 60 13 24 33 48 27 13 10 2 44 13 21 1 40 27 71 87 13 85 62 19 45 33 23 25 49 13 36 85 13 13 27 69 43 90 1 28 34 27 75 55 46 39 59 40 66 27 14 25 13 25 13 30 27 13 37 46 27 88 68 8 26 72 13 80 7 31 27 17 4 47 48 87 16 60 13 89 1 22 35 27 13 80
result:
ok answer found and it is correct
Test #19:
score: 0
Accepted
time: 2ms
memory: 3360kb
input:
10 9 90 90 60 69 60 0 60 68 62 2 76 55 0 9 5 77 61 27 5 32 90 52 0 60 9 30 60 3 90 60 7 14 10 10 41 67 0 90 50 7 90 22 60 74 60 90 0 83 90 60 70 46 60 25 55 19 0 3 51 60 0 44 34 84 60 27 19 60 34 7 5 0 74 60 30 70 23 10 75 0 23 29 71 60 24 86 54 63 35 49 82 50 4
output:
Yes 69 60 90 60 68 62 2 76 55 90 9 5 77 61 27 5 32 90 52 90 60 9 30 60 3 90 60 7 14 10 10 41 67 90 90 50 7 90 22 60 74 60 90 60 83 90 60 70 46 60 25 55 19 60 3 51 60 90 44 34 84 60 27 19 60 34 7 5 90 74 60 30 70 23 10 75 90 23 29 71 60 24 86 54 63 35 49 82 50 4
result:
ok answer found and it is correct
Test #20:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
46 50 2300 1718 1821 858 1990 1821 0 9 248 1300 2145 676 1611 393 677 379 1380 647 1323 1115 1119 868 732 774 485 1027 8 1974 1446 1153 1428 464 1196 1795 502 2296 91 2115 1141 1745 1604 1723 2034 99 1071 1650 583 595 1909 621 924 1348 670 1131 1469 1107 243 579 605 1170 696 1514 371 2068 2115 1405 ...
output:
Yes 858 1990 1821 1718 9 248 1300 2145 676 1611 393 677 379 1380 647 1323 1115 1119 868 732 774 485 1027 8 1974 1446 1153 1428 464 1196 1795 502 2296 91 2115 1141 1745 1604 1723 2034 99 1071 1650 583 595 1909 621 924 1348 670 1131 1469 1107 243 579 605 1170 696 1514 371 2068 2115 1405 536 847 8 2137...
result:
ok answer found and it is correct
Test #21:
score: 0
Accepted
time: 2ms
memory: 3392kb
input:
49 50 2450 935 241 1649 982 2347 1988 1508 2322 1244 2413 2093 2272 1899 2405 2079 572 1948 344 2445 1889 1451 588 910 1923 888 1430 772 145 1709 2125 1238 1931 1939 155 2152 1305 1116 255 1118 1146 1527 961 21 57 275 2154 1276 642 641 1417 1098 1253 1032 859 1973 494 1429 533 2050 244 2288 358 2021...
output:
Yes 1649 982 2347 1988 1508 2322 1244 2413 2093 2272 1899 2405 2079 572 1948 344 2445 1889 1451 588 910 1923 888 1430 772 145 1709 2125 1238 1931 1939 155 2152 1305 1116 255 1118 1146 1527 961 21 57 275 2154 1276 642 641 1417 1098 1253 1032 859 1973 494 1429 533 2050 244 2288 358 2021 1518 2404 1803...
result:
ok answer found and it is correct
Test #22:
score: 0
Accepted
time: 2ms
memory: 3400kb
input:
50 47 2350 1240 1799 752 925 2321 1660 0 471 2106 135 2218 974 1942 1905 1040 133 1926 563 242 431 178 1872 1408 1859 252 58 434 2118 2138 1245 128 1431 53 2273 2152 1767 740 1342 1833 1735 496 1018 221 451 717 1126 475 1180 626 1601 1324 72 1826 33 1843 283 760 1973 962 1022 2332 563 1002 689 1265 ...
output:
Yes 752 925 2321 1660 1240 471 2106 135 2218 974 1942 1905 1040 133 1926 563 242 431 178 1872 1408 1859 252 58 434 2118 2138 1245 128 1431 53 2273 2152 1767 740 1342 1833 1735 496 1018 221 451 717 1126 475 1180 626 1601 1324 72 1826 33 1843 283 760 1973 962 1022 2332 563 1002 689 1265 1232 1979 1513...
result:
ok answer found and it is correct
Test #23:
score: 0
Accepted
time: 2ms
memory: 3372kb
input:
50 45 2250 708 433 1802 2011 258 1996 701 349 239 979 2212 252 830 1379 1179 2109 1629 159 1944 1897 809 1169 1049 1069 141 790 1279 994 1876 1353 475 2234 440 2095 1865 424 68 8 892 167 1291 2045 959 557 2193 1264 1861 1039 215 1516 504 471 69 496 722 259 1721 498 170 1695 1784 1035 405 1844 680 12...
output:
Yes 1802 2011 258 1996 701 349 239 979 2212 252 830 1379 1179 2109 1629 159 1944 1897 809 1169 1049 1069 141 790 1279 994 1876 1353 475 2234 440 2095 1865 424 68 8 892 167 1291 2045 959 557 2193 1264 1861 1039 215 1516 504 471 69 496 722 259 1721 498 170 1695 1784 1035 405 1844 680 124 32 1632 929 1...
result:
ok answer found and it is correct
Test #24:
score: 0
Accepted
time: 2ms
memory: 3416kb
input:
50 45 2250 604 1527 396 463 360 0 1310 480 1381 1596 1881 795 249 1179 2248 567 348 1289 392 2136 326 682 144 2202 1026 655 254 172 1457 1323 1644 2164 1653 1964 1967 568 871 1888 2023 280 821 177 2250 1828 365 2081 1366 2073 847 1440 1630 1612 628 216 590 1933 254 1434 1226 2071 1654 1481 598 1429 ...
output:
Yes 396 463 360 604 1310 480 1381 1596 1881 795 249 1179 2248 567 348 1289 392 2136 326 682 144 2202 1026 655 254 172 1457 1323 1644 2164 1653 1964 1967 568 871 1888 2023 280 821 177 2250 1828 365 2081 1366 2073 847 1440 1630 1612 628 216 590 1933 254 1434 1226 2071 1654 1481 598 1429 70 1843 100 84...
result:
ok answer found and it is correct
Test #25:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
46 50 2300 1940 119 2224 0 2136 1637 1244 1523 854 1672 1192 1138 24 1203 549 1109 1129 118 1888 164 714 508 2225 415 1908 638 1069 1948 1790 1770 1301 2105 772 834 2117 259 902 393 1825 652 1216 757 1094 562 1482 411 1069 2264 1988 1068 1618 1796 1061 808 1961 59 492 1271 2147 2175 2123 1864 792 21...
output:
Yes 2224 1940 2136 1637 1244 1523 854 1672 1192 1138 24 1203 549 1109 1129 118 1888 164 714 508 2225 415 1908 638 1069 1948 1790 1770 1301 2105 772 834 2117 259 902 393 1825 652 1216 757 1094 562 1482 411 1069 2264 1988 1068 1618 1796 1061 808 1961 59 492 1271 2147 2175 2123 1864 792 2163 770 1019 5...
result:
ok answer found and it is correct
Test #26:
score: 0
Accepted
time: 2ms
memory: 3436kb
input:
50 46 2300 1867 815 1641 1624 1334 661 283 576 379 781 1074 548 0 124 1867 1886 2291 2275 760 306 51 84 2054 2228 881 5 379 719 161 693 584 1316 931 1413 1751 1351 629 85 19 1481 1287 1596 1586 849 1682 788 657 2063 1447 2128 1454 275 684 53 24 1781 1850 0 1919 2264 1901 2013 661 755 1155 205 1473 8...
output:
Yes 1641 1624 1334 661 283 576 379 781 1074 548 1867 124 1867 1886 2291 2275 760 306 51 84 2054 2228 881 5 379 719 161 693 584 1316 931 1413 1751 1351 629 85 19 1481 1287 1596 1586 849 1682 788 657 2063 1447 2128 1454 275 684 53 24 1781 1850 1867 1919 2264 1901 2013 661 755 1155 205 1473 815 2229 10...
result:
ok answer found and it is correct
Test #27:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
50 45 2250 2 1595 1499 1137 1246 1494 478 1658 2206 1922 212 1965 1216 571 2117 584 234 1976 909 1766 1921 837 453 777 2117 2159 1996 2074 1445 310 1304 1543 37 239 28 1736 2175 881 1382 1863 1267 1364 906 10 297 297 1846 1897 768 1136 1513 869 59 1189 666 1727 295 1595 326 2208 1706 1016 1523 1547 ...
output:
Yes 1499 1137 1246 1494 478 1658 2206 1922 212 1965 1216 571 2117 584 234 1976 909 1766 1921 837 453 777 2117 2159 1996 2074 1445 310 1304 1543 37 239 28 1736 2175 881 1382 1863 1267 1364 906 10 297 297 1846 1897 768 1136 1513 869 59 1189 666 1727 295 1595 326 2208 1706 1016 1523 1547 216 1867 608 1...
result:
ok answer found and it is correct
Test #28:
score: 0
Accepted
time: 2ms
memory: 3412kb
input:
50 45 2250 754 114 236 107 1033 347 1063 732 956 142 1327 2011 2208 68 1374 311 2122 1970 1591 1140 615 2057 1602 1185 24 63 959 2062 1934 1783 1331 1195 1994 2025 829 1774 1989 329 2161 1013 335 1503 407 970 1191 242 844 1049 2125 1835 1173 1494 779 2166 15 1346 130 1022 1192 1304 186 1182 889 522 ...
output:
Yes 236 107 1033 347 1063 732 956 142 1327 2011 2208 68 1374 311 2122 1970 1591 1140 615 2057 1602 1185 24 63 959 2062 1934 1783 1331 1195 1994 2025 829 1774 1989 329 2161 1013 335 1503 407 970 1191 242 844 1049 2125 1835 1173 1494 779 2166 15 1346 130 1022 1192 1304 186 1182 889 522 1262 817 1114 1...
result:
ok answer found and it is correct
Test #29:
score: 0
Accepted
time: 2ms
memory: 3412kb
input:
47 50 2350 83 1139 899 1098 1140 547 962 1895 1595 250 135 1422 2168 1050 390 83 2266 1044 1055 741 2269 415 375 1795 534 636 867 2279 1339 242 83 0 280 1813 1710 1394 52 1906 2094 1504 697 180 1932 20 714 248 226 1506 1499 2270 541 1716 15 83 1444 1624 964 181 29 1408 393 1109 1550 56 2331 1968 0 1...
output:
Yes 899 1098 1140 547 962 1895 1595 250 135 1422 2168 1050 390 83 2266 1044 1055 741 2269 415 375 1795 534 636 867 2279 1339 242 83 83 280 1813 1710 1394 52 1906 2094 1504 697 180 1932 20 714 248 226 1506 1499 2270 541 1716 15 83 1444 1624 964 181 29 1408 393 1109 1550 56 2331 1968 1139 1150 1620 19...
result:
ok answer found and it is correct
Test #30:
score: 0
Accepted
time: 3ms
memory: 3408kb
input:
50 45 2250 530 499 499 1385 530 660 1870 2123 2190 1389 157 1738 643 1619 2143 766 2195 2240 332 2221 1332 949 0 993 1497 700 632 530 1604 252 1295 1295 1991 516 2149 567 1749 1062 122 1135 1608 813 896 699 436 379 802 836 0 1305 1456 2021 1974 298 920 576 527 183 722 1590 1251 207 456 21 1121 1543 ...
output:
Yes 499 1385 530 660 1870 2123 2190 1389 157 1738 643 1619 2143 766 2195 2240 332 2221 1332 949 499 993 1497 700 632 530 1604 252 1295 1295 1991 516 2149 567 1749 1062 122 1135 1608 813 896 699 436 379 802 836 530 1305 1456 2021 1974 298 920 576 527 183 722 1590 1251 207 456 21 1121 1543 1109 333 51...
result:
ok answer found and it is correct
Test #31:
score: 0
Accepted
time: 2ms
memory: 3344kb
input:
48 50 2400 1436 97 702 2072 443 2134 163 1168 2141 216 1324 2201 1365 1795 1341 1034 1947 821 1436 1954 877 1002 2374 1077 1138 1786 977 2104 529 3 1022 967 0 2048 2370 1897 216 1889 2233 780 1271 1289 405 1236 340 106 868 1098 2233 1964 581 120 157 1399 1682 489 955 2227 234 1481 2350 229 244 1299 ...
output:
Yes 702 2072 443 2134 163 1168 2141 216 1324 2201 1365 1795 1341 1034 1947 821 1436 1954 877 1002 2374 1077 1138 1786 977 2104 529 3 1022 967 1436 2048 2370 1897 216 1889 2233 780 1271 1289 405 1236 340 106 868 1098 2233 1964 581 120 157 1399 1682 489 955 2227 234 1481 2350 229 244 1299 1140 1115 31...
result:
ok answer found and it is correct
Test #32:
score: 0
Accepted
time: 0ms
memory: 3436kb
input:
46 50 2300 116 1317 1499 247 179 116 379 952 238 1305 1427 1232 1651 1396 2256 272 1619 1161 1491 609 1085 851 1317 885 2261 1035 497 2212 1933 1933 1192 1189 1839 1433 712 815 925 1608 820 0 453 2101 2276 1698 1146 1335 1706 1047 1527 913 18 724 428 1590 2270 79 1443 443 510 378 1837 1796 1194 988 ...
output:
Yes 1499 247 179 116 379 952 238 1305 1427 1232 1651 1396 2256 272 1619 1161 1491 609 1085 851 1317 885 2261 1035 497 2212 1933 1933 1192 1189 1839 1433 712 815 925 1608 820 116 453 2101 2276 1698 1146 1335 1706 1047 1527 913 18 724 428 1590 2270 79 1443 443 510 378 1837 1796 1194 988 574 1026 2181 ...
result:
ok answer found and it is correct
Test #33:
score: 0
Accepted
time: 3ms
memory: 3444kb
input:
46 50 2300 1192 1728 1916 505 2062 1192 2249 2161 1808 1390 1849 1558 962 1530 1929 1773 670 2133 1991 1037 1085 1593 1853 1430 1930 471 1759 95 1827 2096 837 2106 1728 1497 740 113 0 733 1099 2227 2284 1720 878 1964 1728 1187 895 504 1371 1107 1533 1554 1746 1509 1824 1698 1192 1156 741 321 1774 18...
output:
Yes 1916 505 2062 1192 2249 2161 1808 1390 1849 1558 962 1530 1929 1773 670 2133 1991 1037 1085 1593 1853 1430 1930 471 1759 95 1827 2096 837 2106 1728 1497 740 113 1192 733 1099 2227 2284 1720 878 1964 1728 1187 895 504 1371 1107 1533 1554 1746 1509 1824 1698 1192 1156 741 321 1774 1844 50 216 2202...
result:
ok answer found and it is correct
Test #34:
score: 0
Accepted
time: 2ms
memory: 3404kb
input:
45 50 2250 382 970 970 385 1631 51 497 1974 1731 1083 1546 2142 2248 768 1060 1815 1965 1995 2120 573 1434 194 1182 2016 839 28 0 473 1395 836 2161 382 787 1073 1270 906 1454 757 921 164 1751 1846 469 519 505 2156 1775 1996 1538 684 196 1390 1404 762 732 1205 254 340 21 1941 1729 2168 576 461 10 382...
output:
Yes 970 385 1631 51 497 1974 1731 1083 1546 2142 2248 768 1060 1815 1965 1995 2120 573 1434 194 1182 2016 839 28 382 473 1395 836 2161 382 787 1073 1270 906 1454 757 921 164 1751 1846 469 519 505 2156 1775 1996 1538 684 196 1390 1404 762 732 1205 254 340 21 1941 1729 2168 576 461 10 382 1861 601 196...
result:
ok answer found and it is correct
Test #35:
score: 0
Accepted
time: 2ms
memory: 3356kb
input:
48 50 2400 1599 125 1536 267 1807 576 776 1066 2261 1693 727 1638 440 1719 1237 1934 1998 159 751 331 1090 1310 2090 1694 366 1622 1259 482 336 934 125 934 447 2329 317 1028 1746 0 317 1725 85 631 985 2369 1450 2369 2245 179 1040 634 1391 1131 769 972 631 1820 779 1197 2096 51 2332 2261 1064 1971 15...
output:
No
result:
ok answer is No
Test #36:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
98 100 9800 2148 796 7577 6941 8712 4277 6479 6897 604 7451 3034 2195 7318 9576 3498 1467 5344 6748 4464 3453 6076 3928 9477 5966 244 9698 6066 8443 9772 9309 7185 266 5962 5232 7127 3988 6178 6984 561 739 4357 6672 217 4815 2605 7576 6699 37 4750 982 8532 1313 4179 5187 4721 3321 367 2690 4707 7794...
output:
Yes 7577 6941 8712 4277 6479 6897 604 7451 3034 2195 7318 9576 3498 1467 5344 6748 4464 3453 6076 3928 9477 5966 244 9698 6066 8443 9772 9309 7185 266 5962 5232 7127 3988 6178 6984 561 739 4357 6672 217 4815 2605 7576 6699 37 4750 982 8532 1313 4179 5187 4721 3321 367 2690 4707 7794 7787 2673 9554 6...
result:
ok answer found and it is correct
Test #37:
score: 0
Accepted
time: 3ms
memory: 3428kb
input:
100 99 9900 1717 5571 8678 5499 6402 4583 639 8428 1597 7645 8982 729 6348 4838 5031 1366 9179 5810 7380 5270 2615 8419 1886 4360 3890 621 5072 1737 2998 6808 6747 8563 6910 9693 7198 2747 642 6556 6367 4679 796 9690 8008 9111 526 4498 8925 1784 8937 5165 841 4456 1783 4891 2778 2321 8946 1987 4543 ...
output:
Yes 8678 5499 6402 4583 639 8428 1597 7645 8982 729 6348 4838 5031 1366 9179 5810 7380 5270 2615 8419 1886 4360 3890 621 5072 1737 2998 6808 6747 8563 6910 9693 7198 2747 642 6556 6367 4679 796 9690 8008 9111 526 4498 8925 1784 8937 5165 841 4456 1783 4891 2778 2321 8946 1987 4543 9209 4479 449 737 ...
result:
ok answer found and it is correct
Test #38:
score: 0
Accepted
time: 3ms
memory: 3420kb
input:
93 100 9300 2670 132 5645 2472 2962 4135 6843 7887 61 5235 803 6778 8062 2065 1863 8180 190 8763 3703 3778 3498 8749 523 4319 2189 3373 8589 3129 241 2404 8507 2043 6742 3279 5634 4932 6957 5787 410 7981 4165 2854 5464 225 6884 2977 1001 5165 2033 8181 423 6099 6534 7776 818 4380 2280 2337 8549 3685...
output:
Yes 5645 2472 2962 4135 6843 7887 61 5235 803 6778 8062 2065 1863 8180 190 8763 3703 3778 3498 8749 523 4319 2189 3373 8589 3129 241 2404 8507 2043 6742 3279 5634 4932 6957 5787 410 7981 4165 2854 5464 225 6884 2977 1001 5165 2033 8181 423 6099 6534 7776 818 4380 2280 2337 8549 3685 3332 944 5363 16...
result:
ok answer found and it is correct
Test #39:
score: 0
Accepted
time: 3ms
memory: 3404kb
input:
100 98 9800 7736 2477 4578 3884 7233 3328 58 5067 3058 1292 2477 3182 1000 9449 0 873 6936 1501 3587 8742 4434 5441 2060 5675 434 6686 674 5291 3055 5862 6666 9647 5015 4718 6619 3725 908 5723 4820 1503 9042 2277 1150 9702 6239 7682 5401 4117 3489 5591 2361 4605 1046 8029 4254 1628 1551 8525 2463 80...
output:
Yes 4578 3884 7233 3328 58 5067 3058 1292 2477 3182 1000 9449 7736 873 6936 1501 3587 8742 4434 5441 2060 5675 434 6686 674 5291 3055 5862 6666 9647 5015 4718 6619 3725 908 5723 4820 1503 9042 2277 1150 9702 6239 7682 5401 4117 3489 5591 2361 4605 1046 8029 4254 1628 1551 8525 2463 8087 1214 7353 79...
result:
ok answer found and it is correct
Test #40:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
100 99 9900 2977 3606 1896 9386 7803 2860 3865 601 714 3773 7650 2345 4974 3855 2165 5101 6056 4998 1471 492 5525 4076 4811 7996 9827 3519 4779 5371 3970 9535 1061 1867 7421 9248 3845 3377 6086 609 2957 9583 6161 7875 5933 4188 4614 9382 9666 5607 1894 4307 4042 5356 2539 5327 3514 4691 6854 7495 98...
output:
Yes 1896 9386 7803 2860 3865 601 714 3773 7650 2345 4974 3855 2165 5101 6056 4998 1471 492 5525 4076 4811 7996 9827 3519 4779 5371 3970 9535 1061 1867 7421 9248 3845 3377 6086 609 2957 9583 6161 7875 5933 4188 4614 9382 9666 5607 1894 4307 4042 5356 2539 5327 3514 4691 6854 7495 9833 9032 7980 3097 ...
result:
ok answer found and it is correct
Test #41:
score: 0
Accepted
time: 3ms
memory: 3484kb
input:
100 97 9700 6822 6671 2155 7907 9268 4520 8445 8190 1555 2620 4422 9656 1235 3038 4031 7535 4382 9064 3037 7388 7085 8087 1408 6995 1589 677 3513 5242 6492 7981 7748 257 3433 3608 0 6566 8480 1311 9105 5165 5158 4439 2066 3576 5795 3038 75 4303 5441 8491 963 9544 2744 42 1551 2296 6376 7218 100 2521...
output:
Yes 2155 7907 9268 4520 8445 8190 1555 2620 4422 9656 1235 3038 4031 7535 4382 9064 3037 7388 7085 8087 1408 6995 1589 677 3513 5242 6492 7981 7748 257 3433 3608 6822 6566 8480 1311 9105 5165 5158 4439 2066 3576 5795 3038 75 4303 5441 8491 963 9544 2744 42 1551 2296 6376 7218 100 2521 2242 3833 3595...
result:
ok answer found and it is correct
Test #42:
score: 0
Accepted
time: 3ms
memory: 3512kb
input:
100 96 9600 8615 7312 772 3872 5248 1028 5904 5337 9376 7249 383 8809 3394 2972 2006 4211 8409 1091 6498 3304 4366 1813 5950 1917 6738 1290 1212 2456 7408 310 3520 0 5087 1030 5969 7617 1327 2719 8226 5830 8620 1588 7395 2961 9263 3570 6243 6360 9461 7729 6184 5963 605 5046 3411 5596 7775 3722 2418 ...
output:
Yes 772 3872 5248 1028 5904 5337 9376 7249 383 8809 3394 2972 2006 4211 8409 1091 6498 3304 4366 1813 5950 1917 6738 1290 1212 2456 7408 310 3520 8615 5087 1030 5969 7617 1327 2719 8226 5830 8620 1588 7395 2961 9263 3570 6243 6360 9461 7729 6184 5963 605 5046 3411 5596 7775 3722 2418 5027 5019 8524 ...
result:
ok answer found and it is correct
Test #43:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
100 93 9300 5200 7949 7506 8682 2992 4095 7233 1345 8685 6725 1519 5200 8338 4658 7908 3966 154 2486 8955 4722 7070 6552 7962 8788 7213 6902 7009 8451 9237 2523 9265 187 9205 0 433 6203 5774 7450 7423 4470 1525 9193 9001 7686 2904 8464 4523 5662 7606 1469 724 2584 2224 8434 7657 626 6227 9112 1259 4...
output:
No
result:
ok answer is No
Test #44:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
99 100 9900 609 3585 2466 1139 9246 7118 3962 3267 1779 4469 2925 7554 6485 3491 7546 6544 7886 5169 1264 1338 6168 6673 2686 3709 5688 1608 9284 870 1941 5891 3304 2079 8502 5331 1558 4136 1297 641 4856 3979 3206 7523 697 3585 9128 1700 6927 46 1118 8151 6907 521 6820 7082 3585 0 5128 713 2727 3407...
output:
Yes 2466 1139 9246 7118 3962 3267 1779 4469 2925 7554 6485 3491 7546 6544 7886 5169 1264 1338 6168 6673 2686 3709 5688 1608 9284 870 1941 5891 3304 2079 8502 5331 1558 4136 1297 641 4856 3979 3206 7523 697 3585 9128 1700 6927 46 1118 8151 6907 521 6820 7082 3585 3585 5128 713 2727 3407 733 8792 4841...
result:
ok answer found and it is correct
Test #45:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
100 94 9400 7243 6174 5188 1865 5107 3212 7012 5462 7886 824 608 3256 3068 8507 753 6690 4442 8648 6865 4629 388 6394 7298 5331 0 4367 3086 6474 1583 5067 1924 6908 3319 8606 2517 3839 6267 58 6435 5000 8644 6346 6897 2606 4367 1440 6837 1715 4283 8581 1668 6758 6272 3077 7243 2568 4237 4280 3891 79...
output:
Yes 5188 1865 5107 3212 7012 5462 7886 824 608 3256 3068 8507 753 6690 4442 8648 6865 4629 388 6394 7298 5331 7243 4367 3086 6474 1583 5067 1924 6908 3319 8606 2517 3839 6267 58 6435 5000 8644 6346 6897 2606 4367 1440 6837 1715 4283 8581 1668 6758 6272 3077 7243 2568 4237 4280 3891 7906 2297 6174 22...
result:
ok answer found and it is correct
Test #46:
score: 0
Accepted
time: 3ms
memory: 3432kb
input:
98 100 9800 8615 7803 1165 4670 8698 6870 3659 5533 3243 6978 2889 154 3835 4627 3697 3162 9610 2701 8032 6950 6321 5037 3755 7606 7382 6536 3061 9412 6332 6478 6984 5253 412 1349 4535 186 6090 7604 5054 5461 367 5939 3610 6507 4163 13 8541 2822 8858 5124 3541 1360 6124 3753 1503 3694 453 8384 7940 ...
output:
Yes 1165 4670 8698 6870 3659 5533 3243 6978 2889 154 3835 4627 3697 3162 9610 2701 8032 6950 6321 5037 3755 7606 7382 6536 3061 9412 6332 6478 6984 5253 412 1349 4535 186 6090 7604 5054 5461 367 5939 3610 6507 4163 13 8541 2822 8858 5124 3541 1360 6124 3753 1503 3694 453 8384 7940 5048 5701 6638 405...
result:
ok answer found and it is correct
Test #47:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
92 100 9200 4927 5822 2939 2645 72 2895 339 7319 7898 1099 1857 2661 5761 4934 5210 8076 2169 4674 645 2918 8448 4756 851 1706 8327 8338 4644 1029 0 441 8057 4689 9030 1059 3136 8352 833 8650 2140 3657 6129 4530 8746 8453 6540 2890 6182 5167 1916 4768 5714 8528 7802 1982 4543 5029 7966 500 6361 7634...
output:
Yes 2939 2645 72 2895 339 7319 7898 1099 1857 2661 5761 4934 5210 8076 2169 4674 645 2918 8448 4756 851 1706 8327 8338 4644 1029 4927 441 8057 4689 9030 1059 3136 8352 833 8650 2140 3657 6129 4530 8746 8453 6540 2890 6182 5167 1916 4768 5714 8528 7802 1982 4543 5029 7966 500 6361 7634 1004 8076 2615...
result:
ok answer found and it is correct
Test #48:
score: 0
Accepted
time: 3ms
memory: 3492kb
input:
100 98 9800 9484 4368 7161 3636 7408 8581 0 9581 8008 163 8018 8313 5691 3262 9460 905 5824 5419 9719 438 3581 7467 1863 5629 804 5173 4845 6407 8006 4761 746 4368 4677 9484 6314 2023 8193 1566 9433 4773 3966 8059 3403 3363 3263 1053 3441 7534 5536 518 4111 6939 9478 5342 6292 5235 9484 1384 3995 24...
output:
No
result:
ok answer is No
Test #49:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
94 100 9400 1904 3331 8380 4375 219 6172 1461 4301 1304 7964 3332 6138 2223 1904 1557 3353 7664 4173 9161 1432 787 4824 5999 3412 1066 6407 8133 9103 1515 8601 6811 3538 8307 8763 6030 8449 1323 680 8807 2724 495 4338 1682 1808 4587 7492 8781 3144 759 7728 6060 6979 8642 1484 3332 6426 5672 5269 129...
output:
Yes 8380 4375 219 6172 1461 4301 1304 7964 3332 6138 2223 1904 1557 3353 7664 4173 9161 1432 787 4824 5999 3412 1066 6407 8133 9103 1515 8601 6811 3538 8307 8763 6030 8449 1323 680 8807 2724 495 4338 1682 1808 4587 7492 8781 3144 759 7728 6060 6979 8642 1484 3332 6426 5672 5269 1296 5637 3331 3719 1...
result:
ok answer found and it is correct
Test #50:
score: 0
Accepted
time: 4ms
memory: 3416kb
input:
98 100 9800 5041 1314 5307 5232 7180 8641 7106 990 8034 1152 6249 1221 1314 684 5041 2518 3923 3278 2349 663 296 4508 2668 3426 689 5169 6880 1268 5437 178 6427 8490 9565 8155 99 447 4783 5534 2540 4201 3038 3702 6290 6661 6877 4499 1716 3305 4701 5092 6099 3388 4296 254 11 8330 3514 6116 5114 7108 ...
output:
Yes 5307 5232 7180 8641 7106 990 8034 1152 6249 1221 1314 684 5041 2518 3923 3278 2349 663 296 4508 2668 3426 689 5169 6880 1268 5437 178 6427 8490 9565 8155 99 447 4783 5534 2540 4201 3038 3702 6290 6661 6877 4499 1716 3305 4701 5092 6099 3388 4296 254 11 8330 3514 6116 5114 7108 8464 8409 9488 190...
result:
ok answer found and it is correct
Test #51:
score: 0
Accepted
time: 2ms
memory: 3440kb
input:
94 100 9400 6344 282 1889 3401 1575 2347 4891 1702 4621 4292 5694 8505 7935 184 5223 6286 3651 4371 4053 724 5900 11 4078 5020 7244 4331 8847 9209 510 3714 6596 2844 1978 5305 6769 7443 3755 1794 6569 4954 5296 0 6468 6898 966 2817 4023 3029 961 6344 1108 7953 7896 4940 2295 8296 1403 1946 3132 279 ...
output:
No
result:
ok answer is No
Test #52:
score: 0
Accepted
time: 12ms
memory: 3636kb
input:
250 243 60750 544 14711 33103 34210 53559 1230 57751 28238 32926 56775 9025 20722 23538 28245 46453 58811 25006 28556 24287 32783 36225 19136 58111 28896 26266 3094 11709 14851 14998 48877 4061 7059 44305 321 1158 16543 35346 42148 58794 17457 19773 25087 15153 44922 3782 418 27339 48058 21240 39835...
output:
Yes 33103 34210 53559 1230 57751 28238 32926 56775 9025 20722 23538 28245 46453 58811 25006 28556 24287 32783 36225 19136 58111 28896 26266 3094 11709 14851 14998 48877 4061 7059 44305 321 1158 16543 35346 42148 58794 17457 19773 25087 15153 44922 3782 418 27339 48058 21240 39835 34686 47799 9244 51...
result:
ok answer found and it is correct
Test #53:
score: 0
Accepted
time: 6ms
memory: 3620kb
input:
246 250 61500 60728 23100 7845 30940 49646 57938 4007 3648 39769 7075 3196 16734 41825 4392 29935 41745 11456 25026 54635 43687 44106 8553 14252 7678 21732 38740 43943 41333 8018 33946 34712 50852 17663 38271 12933 13731 958 29906 55056 16120 20758 7012 43696 9416 47393 19836 10420 45745 2033 35653 ...
output:
Yes 7845 30940 49646 57938 4007 3648 39769 7075 3196 16734 41825 4392 29935 41745 11456 25026 54635 43687 44106 8553 14252 7678 21732 38740 43943 41333 8018 33946 34712 50852 17663 38271 12933 13731 958 29906 55056 16120 20758 7012 43696 9416 47393 19836 10420 45745 2033 35653 21919 24413 20970 2748...
result:
ok answer found and it is correct
Test #54:
score: 0
Accepted
time: 13ms
memory: 3664kb
input:
248 250 62000 53456 43565 27584 39160 19053 18669 7893 15209 1623 56462 18930 3765 1480 16066 6757 40847 9335 43416 17333 41737 7617 36281 26327 47006 24816 33065 44288 58498 13869 668 37019 28148 53456 37085 51223 41590 33527 40218 7776 24140 4649 20569 10523 31720 41695 17305 3104 23919 58243 2324...
output:
Yes 27584 39160 19053 18669 7893 15209 1623 56462 18930 3765 1480 16066 6757 40847 9335 43416 17333 41737 7617 36281 26327 47006 24816 33065 44288 58498 13869 668 37019 28148 53456 37085 51223 41590 33527 40218 7776 24140 4649 20569 10523 31720 41695 17305 3104 23919 58243 23243 54565 14395 23495 60...
result:
ok answer found and it is correct
Test #55:
score: 0
Accepted
time: 7ms
memory: 3600kb
input:
250 248 62000 15437 38384 34030 45643 36413 22661 14270 45116 52500 37708 12582 15437 61289 15437 8313 34186 50209 34369 39615 54111 36437 23678 45207 37398 31010 60315 8985 21265 56737 29727 12180 35266 9534 44236 1444 32077 11271 59909 0 28359 8801 999 32697 37673 24363 4903 18187 29920 35160 2815...
output:
Yes 34030 45643 36413 22661 14270 45116 52500 37708 12582 15437 61289 15437 8313 34186 50209 34369 39615 54111 36437 23678 45207 37398 31010 60315 8985 21265 56737 29727 12180 35266 9534 44236 1444 32077 11271 59909 15437 28359 8801 999 32697 37673 24363 4903 18187 29920 35160 28150 10228 34211 1883...
result:
ok answer found and it is correct
Test #56:
score: 0
Accepted
time: 10ms
memory: 3596kb
input:
225 250 56250 29696 26244 41503 18321 13847 46898 13936 46738 54531 4767 5595 18744 36677 21885 9221 21506 46520 49192 32898 17492 6173 21637 48704 36359 5821 24699 15573 40888 46966 13428 11462 47207 11485 22150 41144 19163 4997 41077 47097 29529 26244 1208 3200 16915 34598 45740 21892 37304 21474 ...
output:
Yes 41503 18321 13847 46898 13936 46738 54531 4767 5595 18744 36677 21885 9221 21506 46520 49192 32898 17492 6173 21637 48704 36359 5821 24699 15573 40888 46966 13428 11462 47207 11485 22150 41144 19163 4997 41077 47097 29529 26244 1208 3200 16915 34598 45740 21892 37304 21474 51184 47343 50148 2243...
result:
ok answer found and it is correct
Test #57:
score: 0
Accepted
time: 8ms
memory: 3620kb
input:
250 226 56500 28019 31033 33905 22363 3805 30432 28536 53393 50891 28265 7609 19443 54646 17912 43749 30954 37311 23069 22027 7214 2733 31808 45658 13351 50038 2180 10253 31765 20924 38337 28879 43120 27520 25173 4961 8999 55105 34853 34559 42458 4804 49310 8727 3836 48445 32425 1682 26318 12637 421...
output:
Yes 33905 22363 3805 30432 28536 53393 50891 28265 7609 19443 54646 17912 43749 30954 37311 23069 22027 7214 2733 31808 45658 13351 50038 2180 10253 31765 20924 38337 28879 43120 27520 25173 4961 8999 55105 34853 34559 42458 4804 49310 8727 3836 48445 32425 1682 26318 12637 42179 52043 12529 23861 2...
result:
ok answer found and it is correct
Test #58:
score: 0
Accepted
time: 10ms
memory: 3652kb
input:
240 250 60000 29444 10176 6792 45931 50531 20962 23392 32196 39867 47631 32547 18241 15555 20167 45277 49023 21013 39769 31880 30383 40890 46793 45621 26561 56426 35061 29033 18106 27835 25638 22313 55001 43263 23378 22543 33084 18554 44817 47116 10277 58098 55151 49505 5852 13453 47669 53084 49761 ...
output:
Yes 6792 45931 50531 20962 23392 32196 39867 47631 32547 18241 15555 20167 45277 49023 21013 39769 31880 30383 40890 46793 45621 26561 56426 35061 29033 18106 27835 25638 22313 55001 43263 23378 22543 33084 18554 44817 47116 10277 58098 55151 49505 5852 13453 47669 53084 49761 6171 26578 45355 51658...
result:
ok answer found and it is correct
Test #59:
score: 0
Accepted
time: 12ms
memory: 3620kb
input:
230 250 57500 45270 35533 18526 2972 25380 51618 1852 15680 12566 33674 17397 38679 20915 16784 2079 3308 25729 30808 13041 5609 19977 23410 40999 52654 17893 11562 49882 25323 51469 2962 34428 40082 9791 7774 49982 49506 38998 51893 48640 32206 13547 46197 16857 37560 14232 8024 38360 23391 53490 5...
output:
Yes 18526 2972 25380 51618 1852 15680 12566 33674 17397 38679 20915 16784 2079 3308 25729 30808 13041 5609 19977 23410 40999 52654 17893 11562 49882 25323 51469 2962 34428 40082 9791 7774 49982 49506 38998 51893 48640 32206 13547 46197 16857 37560 14232 8024 38360 23391 53490 50339 28145 38623 54047...
result:
ok answer found and it is correct
Test #60:
score: 0
Accepted
time: 11ms
memory: 3640kb
input:
246 250 61500 29051 33791 27801 27367 56578 45057 11785 17546 42449 15557 28387 25183 12017 47874 42072 17287 11413 30025 29679 17454 22387 52195 17124 44669 18695 42459 27591 51067 19707 8947 42081 34320 27623 28678 2098 46698 8858 48638 61364 32905 55562 57230 3139 0 54260 61029 9765 6169 10696 36...
output:
Yes 27801 27367 56578 45057 11785 17546 42449 15557 28387 25183 12017 47874 42072 17287 11413 30025 29679 17454 22387 52195 17124 44669 18695 42459 27591 51067 19707 8947 42081 34320 27623 28678 2098 46698 8858 48638 61364 32905 55562 57230 3139 29051 54260 61029 9765 6169 10696 36337 38391 10455 31...
result:
ok answer found and it is correct
Test #61:
score: 0
Accepted
time: 5ms
memory: 3648kb
input:
250 229 57250 43728 31271 16181 14297 5054 13502 51736 490 33299 48297 40076 16659 33951 49504 51295 53135 18095 19881 38985 50161 40736 24225 47641 26365 34506 56683 53444 14296 52660 41854 43928 7374 32367 35022 42746 26549 36787 42032 15352 55790 50857 53903 252 23486 50730 5707 31377 34273 41459...
output:
Yes 16181 14297 5054 13502 51736 490 33299 48297 40076 16659 33951 49504 51295 53135 18095 19881 38985 50161 40736 24225 47641 26365 34506 56683 53444 14296 52660 41854 43928 7374 32367 35022 42746 26549 36787 42032 15352 55790 50857 53903 252 23486 50730 5707 31377 34273 41459 36373 44152 56682 239...
result:
ok answer found and it is correct
Test #62:
score: 0
Accepted
time: 11ms
memory: 3712kb
input:
245 250 61250 14269 38285 46008 23463 44781 3961 4615 8879 39635 6170 43524 33653 49266 38285 42976 4549 21202 48045 17626 57830 11710 29755 45758 28452 49625 6070 43030 58452 43794 50268 4973 15394 54841 9839 14269 0 9991 950 32464 54210 2643 37360 44214 26347 705 60302 42920 58903 56047 33896 3018...
output:
Yes 46008 23463 44781 3961 4615 8879 39635 6170 43524 33653 49266 38285 42976 4549 21202 48045 17626 57830 11710 29755 45758 28452 49625 6070 43030 58452 43794 50268 4973 15394 54841 9839 14269 14269 9991 950 32464 54210 2643 37360 44214 26347 705 60302 42920 58903 56047 33896 30181 41804 39828 1917...
result:
ok answer found and it is correct
Test #63:
score: 0
Accepted
time: 4ms
memory: 3632kb
input:
250 244 61000 29453 42212 26681 26410 11070 13806 5162 2481 52589 25804 3290 10692 3605 55816 22305 10326 34244 7871 39438 56737 6341 53988 39817 58981 23089 8106 10710 12085 9131 58573 33403 58666 6451 29362 40613 48545 35264 39223 55291 52349 6126 3396 43367 56330 4273 23682 60705 35407 33834 3342...
output:
No
result:
ok answer is No
Test #64:
score: 0
Accepted
time: 8ms
memory: 3648kb
input:
250 249 62250 11482 34503 46020 46179 38616 41058 15414 25139 21406 6248 10709 33173 40868 21920 49897 54006 58608 24273 30270 20653 19362 11057 17557 52462 5218 56344 28504 41225 55137 18792 2188 58220 8931 11252 27749 25257 4908 54152 48348 44629 20693 1253 27618 31879 9461 5071 57212 26316 51831 ...
output:
Yes 46020 46179 38616 41058 15414 25139 21406 6248 10709 33173 40868 21920 49897 54006 58608 24273 30270 20653 19362 11057 17557 52462 5218 56344 28504 41225 55137 18792 2188 58220 8931 11252 27749 25257 4908 54152 48348 44629 20693 1253 27618 31879 9461 5071 57212 26316 51831 13913 26958 55777 2876...
result:
ok answer found and it is correct
Test #65:
score: 0
Accepted
time: 10ms
memory: 3692kb
input:
226 250 56500 40804 27171 4344 22513 46457 24423 34241 41448 42390 43485 972 55663 14510 8776 43258 36668 43513 32000 7712 52129 36750 18905 44196 7347 49894 25092 41251 26540 2872 3466 24999 47416 49309 3814 32221 13322 48687 17865 23862 54941 39936 38118 41584 27171 23581 48818 49075 0 45651 23811...
output:
Yes 4344 22513 46457 24423 34241 41448 42390 43485 972 55663 14510 8776 43258 36668 43513 32000 7712 52129 36750 18905 44196 7347 49894 25092 41251 26540 2872 3466 24999 47416 49309 3814 32221 13322 48687 17865 23862 54941 39936 38118 41584 27171 23581 48818 49075 40804 45651 23811 15781 26376 17382...
result:
ok answer found and it is correct
Test #66:
score: 0
Accepted
time: 10ms
memory: 3628kb
input:
250 228 57000 38772 26627 19419 31594 21537 9958 12529 31511 9020 47062 19112 16574 9460 7588 12384 55717 53657 39160 55892 13414 23123 39037 8254 50784 16141 56724 31935 30636 39493 8737 46579 1937 25221 4083 37104 46888 12094 29544 55815 30577 36281 10403 9218 328 33205 17728 50085 36267 18785 543...
output:
Yes 19419 31594 21537 9958 12529 31511 9020 47062 19112 16574 9460 7588 12384 55717 53657 39160 55892 13414 23123 39037 8254 50784 16141 56724 31935 30636 39493 8737 46579 1937 25221 4083 37104 46888 12094 29544 55815 30577 36281 10403 9218 328 33205 17728 50085 36267 18785 54307 12437 9695 12137 25...
result:
ok answer found and it is correct
Test #67:
score: 0
Accepted
time: 6ms
memory: 3640kb
input:
238 250 59500 35013 9718 36029 51408 25821 32634 16456 28413 45336 56732 46427 25102 45060 46971 2052 31905 47351 32571 50407 56507 30504 10780 53636 45065 52600 4422 19445 39974 51142 1833 58638 23662 55492 39584 34018 36013 42538 4372 19639 53007 13153 42273 9129 41482 17310 42359 19322 49296 1433...
output:
No
result:
ok answer is No
Test #68:
score: 0
Accepted
time: 36ms
memory: 4436kb
input:
483 500 241500 115717 130015 106514 66434 169177 97944 195373 204263 175063 139287 5110 167311 109271 228470 166431 75144 102936 25277 102058 131496 99634 188769 204934 123830 102630 39348 12436 212656 16806 181115 49449 127748 32988 64009 138261 138102 48067 85536 213967 20643 73912 58401 56677 177...
output:
Yes 106514 66434 169177 97944 195373 204263 175063 139287 5110 167311 109271 228470 166431 75144 102936 25277 102058 131496 99634 188769 204934 123830 102630 39348 12436 212656 16806 181115 49449 127748 32988 64009 138261 138102 48067 85536 213967 20643 73912 58401 56677 177685 137817 87821 48745 87...
result:
ok answer found and it is correct
Test #69:
score: 0
Accepted
time: 41ms
memory: 4304kb
input:
500 470 235000 162060 118304 161601 179925 101179 140715 78378 30818 58147 119097 102637 73817 200153 123547 229276 120874 136739 93012 6442 103285 103263 159010 190154 88473 97786 145898 58060 227880 147725 123214 140204 0 197937 4496 143219 36901 42109 93536 191552 73235 143161 84273 27159 190388 ...
output:
Yes 161601 179925 101179 140715 78378 30818 58147 119097 102637 73817 200153 123547 229276 120874 136739 93012 6442 103285 103263 159010 190154 88473 97786 145898 58060 227880 147725 123214 140204 162060 197937 4496 143219 36901 42109 93536 191552 73235 143161 84273 27159 190388 43193 211951 121906 ...
result:
ok answer found and it is correct
Test #70:
score: 0
Accepted
time: 32ms
memory: 4268kb
input:
450 500 225000 74351 193811 30094 49787 166561 215058 171296 171681 178620 193983 140987 138703 139688 205122 44636 17347 57685 179911 83422 71699 126745 98163 207108 27496 61064 188105 63417 132831 162138 42685 218387 37843 39452 99227 82047 222374 39899 46826 62151 103479 54685 118780 11645 82787 ...
output:
Yes 30094 49787 166561 215058 171296 171681 178620 193983 140987 138703 139688 205122 44636 17347 57685 179911 83422 71699 126745 98163 207108 27496 61064 188105 63417 132831 162138 42685 218387 37843 39452 99227 82047 222374 39899 46826 62151 103479 54685 118780 11645 82787 164113 58152 154100 4861...
result:
ok answer found and it is correct
Test #71:
score: 0
Accepted
time: 34ms
memory: 4300kb
input:
500 465 232500 209933 104739 179490 120762 156704 31172 161961 124648 17102 77915 230282 42979 153308 75315 213030 33604 75010 62420 223419 122739 104071 231782 72755 122267 184012 29571 151747 153369 157678 219708 95230 130331 173763 36699 105152 14936 201246 190901 117588 163443 68676 101601 17908...
output:
Yes 179490 120762 156704 31172 161961 124648 17102 77915 230282 42979 153308 75315 213030 33604 75010 62420 223419 122739 104071 231782 72755 122267 184012 29571 151747 153369 157678 219708 95230 130331 173763 36699 105152 14936 201246 190901 117588 163443 68676 101601 179087 60222 168125 188452 178...
result:
ok answer found and it is correct
Test #72:
score: 0
Accepted
time: 30ms
memory: 4380kb
input:
500 467 233500 190800 23424 121491 152062 64214 72633 17311 135754 149851 60537 220056 174900 68085 196722 206499 50053 45650 16115 204767 118568 48350 217123 120842 140398 22263 194111 66405 210108 195044 129118 50709 93904 86477 184702 56720 114514 196631 152139 112423 0 116413 131309 188542 59532...
output:
Yes 121491 152062 64214 72633 17311 135754 149851 60537 220056 174900 68085 196722 206499 50053 45650 16115 204767 118568 48350 217123 120842 140398 22263 194111 66405 210108 195044 129118 50709 93904 86477 184702 56720 114514 196631 152139 112423 190800 116413 131309 188542 59532 104115 232747 1973...
result:
ok answer found and it is correct
Test #73:
score: 0
Accepted
time: 41ms
memory: 4368kb
input:
500 494 247000 75397 134697 98724 129891 118960 225097 52849 24095 124949 181132 77373 89213 182719 21443 171004 220021 113795 119027 154887 135541 67179 8688 149901 22501 97893 244905 218970 76204 189223 5192 95108 121557 136194 244617 4619 30391 118 81944 121107 216765 30592 227304 15324 52854 106...
output:
Yes 98724 129891 118960 225097 52849 24095 124949 181132 77373 89213 182719 21443 171004 220021 113795 119027 154887 135541 67179 8688 149901 22501 97893 244905 218970 76204 189223 5192 95108 121557 136194 244617 4619 30391 118 81944 121107 216765 30592 227304 15324 52854 106777 174633 43703 207894 ...
result:
ok answer found and it is correct
Test #74:
score: 0
Accepted
time: 29ms
memory: 4340kb
input:
469 500 234500 29317 176976 87811 110297 213308 220432 29317 55444 36724 114662 181814 36962 225614 80722 220764 218942 181029 29914 153064 30332 154866 152601 140200 138709 60703 211122 154822 109487 173428 61326 186548 34719 39604 116801 125623 38491 16665 76101 113233 118328 196080 115157 124555 ...
output:
Yes 87811 110297 213308 220432 29317 55444 36724 114662 181814 36962 225614 80722 220764 218942 181029 29914 153064 30332 154866 152601 140200 138709 60703 211122 154822 109487 173428 61326 186548 34719 39604 116801 125623 38491 16665 76101 113233 118328 196080 115157 124555 231080 187596 232371 970...
result:
ok answer found and it is correct
Test #75:
score: 0
Accepted
time: 28ms
memory: 4356kb
input:
497 500 248500 191801 28321 150281 63722 84904 204113 133690 36747 179121 105046 19065 232220 156000 87269 73262 104185 152972 173879 228245 92928 215681 86505 9420 56008 104469 32723 84527 186028 56228 212786 12400 157085 110109 6742 29932 156906 42412 129229 105652 6846 18250 43860 116087 35316 12...
output:
No
result:
ok answer is No
Test #76:
score: 0
Accepted
time: 33ms
memory: 4432kb
input:
500 497 248500 2236 60980 181319 66492 19829 12177 69225 165617 193138 126233 188393 109993 107156 125730 107661 224831 12708 239993 21068 157981 178507 39303 92586 248372 69287 15671 32670 36452 131987 186898 99838 91266 134336 52052 27989 3388 53264 68007 143417 163831 100068 20520 201294 198907 1...
output:
Yes 181319 66492 19829 12177 69225 165617 193138 126233 188393 109993 107156 125730 107661 224831 12708 239993 21068 157981 178507 39303 92586 248372 69287 15671 32670 36452 131987 186898 99838 91266 134336 52052 27989 3388 53264 68007 143417 163831 100068 20520 201294 198907 128934 133157 6801 1911...
result:
ok answer found and it is correct
Test #77:
score: 0
Accepted
time: 31ms
memory: 4352kb
input:
500 465 232500 92680 220971 67210 140116 24107 179954 155410 149251 169225 52632 28620 118143 179715 34329 100366 71731 213150 109696 178765 157359 130832 140625 139378 171177 205458 155634 18021 110071 142638 202145 193816 144645 227620 167402 22106 199721 174541 226950 223122 75249 37005 171684 22...
output:
Yes 67210 140116 24107 179954 155410 149251 169225 52632 28620 118143 179715 34329 100366 71731 213150 109696 178765 157359 130832 140625 139378 171177 205458 155634 18021 110071 142638 202145 193816 144645 227620 167402 22106 199721 174541 226950 223122 75249 37005 171684 228544 180623 74456 30084 ...
result:
ok answer found and it is correct
Test #78:
score: 0
Accepted
time: 20ms
memory: 4384kb
input:
488 500 244000 168671 161110 4903 104283 198852 148841 42116 38770 23120 16425 211191 133841 194824 174032 68714 144604 239434 199679 227823 152432 193076 133155 109009 79432 46392 120250 111293 104652 153735 29995 163063 64810 20843 83690 209166 140213 143232 223420 234207 124993 101810 171439 1123...
output:
No
result:
ok answer is No
Test #79:
score: 0
Accepted
time: 15ms
memory: 4328kb
input:
460 500 230000 66433 32050 30072 72120 6013 2340 206234 21229 102079 36220 12593 11905 101044 61288 203305 112458 117914 59551 177904 220813 19925 57769 188132 34290 91059 145509 183638 21858 50397 166291 103281 167919 69875 130440 27647 188195 81779 125889 25979 0 119042 171420 159550 138029 66113 ...
output:
No
result:
ok answer is No
Test #80:
score: 0
Accepted
time: 32ms
memory: 4340kb
input:
500 471 235500 205866 92477 158944 195551 70929 76300 175459 171438 47943 123160 96608 187890 35826 124572 207477 192803 42181 95382 118795 106827 140468 29616 200465 42056 111159 167480 95556 38503 192275 113017 103178 185756 4403 84406 153238 35168 208107 108186 223839 7380 48885 200029 107215 180...
output:
Yes 158944 195551 70929 76300 175459 171438 47943 123160 96608 187890 35826 124572 207477 192803 42181 95382 118795 106827 140468 29616 200465 42056 111159 167480 95556 38503 192275 113017 103178 185756 4403 84406 153238 35168 208107 108186 223839 7380 48885 200029 107215 180026 210400 4588 130698 1...
result:
ok answer found and it is correct
Test #81:
score: 0
Accepted
time: 36ms
memory: 4436kb
input:
500 480 240000 63453 104478 86640 169368 86696 149779 144389 19785 39241 180571 191590 232618 81228 46616 116693 39363 29427 67057 121985 78971 102283 48186 180540 125560 98616 77473 199105 16294 135064 32754 125577 62 204633 1910 96467 31602 235531 135311 28031 80048 61966 139420 189036 237482 8328...
output:
Yes 86640 169368 86696 149779 144389 19785 39241 180571 191590 232618 81228 46616 116693 39363 29427 67057 121985 78971 102283 48186 180540 125560 98616 77473 199105 16294 135064 32754 125577 62 204633 1910 96467 31602 235531 135311 28031 80048 61966 139420 189036 237482 83286 143975 5272 91366 6605...
result:
ok answer found and it is correct
Test #82:
score: 0
Accepted
time: 15ms
memory: 4304kb
input:
451 500 225500 197591 136241 7753 225458 206131 223395 48269 214165 146915 118430 130526 144755 14137 18020 183589 42783 82837 21535 148846 184225 48165 14229 37739 193488 164461 163028 104748 56650 79655 173199 192768 124552 97871 82277 52044 83413 3824 130073 100025 119404 27002 14281 152079 15886...
output:
No
result:
ok answer is No
Test #83:
score: 0
Accepted
time: 22ms
memory: 4456kb
input:
495 500 247500 69454 109065 228631 213859 160154 56876 236338 220382 168913 10552 53548 100663 55628 228865 214598 130483 202320 189561 222794 77398 202820 162724 24522 139129 164582 117460 123831 206369 125964 12049 84945 71750 147546 225487 173104 92273 49224 122036 7058 207547 104279 36908 89643 ...
output:
No
result:
ok answer is No
Test #84:
score: 0
Accepted
time: 73ms
memory: 5420kb
input:
675 750 506250 340440 425936 15669 411560 273562 309898 463073 39157 359890 185497 323768 53170 243823 237366 101948 378149 289852 188441 325669 115884 175794 464385 261159 148994 289013 321278 245580 179701 367151 317441 250971 272426 179153 397840 143208 191532 178296 368798 142423 250218 196196 3...
output:
Yes 15669 411560 273562 309898 463073 39157 359890 185497 323768 53170 243823 237366 101948 378149 289852 188441 325669 115884 175794 464385 261159 148994 289013 321278 245580 179701 367151 317441 250971 272426 179153 397840 143208 191532 178296 368798 142423 250218 196196 325371 170758 53077 405197...
result:
ok answer found and it is correct
Test #85:
score: 0
Accepted
time: 68ms
memory: 5620kb
input:
739 750 554250 431464 528047 461402 207833 329629 152707 300078 526631 511949 264904 230171 110977 315648 279777 68294 546636 104464 55652 141459 270197 188641 501479 26965 267835 334506 235897 428995 242014 51634 427830 375629 428194 236414 33816 441284 501211 361155 513298 163933 508435 126260 395...
output:
Yes 461402 207833 329629 152707 300078 526631 511949 264904 230171 110977 315648 279777 68294 546636 104464 55652 141459 270197 188641 501479 26965 267835 334506 235897 428995 242014 51634 427830 375629 428194 236414 33816 441284 501211 361155 513298 163933 508435 126260 39595 497043 527086 398414 5...
result:
ok answer found and it is correct
Test #86:
score: 0
Accepted
time: 70ms
memory: 5576kb
input:
750 736 552000 225078 203175 179544 111267 87780 488054 361090 98457 234668 234880 147056 7519 484551 432509 527607 372686 209518 334638 6541 232735 210131 78806 1929 184924 352364 65744 353364 431067 110530 92319 335091 192106 362230 544836 533945 218595 35477 476446 310630 240791 352260 222379 239...
output:
Yes 179544 111267 87780 488054 361090 98457 234668 234880 147056 7519 484551 432509 527607 372686 209518 334638 6541 232735 210131 78806 1929 184924 352364 65744 353364 431067 110530 92319 335091 192106 362230 544836 533945 218595 35477 476446 310630 240791 352260 222379 239809 256755 395026 429288 ...
result:
ok answer found and it is correct
Test #87:
score: 0
Accepted
time: 77ms
memory: 5440kb
input:
750 701 525750 435878 412157 333223 9842 213402 249633 520587 139594 287384 395111 131291 211654 8849 273653 450934 35949 523797 317761 167587 92826 377362 24273 29501 457684 495253 90690 179641 106039 472948 111525 254251 203631 467738 353115 489351 201126 360612 289756 83960 362082 317185 219754 1...
output:
Yes 333223 9842 213402 249633 520587 139594 287384 395111 131291 211654 8849 273653 450934 35949 523797 317761 167587 92826 377362 24273 29501 457684 495253 90690 179641 106039 472948 111525 254251 203631 467738 353115 489351 201126 360612 289756 83960 362082 317185 219754 191773 484705 218045 30836...
result:
ok answer found and it is correct
Test #88:
score: 0
Accepted
time: 70ms
memory: 5444kb
input:
750 683 512250 403117 422919 63269 334302 1178 360625 484513 331748 229108 355667 162167 57829 158581 166418 107722 259839 462382 225141 41252 348374 429530 483454 430036 455992 303658 119702 129639 189905 478671 455036 437865 38339 198405 328714 36066 411038 179787 116243 132654 323160 82473 487703...
output:
Yes 63269 334302 1178 360625 484513 331748 229108 355667 162167 57829 158581 166418 107722 259839 462382 225141 41252 348374 429530 483454 430036 455992 303658 119702 129639 189905 478671 455036 437865 38339 198405 328714 36066 411038 179787 116243 132654 323160 82473 487703 201383 148914 100760 333...
result:
ok answer found and it is correct
Test #89:
score: 0
Accepted
time: 59ms
memory: 5464kb
input:
691 750 518250 332852 109258 84569 437050 271124 460028 406721 377561 169010 361314 497575 343740 412913 332333 413396 341773 490438 301363 371124 281462 168244 132283 362614 197976 180957 302684 276206 106673 158815 244024 455829 53505 47058 276879 284186 328492 23911 158929 234197 412855 263480 47...
output:
Yes 84569 437050 271124 460028 406721 377561 169010 361314 497575 343740 412913 332333 413396 341773 490438 301363 371124 281462 168244 132283 362614 197976 180957 302684 276206 106673 158815 244024 455829 53505 47058 276879 284186 328492 23911 158929 234197 412855 263480 477215 274020 443479 248009...
result:
ok answer found and it is correct
Test #90:
score: 0
Accepted
time: 33ms
memory: 5468kb
input:
750 694 520500 276362 339663 97626 236882 342229 262193 405738 63927 7428 435664 347440 360293 387980 251462 362314 204655 231296 17568 232879 141315 171502 85981 20088 374502 166757 185281 509208 486175 6590 207473 232696 228799 149526 449343 351565 357729 177223 218051 196859 325661 365494 469569 ...
output:
No
result:
ok answer is No
Test #91:
score: 0
Accepted
time: 69ms
memory: 5516kb
input:
712 750 534000 20853 74390 520815 145722 382573 522012 373869 102899 435103 388204 527402 158309 432955 210488 136070 319597 522872 335359 524382 428278 11659 7298 170731 517651 449133 253180 294254 443343 291945 401892 375757 230795 319654 105843 223050 82130 145034 447950 173396 92261 377194 50704...
output:
Yes 520815 145722 382573 522012 373869 102899 435103 388204 527402 158309 432955 210488 136070 319597 522872 335359 524382 428278 11659 7298 170731 517651 449133 253180 294254 443343 291945 401892 375757 230795 319654 105843 223050 82130 145034 447950 173396 92261 377194 507044 519493 477650 427403 ...
result:
ok answer found and it is correct
Test #92:
score: 0
Accepted
time: 63ms
memory: 5500kb
input:
750 702 526500 447021 23333 40616 296098 454892 145307 326487 345814 257053 278662 340584 94804 439555 243259 363991 276963 286342 339834 495483 237771 413640 321680 204241 12284 357100 66952 299607 508349 269825 518990 344601 481088 65341 205068 343404 520001 153923 455366 243284 7743 219955 448758...
output:
Yes 40616 296098 454892 145307 326487 345814 257053 278662 340584 94804 439555 243259 363991 276963 286342 339834 495483 237771 413640 321680 204241 12284 357100 66952 299607 508349 269825 518990 344601 481088 65341 205068 343404 520001 153923 455366 243284 7743 219955 448758 476261 387104 287720 50...
result:
ok answer found and it is correct
Test #93:
score: 0
Accepted
time: 41ms
memory: 5616kb
input:
734 750 550500 424197 462850 177295 304477 491744 199731 168287 152480 75217 183122 23720 13477 64772 93996 273618 436381 46980 242563 339680 322232 166559 27104 179115 50460 285092 108416 202082 2183 86180 4028 294242 221833 17813 427820 215033 386303 519474 405074 161934 404891 371855 58081 498493...
output:
No
result:
ok answer is No
Test #94:
score: 0
Accepted
time: 78ms
memory: 5612kb
input:
750 719 539250 240914 323330 433736 162868 257933 384038 239756 14329 82764 443854 318931 456963 61941 320938 295092 219577 113242 473987 305398 391068 473702 186333 427147 455027 525003 163951 127974 306526 60345 427597 54954 450118 354955 528176 495730 344460 449099 151438 201604 21339 123363 4444...
output:
Yes 433736 162868 257933 384038 239756 14329 82764 443854 318931 456963 61941 320938 295092 219577 113242 473987 305398 391068 473702 186333 427147 455027 525003 163951 127974 306526 60345 427597 54954 450118 354955 528176 495730 344460 449099 151438 201604 21339 123363 444495 206645 536029 8351 516...
result:
ok answer found and it is correct
Test #95:
score: 0
Accepted
time: 39ms
memory: 5628kb
input:
739 750 554250 128831 202675 24573 398562 279107 348628 219538 19432 36948 472188 248791 105101 338597 496320 243510 277622 212636 408456 238025 266108 283161 25760 476655 93140 18414 449285 336316 508661 15547 62874 190969 439737 264779 21516 352323 463144 25270 336696 180076 542395 294780 425171 3...
output:
No
result:
ok answer is No
Test #96:
score: 0
Accepted
time: 45ms
memory: 5660kb
input:
732 750 549000 393083 329595 209471 498069 270784 508822 84499 446333 317219 328935 221578 139225 276842 505844 141573 511243 108016 335883 223154 380192 353670 439163 66319 504252 176817 284713 213505 75068 535423 222172 170414 3407 279036 536596 204925 213049 317556 337758 389505 54986 168901 3631...
output:
No
result:
ok answer is No
Test #97:
score: 0
Accepted
time: 61ms
memory: 5544kb
input:
750 692 519000 432706 45152 445059 84378 202452 73734 192757 85240 48410 170462 261531 305575 337708 196193 418565 64480 220437 367542 376760 420587 111176 292426 379954 45985 281472 370303 360598 408732 361805 173784 188213 373675 446224 169617 313185 401667 104118 208246 375841 41056 490331 258140...
output:
Yes 445059 84378 202452 73734 192757 85240 48410 170462 261531 305575 337708 196193 418565 64480 220437 367542 376760 420587 111176 292426 379954 45985 281472 370303 360598 408732 361805 173784 188213 373675 446224 169617 313185 401667 104118 208246 375841 41056 490331 258140 310752 439195 358786 31...
result:
ok answer found and it is correct
Test #98:
score: 0
Accepted
time: 39ms
memory: 5568kb
input:
690 750 517500 74555 472379 174762 8621 63214 494010 133373 181025 138164 499540 127113 14432 23320 16043 420008 378234 203661 470595 47369 62525 187392 485401 320009 188810 469668 363747 380207 471437 496798 192852 424426 324780 92751 300875 223797 499759 110440 497116 147761 387240 437328 242857 3...
output:
No
result:
ok answer is No
Test #99:
score: 0
Accepted
time: 41ms
memory: 5640kb
input:
730 750 547500 263959 447581 36076 135550 319672 27572 249826 505566 135460 170792 367037 369792 368391 502764 282444 144135 309746 310306 372651 165408 43742 542578 398150 26961 89516 157192 284927 70742 364761 387419 150661 261773 92809 303191 299133 388720 381086 183145 402544 466951 86015 364509...
output:
No
result:
ok answer is No
Test #100:
score: 0
Accepted
time: 139ms
memory: 7220kb
input:
1000 970 970000 839658 782915 141960 346448 393141 108168 932776 426320 336397 185084 256793 833702 101001 634796 666604 669799 392987 726839 579656 263690 821639 280124 465196 929338 777291 187356 658171 908849 758383 739308 56324 708050 217737 20950 807604 717909 147039 102388 2227 536332 623270 1...
output:
Yes 141960 346448 393141 108168 932776 426320 336397 185084 256793 833702 101001 634796 666604 669799 392987 726839 579656 263690 821639 280124 465196 929338 777291 187356 658171 908849 758383 739308 56324 708050 217737 20950 807604 717909 147039 102388 2227 536332 623270 152239 291860 167131 809238...
result:
ok answer found and it is correct
Test #101:
score: 0
Accepted
time: 115ms
memory: 7140kb
input:
1000 938 938000 687112 187690 442168 206912 160568 287066 471707 767637 659428 865549 135687 103935 696847 698004 287264 841612 668303 378578 327524 618666 595470 400152 244777 903426 653849 683982 661515 905220 594376 360952 293872 304000 703760 655750 687856 706422 627797 836439 55908 426391 33541...
output:
Yes 442168 206912 160568 287066 471707 767637 659428 865549 135687 103935 696847 698004 287264 841612 668303 378578 327524 618666 595470 400152 244777 903426 653849 683982 661515 905220 594376 360952 293872 304000 703760 655750 687856 706422 627797 836439 55908 426391 335413 501410 573348 559524 296...
result:
ok answer found and it is correct
Test #102:
score: 0
Accepted
time: 134ms
memory: 7248kb
input:
1000 952 952000 162466 879026 582933 300507 561527 291230 612367 873809 165655 560515 687641 582097 529258 900851 155944 143571 219658 657314 361617 186165 830332 826080 838822 39681 503584 76311 937754 360085 160466 522245 768744 889133 899464 936932 35947 673131 567850 786996 606482 458514 634014 ...
output:
Yes 582933 300507 561527 291230 612367 873809 165655 560515 687641 582097 529258 900851 155944 143571 219658 657314 361617 186165 830332 826080 838822 39681 503584 76311 937754 360085 160466 522245 768744 889133 899464 936932 35947 673131 567850 786996 606482 458514 634014 484160 188341 829614 48782...
result:
ok answer found and it is correct
Test #103:
score: 0
Accepted
time: 141ms
memory: 7380kb
input:
987 1000 987000 136599 801485 823401 865815 732917 721249 972843 80679 672688 19219 40340 551885 558699 595425 923933 646693 927629 19264 40150 674363 616469 593822 446728 299859 153066 982040 496768 818336 437941 79504 579052 400016 447352 480871 274256 618411 927272 595056 230294 863519 940051 670...
output:
Yes 823401 865815 732917 721249 972843 80679 672688 19219 40340 551885 558699 595425 923933 646693 927629 19264 40150 674363 616469 593822 446728 299859 153066 982040 496768 818336 437941 79504 579052 400016 447352 480871 274256 618411 927272 595056 230294 863519 940051 670799 601911 891968 142004 8...
result:
ok answer found and it is correct
Test #104:
score: 0
Accepted
time: 120ms
memory: 7384kb
input:
987 1000 987000 981485 347131 641165 888982 905558 378382 709637 306763 941201 57130 789018 736436 186542 861211 375707 676065 309094 7465 48559 834086 296788 505700 714782 849925 460984 9460 697245 617447 186964 685128 591354 650870 177305 604677 540313 384206 547773 188860 480074 585285 73032 1088...
output:
Yes 641165 888982 905558 378382 709637 306763 941201 57130 789018 736436 186542 861211 375707 676065 309094 7465 48559 834086 296788 505700 714782 849925 460984 9460 697245 617447 186964 685128 591354 650870 177305 604677 540313 384206 547773 188860 480074 585285 73032 108887 838442 227301 213273 59...
result:
ok answer found and it is correct
Test #105:
score: 0
Accepted
time: 121ms
memory: 7064kb
input:
928 1000 928000 621900 455406 140203 87018 612029 83887 635381 196863 603024 295772 540418 273047 562263 76472 394054 852218 669994 186807 598927 209071 605855 214446 626798 565059 409236 368725 542000 856268 413730 345556 724094 369773 612156 7579 38144 695154 792788 850156 599389 574549 421528 716...
output:
Yes 140203 87018 612029 83887 635381 196863 603024 295772 540418 273047 562263 76472 394054 852218 669994 186807 598927 209071 605855 214446 626798 565059 409236 368725 542000 856268 413730 345556 724094 369773 612156 7579 38144 695154 792788 850156 599389 574549 421528 716502 419114 668801 789730 7...
result:
ok answer found and it is correct
Test #106:
score: 0
Accepted
time: 111ms
memory: 6984kb
input:
1000 914 914000 293963 712190 89889 215319 867071 829454 466960 821217 737186 763913 317668 361365 64577 237120 220510 589793 782836 653687 544950 152365 455939 216445 421603 278314 725558 600379 534404 133406 836399 98122 351983 858488 152158 861497 54462 827138 230697 802557 60748 852296 893588 15...
output:
Yes 89889 215319 867071 829454 466960 821217 737186 763913 317668 361365 64577 237120 220510 589793 782836 653687 544950 152365 455939 216445 421603 278314 725558 600379 534404 133406 836399 98122 351983 858488 152158 861497 54462 827138 230697 802557 60748 852296 893588 154476 342908 648936 300666 ...
result:
ok answer found and it is correct
Test #107:
score: 0
Accepted
time: 157ms
memory: 7052kb
input:
1000 925 925000 164089 248096 190796 159073 381211 182338 134482 165707 44843 883865 363540 376304 78998 370607 318686 880126 423175 789250 275873 501528 275965 630659 615534 768517 150091 353727 514691 788931 798274 278635 853797 672869 695682 782835 512764 781954 670824 96736 84486 924440 559738 9...
output:
Yes 190796 159073 381211 182338 134482 165707 44843 883865 363540 376304 78998 370607 318686 880126 423175 789250 275873 501528 275965 630659 615534 768517 150091 353727 514691 788931 798274 278635 853797 672869 695682 782835 512764 781954 670824 96736 84486 924440 559738 921815 357395 338871 696366...
result:
ok answer found and it is correct
Test #108:
score: 0
Accepted
time: 126ms
memory: 7008kb
input:
908 1000 908000 77289 844388 743754 622949 411590 84129 23629 806614 867674 321141 506927 721888 117967 399377 633859 871009 494473 517756 642006 527806 345573 746992 593347 558705 358406 41803 255332 725331 465818 821398 90432 218101 512881 565960 582419 430296 356505 478348 29558 595464 125070 593...
output:
Yes 743754 622949 411590 84129 23629 806614 867674 321141 506927 721888 117967 399377 633859 871009 494473 517756 642006 527806 345573 746992 593347 558705 358406 41803 255332 725331 465818 821398 90432 218101 512881 565960 582419 430296 356505 478348 29558 595464 125070 593242 11242 883277 121817 5...
result:
ok answer found and it is correct
Test #109:
score: 0
Accepted
time: 134ms
memory: 7400kb
input:
984 1000 984000 449624 793175 411418 226483 790007 910898 477673 276158 626792 310851 252279 582612 678571 247338 739130 698326 415447 898926 507111 683774 75211 773870 483588 913895 678967 801995 694243 132485 678511 111983 790354 130876 544945 860628 871418 260456 453081 712186 705048 431287 12095...
output:
Yes 411418 226483 790007 910898 477673 276158 626792 310851 252279 582612 678571 247338 739130 698326 415447 898926 507111 683774 75211 773870 483588 913895 678967 801995 694243 132485 678511 111983 790354 130876 544945 860628 871418 260456 453081 712186 705048 431287 120954 175907 195397 479662 765...
result:
ok answer found and it is correct
Test #110:
score: 0
Accepted
time: 67ms
memory: 7204kb
input:
947 1000 947000 641901 532987 801270 607142 468599 824146 285104 846903 563568 20796 315758 711318 606884 826156 656368 11781 688697 728916 274738 706105 101917 697931 438127 538092 605030 94942 299375 18166 215163 285738 382776 519528 134194 673388 527158 167759 77750 866094 322691 32357 127462 884...
output:
No
result:
ok answer is No
Test #111:
score: 0
Accepted
time: 112ms
memory: 7108kb
input:
1000 927 927000 114724 564359 501481 863403 873847 459340 501673 305466 88078 808216 533411 617108 878011 628885 173575 102956 326491 785914 329847 282113 3281 169444 528269 527885 83593 757608 367047 837556 352620 559686 505500 704125 460967 752 227896 439543 310855 839614 307446 699598 305706 2601...
output:
Yes 501481 863403 873847 459340 501673 305466 88078 808216 533411 617108 878011 628885 173575 102956 326491 785914 329847 282113 3281 169444 528269 527885 83593 757608 367047 837556 352620 559686 505500 704125 460967 752 227896 439543 310855 839614 307446 699598 305706 260151 498801 752519 360223 82...
result:
ok answer found and it is correct
Test #112:
score: 0
Accepted
time: 133ms
memory: 7212kb
input:
1000 950 950000 169691 570696 543027 276464 387727 236864 795262 54523 947567 495257 924100 573130 568214 704302 43147 493648 713033 863351 656975 602260 781650 413600 104531 670126 677734 254167 178141 257474 278525 695679 383306 886564 102473 839776 251032 463928 185605 22762 853664 168962 859103 ...
output:
Yes 543027 276464 387727 236864 795262 54523 947567 495257 924100 573130 568214 704302 43147 493648 713033 863351 656975 602260 781650 413600 104531 670126 677734 254167 178141 257474 278525 695679 383306 886564 102473 839776 251032 463928 185605 22762 853664 168962 859103 652539 398098 732651 47052...
result:
ok answer found and it is correct
Test #113:
score: 0
Accepted
time: 62ms
memory: 7296kb
input:
964 1000 964000 119185 602163 431985 677792 373737 325168 465457 823656 83662 345624 780046 536247 817259 674178 510786 569456 913865 584720 129455 834775 374292 692868 302753 437569 725038 888583 327670 80234 379334 698060 666959 181193 395041 354604 134249 351974 856669 79608 307373 697725 68577 3...
output:
No
result:
ok answer is No
Test #114:
score: 0
Accepted
time: 79ms
memory: 7116kb
input:
915 1000 915000 187573 764947 258585 489279 609690 503665 127897 321830 883041 582932 478238 740869 20136 519463 79474 454536 566436 434938 580276 127572 214305 399504 410959 654972 48240 908175 412166 112022 407356 816672 256084 12882 29314 735424 335686 855989 539569 906480 313026 572229 818242 27...
output:
No
result:
ok answer is No
Test #115:
score: 0
Accepted
time: 73ms
memory: 7220kb
input:
947 1000 947000 241235 18464 610513 217599 317211 515325 150749 205441 848737 358835 941304 63297 496014 211941 767058 443628 826601 509528 740840 213820 927200 16098 708592 379173 468850 718154 601096 546295 170947 302901 214371 943067 510868 326561 246869 54301 842306 81617 810946 569873 620922 86...
output:
No
result:
ok answer is No
Test #116:
score: 0
Accepted
time: 492ms
memory: 11112kb
input:
1000 1000 1000000 42 24 0 24 3 24 5 24 7 24 9 24 11 24 13 24 15 24 17 24 19 24 21 24 23 24 25 24 27 24 29 24 31 24 33 24 35 24 37 24 39 24 41 24 43 24 45 24 47 24 49 24 51 24 53 24 55 24 57 24 59 24 61 24 63 24 65 24 67 24 69 24 71 24 73 24 75 24 77 24 79 24 81 24 83 24 85 24 87 24 89 24 91 24 93 24...
output:
Yes 42 24 3 24 5 24 7 24 9 24 11 24 13 24 15 24 17 24 19 24 21 24 23 24 25 24 27 24 29 24 31 24 33 24 35 24 37 24 39 24 41 24 43 24 45 24 47 24 49 24 51 24 53 24 55 24 57 24 59 24 61 24 63 24 65 24 67 24 69 24 71 24 73 24 75 24 77 24 79 24 81 24 83 24 85 24 87 24 89 24 91 24 93 24 95 24 97 24 99 24 ...
result:
ok answer found and it is correct