QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#244680 | #7208. Graph Drawing | ucup-team004 | AC ✓ | 30ms | 4000kb | C++20 | 4.7kb | 2023-11-09 14:23:39 | 2023-11-09 14:23:40 |
Judging History
answer
#include <bits/stdc++.h>
using i64 = long long;
template<class T>
struct MinCostFlow {
struct _Edge {
int to;
T cap;
T cost;
_Edge(int to_, T cap_, T cost_) : to(to_), cap(cap_), cost(cost_) {}
};
int n;
std::vector<_Edge> e;
std::vector<std::vector<int>> g;
std::vector<T> h, dis;
std::vector<int> pre;
bool dijkstra(int s, int t) {
dis.assign(n, std::numeric_limits<T>::max());
pre.assign(n, -1);
std::priority_queue<std::pair<T, int>, std::vector<std::pair<T, int>>, std::greater<std::pair<T, int>>> que;
dis[s] = 0;
que.emplace(0, s);
while (!que.empty()) {
T d = que.top().first;
int u = que.top().second;
que.pop();
if (dis[u] != d) {
continue;
}
for (int i : g[u]) {
int v = e[i].to;
T cap = e[i].cap;
T cost = e[i].cost;
if (cap > 0 && dis[v] > d + h[u] - h[v] + cost) {
dis[v] = d + h[u] - h[v] + cost;
pre[v] = i;
que.emplace(dis[v], v);
}
}
}
return dis[t] != std::numeric_limits<T>::max();
}
MinCostFlow() {}
MinCostFlow(int n_) {
init(n_);
}
void init(int n_) {
n = n_;
e.clear();
g.assign(n, {});
}
void addEdge(int u, int v, T cap, T cost) {
g[u].push_back(e.size());
e.emplace_back(v, cap, cost);
g[v].push_back(e.size());
e.emplace_back(u, 0, -cost);
}
std::pair<T, T> flow(int s, int t) {
T flow = 0;
T cost = 0;
h.assign(n, 0);
while (dijkstra(s, t)) {
for (int i = 0; i < n; ++i) {
h[i] += dis[i];
}
T aug = std::numeric_limits<int>::max();
for (int i = t; i != s; i = e[pre[i] ^ 1].to) {
aug = std::min(aug, e[pre[i]].cap);
}
for (int i = t; i != s; i = e[pre[i] ^ 1].to) {
e[pre[i]].cap -= aug;
e[pre[i] ^ 1].cap += aug;
}
flow += aug;
cost += aug * h[t];
}
return std::make_pair(flow, cost);
}
struct Edge {
int from;
int to;
T cap;
T cost;
T flow;
};
std::vector<Edge> edges() {
std::vector<Edge> a;
for (int i = 0; i < e.size(); i += 2) {
Edge x;
x.from = e[i + 1].to;
x.to = e[i].to;
x.cap = e[i].cap + e[i + 1].cap;
x.cost = e[i].cost;
x.flow = e[i + 1].cap;
a.push_back(x);
}
return a;
}
};
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n, m;
std::cin >> n >> m;
std::map<std::pair<int, int>, std::vector<int>> e2f;
std::vector<std::vector<int>> v2f(n);
std::vector<int> deg(n);
for (int i = 0; i < m; i++) {
int k;
std::cin >> k;
std::vector<int> a(k);
for (int j = 0; j < k; j++) {
std::cin >> a[j];
a[j]--;
}
for (int j = 0; j < k; j++) {
e2f[std::minmax(a[j], a[(j + 1) % k])].push_back(i);
v2f[a[j]].push_back(i);
}
}
for (auto [e, fs] : e2f) {
auto [u, v] = e;
deg[u] += 1;
deg[v] += 1;
}
MinCostFlow<int> g(n + m + 3);
int S = n + m + 1, T = S + 1;
for (int v = 0; v < n; v++) {
if (deg[v] > v2f[v].size()) {
v2f[v].push_back(m);
}
}
constexpr int inf = 1E9;
for (int v = 0; v < n; v++) {
if (deg[v] == 2) {
g.addEdge(n + v2f[v][0], n + v2f[v][1], 1, 0);
g.addEdge(n + v2f[v][1], n + v2f[v][0], 1, 0);
} else if (deg[v] == 3) {
g.addEdge(S, v, 2, 0);
for (auto f : v2f[v]) {
g.addEdge(v, n + f, 1, 0);
}
} else {
g.addEdge(S, v, 4, 0);
for (auto f : v2f[v]) {
g.addEdge(v, n + f, 1, 0);
}
}
}
for (auto [e, fs] : e2f) {
if (fs.size() == 1) {
fs.push_back(m);
}
g.addEdge(n + fs[0], n + fs[1], inf, 1);
g.addEdge(n + fs[1], n + fs[0], inf, 1);
}
g.addEdge(T, S, inf, 0);
for (int f = 0; f < m; f++) {
g.addEdge(n + f, T, 4, 0);
}
g.addEdge(S, n + m, 4, 0);
int ans = g.flow(S, T).second;
std::cout << ans << "\n";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3536kb
input:
4 2 3 1 2 3 3 4 3 2
output:
2
result:
ok 1 number(s): "2"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
5 1 5 1 2 3 4 5
output:
0
result:
ok 1 number(s): "0"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
3 1 3 1 2 3
output:
1
result:
ok 1 number(s): "1"
Test #4:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
10 6 3 2 7 6 3 3 4 9 4 6 3 8 2 7 4 3 6 7 8 5 1 3 1 5 10 3 7 2 8
output:
6
result:
ok 1 number(s): "6"
Test #5:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
10 4 6 7 9 5 2 1 3 7 9 7 1 6 10 4 5 3 7 3 1 5 4 10 8 2 5
output:
4
result:
ok 1 number(s): "4"
Test #6:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
10 3 5 3 6 9 8 2 8 8 9 6 5 4 10 1 2 6 3 2 7 4 5 6
output:
2
result:
ok 1 number(s): "2"
Test #7:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
10 5 4 5 4 8 9 4 9 8 4 3 4 10 7 5 9 6 6 10 9 3 1 2 4 5 7 3 4
output:
4
result:
ok 1 number(s): "4"
Test #8:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
10 4 5 7 6 3 1 9 6 5 9 1 8 2 10 4 2 8 4 6 5 3 6 4 8 1
output:
2
result:
ok 1 number(s): "2"
Test #9:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
10 5 7 10 6 5 2 8 3 7 4 1 10 7 3 5 5 6 8 2 4 5 9 10 1 3 8 4 6 10 9 8
output:
6
result:
ok 1 number(s): "6"
Test #10:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
10 5 5 1 10 7 4 6 3 9 5 6 3 3 2 1 4 1 2 8 10 9 5 4 7 10 8 2 3 1 6
output:
5
result:
ok 1 number(s): "5"
Test #11:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
10 4 4 9 10 5 7 5 8 6 9 7 3 6 1 4 8 3 7 5 4 5 10 2 1
output:
1
result:
ok 1 number(s): "1"
Test #12:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
10 6 5 1 4 3 10 2 3 9 8 6 4 10 6 8 2 3 2 7 1 5 5 6 10 8 9 3 5 9 6
output:
7
result:
ok 1 number(s): "7"
Test #13:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
10 3 9 10 9 5 8 3 4 7 6 2 5 7 9 10 2 6 4 7 4 1 9
output:
1
result:
ok 1 number(s): "1"
Test #14:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
10 4 4 9 2 6 7 4 3 10 1 6 6 3 6 2 8 5 4 6 3 4 7 6 1 10
output:
2
result:
ok 1 number(s): "2"
Test #15:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
10 4 3 3 2 10 5 2 9 4 8 10 5 8 4 9 7 5 6 1 2 3 10 8 6
output:
3
result:
ok 1 number(s): "3"
Test #16:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
10 4 6 1 9 4 8 3 5 5 10 7 4 5 3 5 3 6 2 7 10 6 3 8 4 7 2 6
output:
4
result:
ok 1 number(s): "4"
Test #17:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
10 5 5 4 8 3 5 6 4 9 5 10 1 4 6 5 9 10 7 7 6 10 5 3 8 2 5 4 6 7 2 8
output:
8
result:
ok 1 number(s): "8"
Test #18:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
10 4 3 7 2 9 5 3 7 9 10 5 6 6 2 7 3 8 1 7 5 10 9 2 6 4 3
output:
3
result:
ok 1 number(s): "3"
Test #19:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
10 6 3 6 2 10 5 5 7 4 8 3 3 9 1 8 3 2 5 10 6 10 4 7 5 2 6 6 5 3 8 1 4 10
output:
9
result:
ok 1 number(s): "9"
Test #20:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
10 4 5 1 5 10 3 9 7 9 3 10 5 1 6 8 4 6 1 7 4 4 7 2 6 4
output:
4
result:
ok 1 number(s): "4"
Test #21:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
10 4 8 5 7 8 1 10 9 2 6 3 3 4 10 5 6 1 8 7 5 6 4 1 6 2 9 10
output:
5
result:
ok 1 number(s): "5"
Test #22:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
10 6 3 1 8 4 5 2 3 10 9 7 5 10 3 5 2 6 5 10 6 4 7 9 5 1 4 6 2 7 3 3 2 5
output:
8
result:
ok 1 number(s): "8"
Test #23:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
10 3 5 8 3 2 10 9 5 9 1 4 6 8 7 1 9 7 5 8 6 4
output:
2
result:
ok 1 number(s): "2"
Test #24:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
20 4 6 2 11 10 9 4 8 5 11 2 8 9 10 8 6 18 15 1 9 8 20 16 10 7 19 1 15 3 14 5 17 12 13
output:
3
result:
ok 1 number(s): "3"
Test #25:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
20 5 7 8 15 1 9 17 13 5 14 5 13 10 18 2 4 11 16 7 19 9 1 15 8 6 4 2 18 10 6 12 7 10 14 3 20 16 11 6 10 9 19 7 16 20 3 14 10 13 17
output:
3
result:
ok 1 number(s): "3"
Test #26:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
20 6 7 5 9 4 18 8 1 19 6 9 5 15 16 10 12 13 11 6 3 13 20 5 19 4 9 17 12 14 7 12 14 12 10 16 15 5 20 13 3 6 11 7 3 9 12 17 4 18 4 19 2
output:
7
result:
ok 1 number(s): "7"
Test #27:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
20 7 4 17 7 13 3 3 16 17 3 8 14 4 10 6 11 12 5 1 6 16 14 6 8 9 20 10 16 20 9 18 15 19 3 13 7 17 6 1 5 12 11 6 14 5 15 18 9 2 19
output:
5
result:
ok 1 number(s): "5"
Test #28:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
20 5 4 13 20 17 14 7 6 7 10 4 11 13 14 9 2 12 5 3 9 16 15 18 1 10 10 7 19 1 8 2 20 13 11 4 10 5 12 2 8 1 18 15 16 9 3
output:
3
result:
ok 1 number(s): "3"
Test #29:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
20 5 10 7 17 11 1 9 10 12 18 19 3 10 1 5 2 14 4 6 15 8 10 9 3 13 4 16 13 7 3 19 18 20 16 4 14 2 5 1 11 17 5 18 12 10 16 20
output:
3
result:
ok 1 number(s): "3"
Test #30:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
20 6 4 7 6 9 3 6 18 13 10 5 2 12 10 16 8 11 17 19 15 13 18 12 2 12 1 7 3 14 6 4 11 8 16 2 5 10 10 7 1 10 13 15 19 17 11 4 6 3 9 20 3
output:
4
result:
ok 1 number(s): "4"
Test #31:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
20 5 10 3 2 12 15 17 13 1 18 14 6 8 12 20 4 10 16 18 8 15 6 8 18 1 13 17 15 7 4 20 11 14 18 16 10 9 5 6 14 11 20 12 19 7 9
output:
0
result:
ok 1 number(s): "0"
Test #32:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
20 5 5 15 20 6 19 3 3 13 17 7 7 16 3 19 1 4 14 12 12 1 19 6 8 18 9 2 13 11 5 14 4 10 16 12 14 5 11 13 7 10 15 3
output:
1
result:
ok 1 number(s): "1"
Test #33:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
20 7 6 3 8 17 6 18 11 4 10 5 9 3 6 1 11 20 15 19 7 8 4 13 12 9 1 7 19 14 6 3 11 1 9 5 10 7 12 13 4 14 19 16 2 11 9 12 2 16 19 15 18 6 17 8 3
output:
6
result:
ok 1 number(s): "6"
Test #34:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
20 4 9 15 14 4 20 9 7 10 16 13 9 4 14 15 5 12 8 11 17 18 8 1 2 19 13 16 10 3 6 10 10 7 9 20 4 18 17 11 6 3
output:
0
result:
ok 1 number(s): "0"
Test #35:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
20 3 6 10 3 18 7 9 13 11 5 1 15 6 2 20 16 12 8 9 17 12 18 3 10 13 9 8 12 16 11 19 4 14
output:
0
result:
ok 1 number(s): "0"
Test #36:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
20 6 3 1 14 16 6 14 3 13 15 19 16 8 9 11 2 18 17 7 10 12 9 10 7 5 8 6 20 13 3 12 9 5 7 4 19 15 13 20 6 8 5 16 12 3 14 1
output:
4
result:
ok 1 number(s): "4"
Test #37:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
20 4 5 15 3 9 1 19 7 10 19 1 9 8 18 12 7 10 6 4 13 5 14 19 16 18 16 11 7 2 20 17 15 19 14 5 13 4 6 10 12
output:
0
result:
ok 1 number(s): "0"
Test #38:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
20 5 7 16 20 6 8 3 11 9 11 3 5 1 13 12 15 18 2 16 17 11 8 7 10 4 9 11 17 19 14 10 5 3 8 6 20 18 15 12 13 1 4 20 16 2 18
output:
3
result:
ok 1 number(s): "3"
Test #39:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
20 4 12 6 13 9 15 10 3 14 8 19 2 18 4 6 2 19 12 5 4 18 9 11 1 17 12 19 8 7 20 16 6 17 1 6 4 5 12
output:
0
result:
ok 1 number(s): "0"
Test #40:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
20 5 7 10 19 20 5 6 9 1 6 12 13 14 18 8 3 12 15 4 5 20 19 10 3 8 9 6 2 7 6 5 4 15 7 2 6 11 8 18 14 13 12 3 10 16 17 11 9
output:
2
result:
ok 1 number(s): "2"
Test #41:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
20 6 3 6 4 15 6 10 1 20 14 9 18 11 14 16 11 4 6 15 2 1 10 18 9 14 2 15 4 11 16 17 13 7 8 12 3 14 20 1 5 5 8 19 7 13 3 19 8 7
output:
4
result:
ok 1 number(s): "4"
Test #42:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
20 8 8 10 1 2 19 18 16 8 3 8 9 17 14 20 11 7 4 3 5 17 8 13 19 2 5 1 4 12 6 2 9 12 4 7 11 20 14 17 2 6 4 4 1 10 3 4 3 8 17 9 7 16 18 19 15 5 13 8
output:
7
result:
ok 1 number(s): "7"
Test #43:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
20 7 5 18 11 7 8 12 8 5 10 15 19 14 11 1 2 4 20 9 13 3 7 10 5 2 1 9 20 15 8 4 17 8 7 11 14 19 6 10 1 11 18 12 8 17 4 6 19 9 6 13 9 19 15 16 3
output:
6
result:
ok 1 number(s): "6"
Test #44:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
50 10 17 37 7 11 30 41 25 44 48 24 46 12 17 5 23 21 13 38 10 40 2 14 18 16 27 42 36 49 22 19 12 46 24 48 44 39 20 34 31 3 28 35 8 6 43 21 23 5 17 9 31 34 20 39 15 50 26 28 3 13 42 32 50 38 13 21 33 47 9 19 22 49 36 7 47 10 29 1 14 2 9 5 19 9 2 40 22 12 33 4 42 27 16 18 14 1 29 10 45 47 12 28 26 50 3...
output:
1
result:
ok 1 number(s): "1"
Test #45:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
50 11 7 4 3 35 29 5 25 24 16 25 5 48 17 26 12 18 22 2 15 9 47 39 8 19 24 14 17 45 49 28 33 42 37 36 3 32 22 18 12 26 8 11 50 16 43 14 44 27 38 8 23 6 15 2 22 32 3 4 8 46 10 37 42 33 28 30 40 14 46 40 30 28 49 45 17 48 5 29 35 3 36 37 3 34 1 6 15 43 16 50 11 9 15 20 13 41 31 7 38 27 44 14 12 21 9 11 ...
output:
6
result:
ok 1 number(s): "6"
Test #46:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
50 13 7 43 4 19 48 32 9 16 5 47 12 42 49 35 9 5 1 38 34 10 30 40 28 26 11 16 9 23 33 6 44 3 39 26 31 18 4 11 41 25 22 8 49 42 45 37 21 8 47 35 7 26 39 29 16 18 31 5 15 24 36 2 20 27 39 3 44 6 33 23 4 17 7 50 10 13 48 19 4 23 9 32 14 8 21 8 21 37 45 8 14 32 48 13 13 36 24 50 7 17 4 43 16 29 39 27 20 ...
output:
8
result:
ok 1 number(s): "8"
Test #47:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
50 13 10 13 37 21 47 15 3 31 18 44 11 6 50 7 26 19 34 17 6 45 30 2 16 13 20 3 38 4 40 5 30 35 22 6 2 5 30 23 1 12 35 6 2 6 12 8 46 5 3 14 6 22 16 3 15 47 21 37 13 16 2 5 46 8 41 43 9 39 25 11 31 3 25 23 30 45 20 13 11 44 18 11 32 14 22 35 36 27 48 42 26 7 10 19 27 36 35 12 6 14 32 10 29 40 4 24 33 4...
output:
7
result:
ok 1 number(s): "7"
Test #48:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
50 11 4 48 35 42 32 9 29 37 17 28 32 10 27 47 50 14 10 32 42 23 18 21 1 38 31 15 26 24 46 25 10 6 3 9 20 45 22 49 4 19 34 12 32 28 17 37 29 13 43 44 23 42 35 48 7 15 39 10 25 46 24 26 14 33 8 2 36 7 41 16 21 18 12 30 43 13 29 6 11 7 36 2 8 5 18 15 31 38 1 21 16 41 7 11 5 8 33 29 50 47 27 10 39 4 44 ...
output:
2
result:
ok 1 number(s): "2"
Test #49:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
50 13 7 15 42 29 31 38 22 43 9 19 5 14 48 47 39 36 9 13 8 8 26 25 37 11 10 21 17 7 44 3 46 26 8 25 32 14 50 18 12 21 10 1 4 34 40 39 47 6 23 2 5 3 44 32 26 46 10 2 23 28 40 34 4 1 10 11 37 9 45 30 47 48 14 40 28 23 6 12 41 36 39 40 14 5 19 16 7 20 35 49 3 25 26 32 17 31 29 27 33 24 41 49 35 20 7 16 ...
output:
7
result:
ok 1 number(s): "7"
Test #50:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
50 15 3 19 14 31 5 8 27 29 26 32 13 21 23 48 43 22 5 45 6 2 35 44 28 39 9 12 7 16 49 24 9 34 30 17 10 25 36 1 9 24 37 4 16 7 12 8 6 45 5 33 46 42 40 18 6 31 27 8 32 26 19 13 44 35 22 47 3 15 4 37 24 49 16 41 28 6 13 5 22 35 11 38 12 42 46 20 10 27 31 26 29 50 6 18 40 10 50 46 33 5 13 38 11 35 2 6 9 ...
output:
8
result:
ok 1 number(s): "8"
Test #51:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
50 12 7 14 9 39 10 42 35 48 3 22 28 45 11 5 32 26 20 47 31 19 29 7 38 36 14 18 3 16 36 38 26 32 17 50 27 30 6 5 33 5 8 34 35 11 40 7 30 27 50 17 32 5 6 9 22 43 15 41 16 3 18 33 28 13 48 35 34 8 40 11 1 24 2 10 39 9 14 17 20 26 38 7 12 25 11 35 42 10 2 24 1 29 19 31 47 10 28 21 4 46 49 44 13 37 23 45...
output:
6
result:
ok 1 number(s): "6"
Test #52:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
50 10 14 20 24 43 40 30 1 47 12 5 27 13 31 15 26 9 23 11 16 14 1 18 2 46 28 5 9 4 6 17 39 12 1 14 16 8 35 10 50 44 29 25 45 47 12 26 30 40 43 42 38 37 32 19 33 41 20 11 34 49 6 4 9 39 17 36 3 7 21 7 46 29 44 22 48 23 28 16 36 17 6 49 34 21 7 30 26 15 31 13 27 5 12 47 10 37 38 42 43 24 20 41 33 19 32...
output:
3
result:
ok 1 number(s): "3"
Test #53:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
50 14 10 4 6 3 12 10 23 50 42 1 8 4 28 32 34 24 4 13 42 50 23 13 13 48 23 10 12 3 6 46 20 4 8 1 42 8 17 21 2 34 32 27 28 38 7 44 13 23 48 26 37 14 18 40 18 43 5 49 44 22 9 7 30 25 15 21 17 14 37 47 16 6 36 38 28 24 11 35 15 34 2 21 15 25 30 7 39 14 17 38 36 35 11 24 10 48 19 5 43 18 40 16 47 37 26 6...
output:
8
result:
ok 1 number(s): "8"
Test #54:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
50 12 23 20 16 27 14 39 43 47 37 21 33 3 38 26 12 40 30 18 8 17 31 15 42 49 8 40 12 26 38 3 24 18 30 11 33 21 37 47 43 39 14 8 18 24 3 13 23 36 2 1 45 34 27 16 5 41 6 44 7 5 23 7 34 2 36 16 49 42 15 31 17 8 14 27 34 7 44 6 41 5 16 20 4 19 45 1 2 4 45 19 22 9 10 22 19 11 46 10 9 29 50 4 28 8 10 46 11...
output:
8
result:
ok 1 number(s): "8"
Test #55:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
50 14 9 21 50 41 4 32 1 5 25 37 12 23 15 20 35 48 27 31 44 22 3 19 11 11 14 36 24 13 34 2 47 43 44 28 26 12 25 5 10 8 7 40 46 12 9 50 21 30 4 20 45 18 35 10 12 8 10 5 1 32 4 41 50 9 10 28 43 47 30 33 13 24 36 14 26 4 7 8 49 40 7 6 46 40 49 8 12 38 5 43 28 3 22 44 9 47 17 29 39 16 21 37 25 30 11 29 1...
output:
11
result:
ok 1 number(s): "11"
Test #56:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
50 9 17 4 30 5 42 41 49 13 10 47 20 35 25 1 16 18 36 32 19 1 29 27 9 15 25 35 20 47 10 31 39 43 40 14 32 36 18 16 11 12 37 50 28 33 2 9 27 29 1 25 14 17 24 12 25 15 9 2 33 28 44 23 3 19 21 8 46 8 7 23 44 28 50 37 9 39 31 6 30 4 32 14 40 43 8 26 24 17 21 19 45 11 48 9 38 22 46 37 12 24 26 48 34 9 30 ...
output:
0
result:
ok 1 number(s): "0"
Test #57:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
50 9 7 40 20 18 6 31 46 33 6 44 2 16 50 42 47 15 1 27 15 28 8 21 13 43 38 50 16 2 36 30 35 20 20 40 33 46 31 17 10 39 28 15 27 4 32 29 5 14 45 7 24 18 13 38 43 13 3 11 48 30 36 2 44 47 42 50 10 34 22 23 25 49 41 26 9 48 11 6 32 19 45 14 5 29 16 18 24 27 1 35 30 48 9 26 37 12 39 10 17 31 6 16 3 13 21...
output:
2
result:
ok 1 number(s): "2"
Test #58:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
50 11 6 11 25 2 39 49 9 13 48 47 37 50 2 25 44 27 3 21 14 36 40 6 12 28 8 29 38 7 9 31 33 10 43 38 29 1 22 44 13 38 43 10 21 3 27 44 22 1 29 8 28 12 10 14 21 24 19 18 41 4 48 40 36 3 38 12 7 11 30 46 13 5 50 37 35 45 23 16 20 7 26 32 42 17 6 15 34 16 49 39 2 50 5 13 46 32 26 34 15 6 17 42 11 9 13 46...
output:
1
result:
ok 1 number(s): "1"
Test #59:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
50 11 7 45 42 46 6 20 50 35 4 11 44 38 41 7 10 4 2 50 20 6 46 9 8 18 19 33 49 39 21 25 32 8 26 29 48 22 34 36 37 17 5 30 13 3 41 38 21 31 12 7 47 45 35 50 2 4 10 44 42 5 25 21 39 49 33 19 18 8 17 24 9 27 28 12 31 8 32 43 1 15 16 37 36 34 22 14 12 15 1 43 32 14 22 48 29 26 17 37 16 13 14 32 25 5 42 4...
output:
4
result:
ok 1 number(s): "4"
Test #60:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
50 15 11 34 47 23 27 7 48 38 14 18 9 4 7 22 31 19 32 6 8 49 4 31 22 49 15 8 50 16 43 40 21 36 30 1 11 33 10 12 14 38 20 45 35 37 46 41 12 26 8 6 29 1 30 7 27 23 44 25 32 5 30 36 21 40 28 3 35 46 37 24 13 2 40 43 16 50 1 29 6 32 25 44 3 42 17 39 47 34 4 9 18 24 5 11 7 42 3 44 23 47 39 17 4 46 35 45 4...
output:
8
result:
ok 1 number(s): "8"
Test #61:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
50 10 11 45 1 7 42 12 21 38 41 10 37 24 9 6 4 50 3 40 5 16 43 32 9 3 36 2 20 35 27 22 33 29 3 37 31 24 13 50 4 6 32 43 16 5 40 3 29 33 15 25 4 8 18 45 24 12 10 41 13 28 17 19 23 46 9 44 47 48 20 11 15 30 26 34 49 41 38 21 12 42 7 1 45 18 46 23 19 17 14 14 2 36 3 50 39 34 26 30 15 33 22 27 35 20 12 4...
output:
1
result:
ok 1 number(s): "1"
Test #62:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
50 11 11 16 4 47 31 49 21 18 32 44 9 38 9 25 39 2 35 27 30 24 20 8 10 42 3 48 49 31 26 15 39 13 11 8 36 33 17 30 27 35 2 40 14 38 9 46 34 22 12 1 6 44 41 7 10 19 16 15 7 41 44 32 18 37 29 15 26 31 47 4 16 19 10 3 39 25 13 10 42 11 43 28 14 18 21 49 48 3 12 12 22 34 50 23 45 5 46 9 44 6 1 6 5 45 23 5...
output:
3
result:
ok 1 number(s): "3"
Test #63:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
50 13 12 11 50 28 7 47 41 5 13 25 20 14 46 5 35 38 49 34 42 6 19 30 17 26 33 21 5 39 9 38 35 16 7 31 2 12 13 5 41 37 9 14 20 25 13 36 18 29 11 46 13 11 10 23 16 6 15 43 32 27 47 7 28 50 8 19 21 43 40 24 8 17 30 8 23 10 45 48 1 4 39 16 4 15 3 40 43 14 42 34 49 12 2 31 37 41 47 22 15 6 16 35 15 21 33 ...
output:
2
result:
ok 1 number(s): "2"
Test #64:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
100 21 7 2 50 87 16 29 20 98 12 99 44 41 82 37 30 46 28 34 62 24 4 10 92 56 91 52 21 68 87 50 2 98 13 25 54 75 57 80 76 58 78 22 64 95 10 45 9 98 20 29 53 55 78 58 76 16 17 93 8 71 59 90 86 82 41 44 99 3 1 100 83 42 26 27 9 94 19 66 69 61 90 59 71 8 17 55 53 29 43 47 11 49 96 18 5 36 63 39 84 14 61 ...
output:
6
result:
ok 1 number(s): "6"
Test #65:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
100 19 11 100 81 91 27 51 95 40 37 11 93 14 11 25 3 61 70 74 65 87 72 91 81 100 13 53 88 55 21 60 78 63 6 10 32 19 9 26 4 51 27 91 82 21 16 66 7 41 84 96 36 73 74 70 61 34 17 20 44 24 54 23 80 12 76 9 90 64 92 42 77 71 99 4 47 7 86 38 18 52 85 48 58 15 56 26 59 94 33 1 60 21 15 98 46 50 89 43 83 23 ...
output:
3
result:
ok 1 number(s): "3"
Test #66:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
100 25 4 45 48 73 59 11 13 81 9 10 88 64 83 77 36 6 26 10 4 53 31 58 20 34 55 43 14 65 7 59 73 35 93 50 80 56 10 22 85 60 68 99 16 63 67 66 49 12 7 93 95 18 100 42 97 82 12 69 60 85 10 37 30 27 23 78 19 84 29 86 98 13 39 16 99 68 60 17 7 85 22 49 66 28 78 8 71 74 89 33 54 36 77 51 7 89 76 46 48 45 5...
output:
10
result:
ok 1 number(s): "10"
Test #67:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
100 22 4 69 74 32 11 8 54 95 28 43 8 9 96 38 9 64 35 88 91 53 12 45 92 7 6 72 100 11 1 50 78 10 62 41 5 26 14 45 12 55 91 88 8 17 28 95 54 60 20 67 10 8 97 60 54 94 2 80 29 4 12 40 31 71 37 55 12 53 91 1 69 11 100 11 50 1 91 55 37 71 31 40 100 72 78 22 5 41 16 73 23 98 85 79 65 38 96 27 52 3 57 84 9...
output:
6
result:
ok 1 number(s): "6"
Test #68:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
100 23 12 15 81 14 73 28 66 56 21 32 60 40 26 14 12 25 91 94 99 19 49 8 48 13 86 18 85 70 9 62 4 58 45 38 59 25 52 7 9 44 27 41 79 55 97 5 46 17 13 72 36 56 66 28 88 93 80 39 84 78 87 98 12 28 73 90 67 83 37 9 34 39 80 93 88 5 55 20 47 35 97 13 84 39 34 42 23 92 67 90 61 71 98 87 78 15 7 52 25 12 22...
output:
10
result:
ok 1 number(s): "10"
Test #69:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
100 22 15 33 82 65 99 64 5 25 54 87 85 72 57 26 98 17 18 25 36 9 14 74 77 35 57 72 69 66 61 2 88 76 85 87 54 12 1 62 6 40 47 38 94 37 45 51 86 31 10 62 1 31 63 91 30 56 90 40 6 12 100 11 17 98 26 92 84 59 19 27 48 95 11 43 21 78 29 18 73 22 31 86 51 20 7 33 17 11 81 99 65 82 10 7 93 84 92 26 57 10 3...
output:
2
result:
ok 1 number(s): "2"
Test #70:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
100 19 7 47 29 18 71 49 48 9 8 58 52 50 26 32 61 55 87 17 64 96 34 56 35 1 46 3 43 54 24 78 72 28 86 67 19 21 36 89 59 44 65 12 60 16 97 31 38 39 93 22 5 68 2 6 98 92 91 16 65 44 59 4 30 29 47 9 48 49 71 18 23 15 76 12 11 82 99 100 74 73 70 24 54 13 63 57 6 51 37 7 16 60 30 13 19 67 85 88 66 10 75 3...
output:
2
result:
ok 1 number(s): "2"
Test #71:
score: 0
Accepted
time: 1ms
memory: 3880kb
input:
100 24 8 47 26 16 14 70 71 12 15 15 37 7 53 22 72 80 6 95 90 98 58 92 91 60 67 14 48 86 21 30 94 83 28 73 78 32 84 20 57 75 6 48 49 35 43 44 99 9 59 1 34 55 52 65 88 46 9 17 32 78 73 28 83 33 93 4 56 50 40 27 25 64 82 20 84 8 14 16 26 12 71 70 90 92 6 25 27 76 69 82 64 8 36 23 56 62 81 13 29 45 11 1...
output:
8
result:
ok 1 number(s): "8"
Test #72:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
100 18 9 43 26 48 74 78 46 55 90 14 16 69 41 83 33 86 67 28 34 56 99 23 38 15 12 29 54 9 50 6 68 13 55 46 78 92 57 15 7 64 100 25 60 62 76 53 49 52 39 67 11 95 22 15 72 3 62 60 56 32 77 88 31 2 24 96 27 82 87 12 44 19 18 70 45 57 92 78 74 48 54 29 9 88 77 32 56 34 28 89 2 31 4 8 40 54 48 10 51 35 79...
output:
0
result:
ok 1 number(s): "0"
Test #73:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
100 25 8 73 69 72 82 26 100 62 15 19 43 83 23 92 3 30 71 44 75 70 38 64 24 18 34 97 2 42 96 3 61 100 26 9 57 98 17 60 81 79 88 30 20 11 46 78 36 9 40 16 25 70 75 44 71 7 45 55 80 58 90 52 8 8 52 50 91 63 84 47 48 8 16 6 76 54 48 33 87 5 10 45 8 31 94 13 4 11 35 14 53 16 40 9 19 39 12 86 66 34 18 32 ...
output:
9
result:
ok 1 number(s): "9"
Test #74:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
100 20 7 69 79 64 22 86 9 28 12 74 41 23 39 65 84 93 5 61 97 72 46 4 4 3 63 24 16 19 77 59 49 2 17 84 65 39 23 41 74 56 50 54 37 17 76 85 94 30 71 1 88 92 83 11 100 18 5 7 52 9 86 3 2 49 17 13 67 70 66 78 58 51 83 92 20 43 34 10 45 8 69 28 9 52 47 21 99 73 15 46 72 97 61 5 18 31 44 53 80 26 98 49 59...
output:
6
result:
ok 1 number(s): "6"
Test #75:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
100 21 7 42 46 79 26 43 39 10 14 35 33 18 16 32 12 97 41 82 94 42 10 39 2 7 17 92 51 22 50 7 9 11 73 93 81 1 61 5 95 37 52 88 44 17 55 52 37 57 67 62 65 74 75 15 3 32 16 91 84 85 70 5 25 56 53 24 28 18 44 88 67 57 37 95 83 40 4 98 66 24 53 61 1 81 93 73 7 50 22 30 96 31 43 26 14 15 75 74 65 62 46 42...
output:
9
result:
ok 1 number(s): "9"
Test #76:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
100 25 11 27 36 4 39 54 35 7 71 24 68 43 9 67 79 46 14 21 10 20 74 11 11 32 19 52 57 17 98 50 95 70 8 38 7 27 22 18 69 77 4 36 7 86 80 25 97 5 47 48 13 68 24 71 6 15 48 47 5 97 83 90 69 18 12 75 30 88 72 26 29 73 89 64 55 96 12 5 93 40 41 70 95 5 17 57 58 50 98 6 20 10 51 66 16 87 11 45 42 63 85 34 ...
output:
12
result:
ok 1 number(s): "12"
Test #77:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
100 25 8 91 13 44 96 8 88 24 64 11 68 3 42 78 46 76 33 9 6 43 56 4 5 41 27 50 19 59 4 20 33 76 46 78 81 28 94 86 26 39 21 70 75 2 93 47 12 96 44 13 23 65 72 29 40 80 77 88 8 7 79 35 43 6 9 33 14 12 1 11 63 30 84 19 12 61 51 90 32 55 3 36 16 7 18 59 47 93 2 75 31 42 3 68 56 43 35 79 92 34 54 20 4 8 1...
output:
10
result:
ok 1 number(s): "10"
Test #78:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
100 22 3 7 30 19 12 99 34 6 70 98 22 40 43 42 86 53 41 19 100 8 72 80 44 2 12 96 49 97 10 31 33 71 94 64 11 14 1 12 93 48 47 51 60 23 50 36 25 78 24 9 14 55 14 11 68 87 57 61 62 45 16 65 52 75 58 25 44 80 69 90 18 5 63 92 35 29 89 21 31 59 7 19 46 32 67 56 97 49 96 12 2 4 48 38 26 43 12 47 48 43 40 ...
output:
5
result:
ok 1 number(s): "5"
Test #79:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
100 22 4 54 50 92 85 19 96 12 30 56 75 89 18 82 40 4 45 84 33 39 90 63 38 36 5 6 86 53 40 82 18 89 10 81 43 8 65 51 54 85 70 93 62 16 93 70 85 92 50 17 78 73 41 52 97 54 51 65 81 62 6 60 64 81 65 8 43 9 79 21 25 67 76 34 49 59 16 7 100 33 46 23 10 68 7 7 37 16 59 49 34 66 24 4 60 43 81 64 15 94 58 2...
output:
6
result:
ok 1 number(s): "6"
Test #80:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
100 27 12 22 61 81 41 14 94 84 83 20 55 33 8 10 91 37 71 54 89 80 51 7 17 100 6 35 1 9 64 63 70 7 39 10 29 69 46 66 23 10 35 15 26 47 65 31 86 32 6 68 12 38 93 18 69 29 13 59 3 43 11 39 24 10 88 34 4 76 14 41 81 42 16 2 6 53 97 56 47 26 87 15 90 56 97 53 87 26 95 27 73 72 78 92 34 88 77 13 58 10 75 ...
output:
13
result:
ok 1 number(s): "13"
Test #81:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
100 22 4 20 48 46 91 11 95 85 23 11 78 22 26 79 80 37 89 5 42 46 20 91 52 13 52 91 51 14 60 64 6 10 73 47 34 55 42 22 34 47 73 10 6 64 60 14 17 77 32 66 93 99 33 29 43 63 61 53 42 55 8 7 98 72 69 36 75 88 18 11 18 16 57 67 78 11 36 69 72 98 7 18 62 50 92 54 76 21 14 51 2 59 25 31 96 83 90 4 56 12 11...
output:
7
result:
ok 1 number(s): "7"
Test #82:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
100 27 13 77 20 54 62 71 19 24 97 37 57 42 31 50 7 41 5 7 27 58 51 68 9 11 21 44 66 50 76 59 18 9 5 23 31 42 46 48 10 21 11 9 46 10 62 54 80 15 32 6 5 41 84 64 67 29 11 87 56 93 53 22 40 35 65 100 1 86 16 96 92 25 34 1 81 69 8 38 35 40 22 3 49 99 61 10 36 58 27 7 78 45 2 13 30 89 19 96 61 99 49 3 22...
output:
9
result:
ok 1 number(s): "9"
Test #83:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
100 25 8 12 47 38 24 89 7 34 49 3 42 51 19 4 19 6 59 42 21 95 81 79 47 12 49 25 30 75 65 55 77 10 62 26 93 46 85 91 18 2 9 11 1 21 14 90 69 87 63 86 13 55 65 75 30 25 49 34 7 27 99 68 10 77 7 84 31 29 32 88 59 22 7 5 61 28 96 35 41 70 9 5 70 39 100 16 52 60 54 61 15 18 91 85 46 93 58 83 74 62 10 68 ...
output:
9
result:
ok 1 number(s): "9"
Test #84:
score: 0
Accepted
time: 29ms
memory: 3740kb
input:
200 198 5 72 23 155 150 140 6 181 14 25 21 1 196 3 33 55 48 3 150 185 140 5 143 120 46 27 137 3 190 112 135 3 70 194 39 8 162 187 52 27 46 73 7 107 3 137 136 143 3 151 119 124 4 79 129 122 115 5 14 141 16 36 25 4 3 163 157 158 5 17 150 155 140 185 3 149 47 6 3 165 70 60 5 45 179 5 3 158 3 15 189 174...
output:
328
result:
ok 1 number(s): "328"
Test #85:
score: 0
Accepted
time: 25ms
memory: 4000kb
input:
200 198 3 141 171 92 3 73 105 108 4 155 9 130 106 3 8 56 99 3 16 125 87 3 103 47 100 3 66 90 130 7 21 173 62 104 5 151 164 6 55 189 192 141 84 2 4 128 73 161 116 4 57 59 110 194 3 14 118 53 3 56 119 187 4 43 179 183 196 7 86 136 185 69 85 32 45 6 82 172 39 143 24 148 3 170 93 70 5 67 167 88 13 123 7...
output:
327
result:
ok 1 number(s): "327"
Test #86:
score: 0
Accepted
time: 25ms
memory: 3772kb
input:
200 198 3 106 76 84 3 110 57 186 3 97 15 100 3 76 106 183 3 3 88 89 4 128 26 147 92 3 124 60 8 3 43 192 194 4 114 22 40 49 3 28 70 91 13 83 164 154 91 70 146 41 18 197 75 28 33 184 3 107 18 121 4 132 175 150 74 3 33 154 184 3 103 113 155 8 193 60 124 105 8 36 115 94 4 139 9 39 109 6 49 172 44 129 18...
output:
321
result:
ok 1 number(s): "321"
Test #87:
score: 0
Accepted
time: 29ms
memory: 3800kb
input:
200 198 3 190 38 163 5 2 148 146 109 142 3 26 35 174 7 85 100 181 63 123 162 86 3 135 154 36 4 145 98 57 105 3 121 19 21 4 16 46 72 185 6 131 154 147 135 36 28 3 137 77 60 6 87 66 81 41 143 178 6 137 157 2 142 11 77 3 4 96 151 3 81 66 89 3 40 175 132 3 155 132 175 4 195 200 131 28 3 104 19 54 6 117 ...
output:
324
result:
ok 1 number(s): "324"
Test #88:
score: 0
Accepted
time: 29ms
memory: 3932kb
input:
200 198 9 130 3 147 39 8 153 99 180 59 3 38 194 191 4 74 104 124 108 4 97 124 104 13 3 173 52 36 4 5 103 119 185 3 184 149 100 3 130 99 153 3 103 33 119 3 81 5 146 3 63 96 42 4 7 161 162 144 3 102 115 116 3 66 10 150 4 159 164 64 109 4 117 43 11 4 9 57 173 36 54 4 11 62 73 52 5 79 197 15 139 129 3 1...
output:
332
result:
ok 1 number(s): "332"
Test #89:
score: 0
Accepted
time: 29ms
memory: 3800kb
input:
200 198 4 130 110 74 88 3 56 134 155 3 104 108 28 4 191 34 33 145 3 76 172 161 5 103 88 74 184 32 3 27 91 134 4 159 181 132 170 3 177 164 38 5 126 89 168 62 54 4 140 78 181 2 3 19 93 31 4 165 99 182 102 3 186 26 124 3 168 89 20 4 181 159 78 2 4 65 146 129 41 5 143 82 107 72 194 4 69 39 144 111 4 167...
output:
336
result:
ok 1 number(s): "336"
Test #90:
score: 0
Accepted
time: 29ms
memory: 3796kb
input:
200 198 3 151 13 65 5 190 141 161 27 63 4 121 160 12 82 3 195 30 120 3 59 40 117 10 178 189 179 32 1 24 15 127 50 152 3 156 14 129 3 109 113 37 3 104 148 73 3 140 177 128 3 9 58 148 3 8 87 77 3 83 28 80 3 98 136 21 3 7 193 194 8 124 113 43 109 37 39 72 108 3 153 102 82 3 99 75 149 3 158 100 60 7 98 ...
output:
310
result:
ok 1 number(s): "310"
Test #91:
score: 0
Accepted
time: 29ms
memory: 3956kb
input:
200 198 3 131 88 77 4 174 117 85 171 3 178 36 15 4 34 91 128 64 4 101 71 82 90 3 153 127 151 3 83 179 2 3 169 100 67 3 130 12 70 3 69 78 54 7 198 42 40 70 12 176 182 4 55 177 112 106 7 178 56 61 108 72 63 36 3 162 113 104 3 150 147 26 13 168 160 130 70 122 132 127 153 189 4 73 17 151 7 100 53 60 169...
output:
333
result:
ok 1 number(s): "333"
Test #92:
score: 0
Accepted
time: 29ms
memory: 3796kb
input:
200 198 5 155 109 133 99 63 3 108 42 186 3 45 106 138 6 20 116 123 178 34 60 4 10 3 177 153 4 58 108 186 23 3 193 173 158 3 191 101 160 7 122 53 48 56 124 193 158 3 61 126 57 8 16 97 131 197 50 21 139 22 4 135 142 114 74 4 38 138 85 128 4 85 38 148 128 3 155 145 109 3 44 196 41 3 115 103 75 3 170 52...
output:
330
result:
ok 1 number(s): "330"
Test #93:
score: 0
Accepted
time: 29ms
memory: 3800kb
input:
200 198 3 193 176 90 3 120 155 123 5 140 1 142 58 38 8 28 199 130 189 186 47 30 128 3 118 59 14 4 159 8 4 3 3 89 2 183 4 45 36 87 191 4 190 92 133 71 4 36 61 45 191 5 19 197 145 99 165 4 14 129 5 118 4 197 19 145 96 3 34 46 171 3 127 54 50 3 114 167 138 3 180 94 116 4 72 93 76 91 4 23 153 51 95 4 14...
output:
332
result:
ok 1 number(s): "332"
Test #94:
score: 0
Accepted
time: 29ms
memory: 3700kb
input:
200 198 4 77 27 125 97 3 110 38 49 3 129 95 108 3 33 101 111 4 45 36 110 49 3 89 194 196 3 101 33 126 4 160 17 183 80 5 20 178 173 139 154 3 138 52 57 4 51 22 41 134 4 195 166 199 65 3 190 147 186 3 178 154 139 3 56 157 16 6 74 35 164 13 92 19 5 197 61 80 183 160 3 85 138 148 3 3 72 126 3 193 115 10...
output:
331
result:
ok 1 number(s): "331"
Test #95:
score: 0
Accepted
time: 29ms
memory: 3708kb
input:
200 198 4 57 20 79 182 5 126 22 132 163 91 5 4 175 52 93 8 3 13 71 128 4 123 47 108 14 3 142 92 118 4 127 95 180 168 4 173 140 168 180 4 45 162 115 83 3 6 37 90 3 53 29 183 6 108 16 8 93 47 123 4 53 183 191 99 3 17 160 50 5 27 101 46 106 134 5 172 170 104 77 18 4 56 166 133 88 5 21 48 43 50 135 3 42...
output:
344
result:
ok 1 number(s): "344"
Test #96:
score: 0
Accepted
time: 29ms
memory: 3704kb
input:
200 198 3 87 160 26 4 181 93 178 68 5 67 147 35 192 130 3 103 63 155 3 61 15 182 3 185 107 25 6 94 66 117 11 196 6 4 77 90 43 55 6 40 52 10 121 109 78 3 169 170 38 3 101 113 174 3 113 101 166 5 197 151 90 77 43 3 178 168 97 3 176 46 147 3 120 190 154 5 126 198 152 199 164 4 15 51 114 182 4 144 175 1...
output:
334
result:
ok 1 number(s): "334"
Test #97:
score: 0
Accepted
time: 30ms
memory: 4000kb
input:
200 198 5 41 44 97 132 153 3 141 23 169 5 189 187 50 11 2 3 104 33 142 5 81 168 178 102 89 4 191 87 114 35 6 75 135 1 186 27 96 11 28 59 10 140 38 167 81 89 115 171 54 3 45 117 72 3 24 103 17 4 147 142 33 143 4 66 134 31 78 7 41 97 44 165 86 74 62 6 15 64 76 180 136 9 4 78 69 31 66 3 191 83 87 3 46 ...
output:
343
result:
ok 1 number(s): "343"
Test #98:
score: 0
Accepted
time: 29ms
memory: 4000kb
input:
200 198 4 132 1 52 98 3 52 121 98 3 122 47 164 4 130 113 124 101 4 108 36 145 160 4 197 89 14 63 3 138 67 70 3 48 182 64 3 63 117 197 3 38 155 192 5 88 188 167 12 166 3 88 37 188 4 191 168 27 141 4 14 39 89 197 4 19 107 16 180 3 88 166 167 3 18 162 41 5 116 95 134 74 69 4 50 62 139 67 4 75 174 10 14...
output:
332
result:
ok 1 number(s): "332"
Test #99:
score: 0
Accepted
time: 25ms
memory: 4000kb
input:
200 198 3 125 195 36 3 146 173 132 3 14 19 30 3 115 155 162 3 113 84 28 5 14 179 30 19 95 3 20 83 108 3 53 27 45 6 177 175 181 85 63 174 3 141 34 178 3 144 130 150 7 162 137 124 155 156 72 115 3 134 90 60 4 37 23 128 89 3 170 167 81 6 46 15 20 7 108 83 4 88 142 100 59 3 42 29 143 4 133 78 11 21 3 1 ...
output:
334
result:
ok 1 number(s): "334"
Test #100:
score: 0
Accepted
time: 30ms
memory: 3704kb
input:
200 198 5 41 1 186 147 175 3 9 107 11 3 66 174 199 5 159 126 47 157 96 4 155 7 86 195 4 61 117 124 32 6 78 111 35 197 188 142 3 53 48 191 3 122 157 47 4 51 15 112 66 5 105 172 40 153 89 3 74 162 24 7 4 125 30 20 177 190 141 3 164 172 92 3 42 33 185 3 120 95 167 5 22 174 99 36 108 7 196 81 8 75 37 90...
output:
336
result:
ok 1 number(s): "336"
Test #101:
score: 0
Accepted
time: 25ms
memory: 3796kb
input:
200 198 3 71 179 144 4 85 1 46 102 4 80 136 120 129 3 72 84 109 3 167 44 66 3 17 24 178 3 164 199 43 3 131 74 23 3 60 184 13 5 133 14 37 93 134 5 160 32 2 73 196 3 112 109 84 3 161 152 30 3 127 92 3 4 100 29 97 149 3 20 122 105 5 115 127 3 99 92 3 184 103 13 4 56 73 2 87 3 200 64 123 3 17 178 29 6 1...
output:
324
result:
ok 1 number(s): "324"
Test #102:
score: 0
Accepted
time: 29ms
memory: 3720kb
input:
200 198 7 136 130 10 78 66 135 30 5 63 62 183 26 49 3 60 31 32 3 91 192 158 4 117 84 113 45 4 13 121 73 129 3 26 183 63 4 6 15 67 56 3 91 4 192 5 48 104 152 35 195 3 58 169 21 3 103 53 82 4 185 13 129 85 3 1 70 25 4 43 154 149 75 3 2 7 18 3 194 105 175 3 167 23 158 3 171 32 31 3 157 68 116 5 152 191...
output:
316
result:
ok 1 number(s): "316"
Test #103:
score: 0
Accepted
time: 29ms
memory: 3656kb
input:
200 198 6 67 75 95 116 163 81 4 71 46 105 98 3 190 192 63 4 50 70 19 186 6 69 42 171 40 15 9 6 188 91 21 75 67 95 12 196 78 93 117 1 39 12 94 80 181 88 112 8 134 175 55 156 96 44 85 84 3 16 133 7 3 119 176 184 7 29 33 114 191 123 60 160 3 37 27 6 3 64 124 3 5 190 28 23 30 8 4 154 179 103 13 5 185 46...
output:
326
result:
ok 1 number(s): "326"
Test #104:
score: 0
Accepted
time: 9ms
memory: 3680kb
input:
200 103 7 142 60 93 192 9 123 189 4 19 129 73 152 4 136 139 161 47 6 198 7 167 197 104 59 5 66 31 24 137 21 7 178 53 30 109 143 73 129 7 96 51 101 90 23 95 36 7 190 26 138 21 137 59 31 6 163 189 123 9 186 70 5 25 115 41 140 20 7 43 79 116 90 101 51 75 5 95 56 96 149 68 5 191 65 86 42 79 6 81 149 96 ...
output:
111
result:
ok 1 number(s): "111"
Test #105:
score: 0
Accepted
time: 10ms
memory: 3748kb
input:
200 109 5 124 110 82 171 192 7 156 70 17 67 5 111 101 7 27 153 165 81 123 97 170 5 197 115 88 129 160 5 147 81 27 170 10 7 58 118 15 19 150 168 20 5 61 100 189 21 190 7 151 25 154 113 99 94 1 7 158 155 128 22 133 145 3 6 193 32 84 40 159 74 7 86 28 9 184 195 196 95 5 52 122 46 135 152 6 24 49 183 17...
output:
116
result:
ok 1 number(s): "116"
Test #106:
score: 0
Accepted
time: 8ms
memory: 3668kb
input:
200 98 6 10 76 48 158 187 189 5 105 195 135 64 162 5 23 174 59 168 165 4 144 8 31 66 7 174 179 108 168 56 26 59 5 13 138 16 69 5 10 10 170 177 43 72 137 189 187 48 76 9 25 198 57 12 44 127 73 161 183 6 92 3 62 114 74 115 10 127 44 155 149 94 123 124 198 25 73 4 147 139 9 152 5 165 188 120 164 23 4 8...
output:
89
result:
ok 1 number(s): "89"
Test #107:
score: 0
Accepted
time: 9ms
memory: 3748kb
input:
200 105 6 28 16 91 77 61 66 10 42 7 144 60 25 165 4 100 190 197 6 177 194 114 183 117 39 8 33 108 67 43 111 179 85 53 8 171 162 17 62 142 84 12 110 3 29 79 154 3 111 43 180 3 106 132 119 9 86 13 85 97 137 83 18 124 74 5 155 71 70 151 107 8 8 31 5 47 178 148 192 118 4 187 50 112 133 10 128 19 105 139...
output:
104
result:
ok 1 number(s): "104"
Test #108:
score: 0
Accepted
time: 9ms
memory: 3680kb
input:
200 103 6 178 177 39 161 100 191 3 193 197 182 6 69 20 163 31 106 93 4 141 128 88 129 3 41 64 169 5 129 88 28 183 194 6 178 191 181 6 177 113 6 131 77 25 13 121 7 6 176 105 29 63 185 91 9 52 40 15 139 21 153 86 60 192 4 78 42 169 64 7 93 106 87 163 189 50 69 3 30 176 91 4 20 11 189 163 3 165 86 153 ...
output:
107
result:
ok 1 number(s): "107"
Test #109:
score: 0
Accepted
time: 8ms
memory: 3764kb
input:
200 95 4 140 67 85 105 12 182 149 86 40 185 120 192 162 131 72 109 73 7 194 147 189 7 93 77 167 8 170 128 163 198 114 129 38 71 6 138 188 101 162 192 26 5 136 199 195 94 183 5 184 2 101 188 138 4 97 141 39 47 4 100 23 197 124 7 159 169 39 141 187 80 82 9 180 127 150 3 190 113 90 181 14 4 176 17 104 ...
output:
86
result:
ok 1 number(s): "86"
Test #110:
score: 0
Accepted
time: 9ms
memory: 3768kb
input:
200 99 6 113 135 133 141 1 104 7 5 27 24 86 187 130 173 8 23 167 33 122 115 64 59 83 5 134 38 182 181 14 5 34 69 4 111 32 6 33 107 166 24 27 5 3 67 45 147 5 68 16 41 155 42 8 65 4 69 98 34 32 85 70 4 109 200 124 86 7 199 132 96 121 117 186 3 8 2 78 41 120 163 76 16 68 5 107 33 167 87 166 5 90 152 16...
output:
89
result:
ok 1 number(s): "89"
Test #111:
score: 0
Accepted
time: 10ms
memory: 3680kb
input:
200 106 7 32 30 129 167 73 9 165 7 79 185 56 74 172 122 196 5 37 104 83 25 72 4 90 64 53 21 5 110 182 173 107 154 8 17 153 147 50 185 42 84 159 5 126 151 149 83 104 5 127 9 73 180 47 13 112 7 138 102 71 163 106 155 5 176 100 133 198 4 164 169 175 192 6 1 135 119 60 194 81 7 193 81 130 197 48 184 108...
output:
101
result:
ok 1 number(s): "101"
Test #112:
score: 0
Accepted
time: 9ms
memory: 3676kb
input:
200 103 5 147 7 114 152 60 6 36 124 161 184 84 142 3 43 91 29 4 116 196 199 81 11 194 56 64 117 132 139 199 196 150 167 155 3 27 4 100 4 66 111 186 118 5 111 66 46 2 168 8 48 165 144 15 67 189 178 97 4 105 3 22 93 7 114 46 98 26 186 83 30 4 150 6 50 95 8 140 189 187 97 178 185 79 181 4 191 130 142 8...
output:
99
result:
ok 1 number(s): "99"
Test #113:
score: 0
Accepted
time: 8ms
memory: 3704kb
input:
200 98 10 147 2 120 31 164 95 140 111 79 41 3 8 70 196 4 109 128 10 187 9 138 62 72 40 101 45 162 16 48 10 169 115 191 186 82 70 8 175 129 92 6 12 19 18 194 124 154 7 57 65 106 99 76 14 44 6 137 73 5 121 38 152 8 83 145 5 38 189 29 49 3 4 130 49 29 189 5 115 119 4 7 191 5 37 146 126 140 95 3 95 69 3...
output:
80
result:
ok 1 number(s): "80"
Test #114:
score: 0
Accepted
time: 7ms
memory: 3768kb
input:
200 93 5 97 15 133 116 163 6 34 153 131 143 151 57 6 184 4 46 20 191 119 4 126 153 110 139 3 58 145 46 6 132 136 165 152 188 23 4 157 28 115 141 8 69 33 104 80 66 134 117 48 8 86 95 25 88 75 42 89 101 6 51 70 38 199 109 9 10 191 20 46 145 188 3 64 28 157 115 7 135 110 153 34 131 139 71 10 7 77 192 2...
output:
84
result:
ok 1 number(s): "84"
Test #115:
score: 0
Accepted
time: 9ms
memory: 3740kb
input:
200 100 4 168 110 87 179 5 31 193 131 37 99 9 153 199 87 110 63 22 123 3 135 7 163 108 21 55 64 59 30 9 121 152 150 102 70 86 185 67 66 8 4 75 51 127 169 56 71 96 9 156 80 23 142 83 11 91 53 40 12 64 55 21 108 117 183 122 94 16 162 180 170 7 155 1 149 174 54 93 192 4 39 99 88 68 3 172 114 20 6 148 1...
output:
95
result:
ok 1 number(s): "95"
Test #116:
score: 0
Accepted
time: 8ms
memory: 3760kb
input:
200 94 4 112 151 124 82 5 190 140 139 122 128 8 82 197 29 151 89 16 132 112 6 109 97 148 50 37 44 4 26 4 20 38 6 193 101 73 165 41 81 9 133 149 55 80 162 12 38 113 120 5 23 178 102 45 160 7 22 157 127 174 84 108 54 4 121 71 58 91 6 45 100 6 8 23 160 4 27 86 5 102 4 134 158 65 34 7 17 159 76 34 65 16...
output:
65
result:
ok 1 number(s): "65"
Test #117:
score: 0
Accepted
time: 9ms
memory: 3764kb
input:
200 102 6 151 58 56 52 50 66 9 84 131 41 178 22 172 177 91 121 6 16 133 184 76 197 74 6 9 113 74 84 27 194 6 58 59 104 120 73 56 9 111 82 6 78 48 80 128 180 97 3 163 12 83 7 110 62 2 149 163 50 52 4 73 43 79 66 8 183 37 191 169 134 46 153 94 7 175 99 20 156 127 28 122 4 83 61 110 107 5 135 196 18 19...
output:
101
result:
ok 1 number(s): "101"
Test #118:
score: 0
Accepted
time: 5ms
memory: 3724kb
input:
200 95 5 191 189 90 152 130 9 130 127 133 153 116 144 1 72 29 6 64 146 101 69 49 176 10 42 87 113 41 65 17 55 31 169 58 8 199 55 17 65 169 31 158 52 6 183 35 147 19 117 119 4 22 160 172 165 11 200 102 110 184 79 180 47 182 4 96 124 12 68 142 95 157 83 33 70 71 12 9 146 64 8 133 14 107 197 193 144 11...
output:
79
result:
ok 1 number(s): "79"
Test #119:
score: 0
Accepted
time: 4ms
memory: 3968kb
input:
200 95 4 162 10 71 46 5 151 104 19 174 90 5 69 181 138 120 130 11 120 138 136 150 27 5 95 40 78 38 129 9 197 13 115 145 122 75 50 21 6 9 94 126 137 196 70 103 186 106 59 4 65 114 72 173 5 188 152 31 67 2 7 71 108 54 76 48 25 22 6 130 120 36 78 40 95 12 159 77 174 152 188 79 166 67 133 189 164 31 7 9...
output:
85
result:
ok 1 number(s): "85"
Test #120:
score: 0
Accepted
time: 10ms
memory: 3740kb
input:
200 108 6 70 90 104 21 77 180 5 178 165 95 62 13 4 47 4 118 34 8 158 1 39 126 106 187 85 121 6 47 5 185 107 118 4 7 62 95 52 22 197 142 165 9 21 30 24 11 107 180 122 35 77 6 45 102 84 149 150 128 4 36 115 87 196 5 198 123 117 63 7 6 168 43 193 65 31 20 6 174 106 126 39 162 181 7 97 149 191 102 45 12...
output:
104
result:
ok 1 number(s): "104"
Test #121:
score: 0
Accepted
time: 8ms
memory: 3752kb
input:
200 95 10 48 98 191 158 170 173 30 49 56 34 8 51 100 117 142 187 149 132 84 4 23 156 124 105 4 153 7 125 188 6 55 159 110 197 71 101 7 189 103 27 52 76 50 63 5 37 26 87 92 47 8 98 93 76 52 163 128 46 18 6 156 162 124 133 96 15 7 138 109 111 188 86 66 118 9 145 119 148 13 21 88 127 17 115 5 23 25 42 ...
output:
66
result:
ok 1 number(s): "66"
Test #122:
score: 0
Accepted
time: 8ms
memory: 3772kb
input:
200 95 7 165 121 110 71 43 28 142 11 96 79 67 91 175 63 106 193 186 111 48 9 28 43 115 75 171 49 71 110 128 4 52 154 146 135 8 38 53 9 184 123 163 195 122 6 7 25 56 176 31 153 12 163 123 83 182 152 195 20 140 154 52 135 146 8 172 183 158 51 143 90 107 23 9 118 46 7 153 82 24 168 31 176 9 41 138 85 2...
output:
78
result:
ok 1 number(s): "78"
Test #123:
score: 0
Accepted
time: 7ms
memory: 3632kb
input:
200 91 5 69 112 160 107 116 6 46 139 58 91 66 105 4 60 145 28 89 4 23 109 64 127 7 54 198 65 27 150 189 173 12 118 190 48 90 164 182 19 35 149 26 163 124 8 44 132 113 20 195 165 123 1 5 81 30 156 171 56 11 87 157 115 77 127 165 195 20 183 188 38 4 124 163 24 199 5 111 177 49 37 167 4 133 128 15 166 ...
output:
74
result:
ok 1 number(s): "74"
Test #124:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
200 50 8 140 23 179 5 163 36 53 172 14 186 166 134 102 124 20 74 183 199 60 111 93 27 121 14 154 191 198 97 152 131 61 197 156 135 52 85 98 126 6 137 68 111 26 107 148 14 81 50 88 34 25 71 76 10 28 94 193 121 199 29 8 193 146 10 34 88 50 186 121 10 147 115 145 140 172 53 36 110 59 169 9 44 11 182 82...
output:
25
result:
ok 1 number(s): "25"
Test #125:
score: 0
Accepted
time: 2ms
memory: 3728kb
input:
200 47 10 60 149 45 119 32 29 183 151 159 175 10 110 49 24 140 81 21 14 199 164 107 9 123 33 125 188 46 1 28 134 161 5 121 23 170 131 5 6 63 90 146 28 53 142 9 170 67 10 68 114 121 5 138 177 9 122 71 102 105 168 117 172 78 135 12 19 195 196 54 119 45 147 101 194 152 104 190 15 21 105 102 71 44 25 13...
output:
18
result:
ok 1 number(s): "18"
Test #126:
score: 0
Accepted
time: 2ms
memory: 3704kb
input:
200 41 5 126 63 61 21 108 8 153 146 163 185 91 167 190 42 19 122 35 1 51 168 121 8 181 104 137 115 36 174 88 114 73 159 48 145 19 184 128 43 171 195 19 178 14 98 33 68 189 64 132 187 37 141 177 165 12 134 20 54 70 15 26 52 199 18 23 5 117 5 181 95 172 84 169 16 152 67 176 58 133 155 146 153 82 109 4...
output:
11
result:
ok 1 number(s): "11"
Test #127:
score: 0
Accepted
time: 2ms
memory: 3748kb
input:
200 39 12 120 28 118 27 53 177 46 174 160 180 111 78 11 120 78 111 180 194 50 54 129 27 118 28 11 136 1 85 174 196 134 32 3 44 58 36 11 33 48 156 187 159 76 112 125 31 140 67 10 98 172 132 39 106 17 38 102 144 49 4 187 73 76 159 12 170 195 80 155 167 19 57 200 169 142 123 9 22 62 38 17 82 75 127 67 ...
output:
7
result:
ok 1 number(s): "7"
Test #128:
score: 0
Accepted
time: 2ms
memory: 3752kb
input:
200 46 11 55 89 95 5 137 91 92 187 104 43 52 8 190 84 128 183 125 173 94 39 9 10 106 101 174 160 51 130 121 58 16 159 96 29 85 121 130 23 38 25 59 54 77 66 197 152 192 10 139 4 129 144 196 132 171 140 131 194 7 129 4 167 189 70 188 90 10 80 178 185 135 33 7 46 53 99 28 4 152 197 8 155 11 131 140 171...
output:
16
result:
ok 1 number(s): "16"
Test #129:
score: 0
Accepted
time: 2ms
memory: 3752kb
input:
200 44 17 115 111 143 187 131 106 45 83 23 86 96 196 14 133 166 165 24 10 191 84 31 100 40 147 193 116 161 76 19 5 72 64 103 32 176 85 154 11 46 63 173 33 182 172 69 158 92 127 10 156 160 58 11 154 85 176 32 103 197 11 84 191 76 161 116 193 147 47 51 150 151 10 58 160 70 77 80 6 72 92 46 11 3 138 56...
output:
12
result:
ok 1 number(s): "12"
Test #130:
score: 0
Accepted
time: 2ms
memory: 3692kb
input:
200 42 16 54 97 5 59 127 108 158 67 41 35 75 43 102 8 69 120 12 140 145 171 27 44 138 17 83 85 48 135 77 15 140 77 22 189 76 130 156 200 18 11 42 153 27 171 145 11 34 60 21 40 38 120 69 8 114 121 118 11 17 138 45 3 30 147 73 26 109 143 83 8 130 76 189 22 199 141 200 156 17 70 134 113 166 107 160 181...
output:
10
result:
ok 1 number(s): "10"
Test #131:
score: 0
Accepted
time: 2ms
memory: 3752kb
input:
200 41 15 177 195 139 9 127 170 145 82 70 181 179 120 159 48 106 12 149 90 71 180 197 37 150 100 111 117 77 4 13 177 18 170 127 157 72 200 149 4 77 117 139 195 7 179 181 70 106 48 159 120 11 197 180 71 92 101 99 3 173 147 107 37 8 182 184 87 86 29 59 41 118 17 183 45 129 116 24 95 94 54 93 140 15 11...
output:
9
result:
ok 1 number(s): "9"
Test #132:
score: 0
Accepted
time: 2ms
memory: 3660kb
input:
200 44 15 160 59 79 177 80 104 162 84 28 53 33 138 121 70 3 22 91 194 132 184 115 44 167 158 111 37 15 136 142 31 191 85 127 48 41 73 71 133 16 65 119 20 107 168 5 199 170 187 90 179 176 159 197 21 47 15 11 166 26 144 100 165 154 195 126 64 63 6 76 13 151 10 132 52 35 140 120 163 95 30 32 117 8 123 ...
output:
14
result:
ok 1 number(s): "14"
Test #133:
score: 0
Accepted
time: 2ms
memory: 3748kb
input:
200 42 8 18 23 83 85 7 148 122 138 14 16 56 162 95 123 169 92 4 47 120 164 137 128 87 8 198 39 105 189 173 81 171 62 5 97 54 67 14 6 13 173 119 142 30 64 170 168 154 12 54 152 108 21 11 136 77 90 76 118 49 43 174 37 191 65 14 81 173 21 108 152 50 30 186 29 110 9 198 62 171 9 180 10 44 88 192 157 26 ...
output:
10
result:
ok 1 number(s): "10"
Test #134:
score: 0
Accepted
time: 3ms
memory: 3660kb
input:
200 50 5 46 51 9 90 127 10 33 90 9 51 46 59 152 5 74 136 9 189 114 57 89 101 180 126 175 29 21 82 185 100 87 30 11 56 88 176 92 160 60 76 7 167 36 135 67 48 98 113 16 25 23 86 153 168 26 155 156 142 139 97 14 179 4 161 150 3 17 159 3 7 130 66 195 21 166 31 140 10 43 188 90 33 199 124 181 16 194 171 ...
output:
21
result:
ok 1 number(s): "21"
Test #135:
score: 0
Accepted
time: 2ms
memory: 3624kb
input:
200 46 8 197 200 102 183 112 67 85 1 12 29 48 3 30 130 134 93 138 147 116 123 190 13 137 193 12 92 197 1 85 67 112 183 61 195 182 6 152 31 62 77 172 57 11 36 31 19 57 172 43 180 2 186 9 155 7 37 82 161 83 91 154 156 13 21 181 73 192 115 128 107 62 187 10 145 199 16 13 121 71 81 42 52 91 83 161 94 7 ...
output:
21
result:
ok 1 number(s): "21"
Test #136:
score: 0
Accepted
time: 2ms
memory: 3664kb
input:
200 44 14 44 168 38 86 158 3 56 37 80 7 143 60 105 199 8 38 20 150 171 125 84 60 86 7 139 123 174 59 171 122 29 16 22 43 106 100 145 148 107 128 92 68 97 196 156 119 71 111 6 74 79 28 6 135 128 12 31 170 2 121 65 23 151 19 159 129 112 172 17 158 86 60 143 7 80 37 163 78 77 108 1 67 200 73 56 3 7 72 ...
output:
14
result:
ok 1 number(s): "14"
Test #137:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
200 52 5 54 61 156 42 69 4 8 93 196 139 9 15 190 40 59 182 75 43 155 119 5 174 70 111 110 161 13 166 22 5 60 198 107 192 178 13 121 195 148 56 7 69 42 180 153 23 175 68 9 117 156 61 76 177 40 190 21 80 7 35 87 94 95 151 53 26 12 137 135 24 25 77 2 14 126 34 162 157 193 6 90 178 192 107 65 134 8 108 ...
output:
19
result:
ok 1 number(s): "19"
Test #138:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
200 42 13 102 121 158 172 88 181 53 186 92 50 68 78 47 9 18 119 37 8 90 82 34 191 81 11 176 140 97 62 38 188 179 101 11 76 187 11 17 199 143 25 89 87 163 189 9 79 72 14 5 14 148 174 66 170 127 56 123 33 158 121 26 21 12 124 159 84 30 80 79 9 18 81 191 34 48 20 14 73 2 153 99 44 109 4 41 151 123 56 1...
output:
17
result:
ok 1 number(s): "17"
Test #139:
score: 0
Accepted
time: 2ms
memory: 3916kb
input:
200 47 8 171 97 83 190 181 160 18 196 12 178 77 98 163 173 135 69 4 103 94 90 185 10 62 57 27 150 43 119 9 152 102 44 10 77 178 39 23 66 33 192 95 163 98 8 107 162 131 128 15 64 73 182 6 184 14 52 68 44 102 14 138 194 36 199 121 26 7 174 165 29 100 41 11 161 10 168 71 145 22 15 128 195 31 114 133 8 ...
output:
20
result:
ok 1 number(s): "20"
Test #140:
score: 0
Accepted
time: 2ms
memory: 3960kb
input:
200 46 5 89 83 2 109 13 14 62 162 38 141 10 42 67 37 195 96 127 22 153 6 10 20 49 86 50 121 24 156 77 187 32 13 81 105 200 68 149 148 137 166 39 74 154 51 114 8 134 46 72 43 64 28 16 100 7 8 112 177 155 55 57 139 19 160 191 82 141 38 162 62 6 153 22 178 12 177 112 8 139 120 76 179 8 4 90 103 157 194...
output:
18
result:
ok 1 number(s): "18"
Test #141:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
200 40 4 15 65 53 106 10 196 76 111 188 61 12 24 73 45 138 14 165 29 158 88 22 187 116 17 130 85 192 100 48 27 12 139 181 55 127 47 84 11 115 69 81 66 132 12 162 46 126 157 174 89 189 78 124 67 161 170 13 27 48 100 192 85 28 125 35 116 187 22 88 158 9 7 117 45 73 102 152 177 54 62 13 52 105 147 49 9...
output:
12
result:
ok 1 number(s): "12"
Test #142:
score: 0
Accepted
time: 2ms
memory: 3944kb
input:
200 47 7 135 159 25 96 70 200 78 7 36 98 106 163 187 173 153 27 152 51 141 109 117 92 134 133 169 194 162 148 90 121 140 23 6 186 161 52 94 198 15 125 154 46 69 13 127 41 80 178 168 108 79 129 81 115 53 170 35 4 77 35 56 168 9 60 164 49 102 112 126 195 95 11 10 104 44 22 116 199 33 171 3 78 200 9 77...
output:
19
result:
ok 1 number(s): "19"
Test #143:
score: 0
Accepted
time: 2ms
memory: 3752kb
input:
200 43 9 189 180 75 92 74 140 95 79 142 9 101 148 40 171 21 6 42 182 195 22 155 172 133 112 38 1 10 189 142 79 95 178 32 165 87 45 25 71 132 91 33 11 4 174 129 114 102 13 134 196 55 151 191 184 153 147 90 52 137 149 154 6 154 146 20 141 118 134 10 8 160 58 108 73 124 76 126 69 78 7 164 70 170 68 84 ...
output:
14
result:
ok 1 number(s): "14"
Test #144:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
200 22 11 126 33 42 87 122 39 1 193 191 48 36 17 184 161 50 145 188 198 108 47 180 160 125 61 159 109 178 150 70 23 182 71 136 89 93 107 105 99 55 192 114 52 15 116 60 78 90 179 162 3 146 2 190 29 68 30 155 118 199 164 24 13 119 43 76 101 174 32 114 192 55 99 105 107 93 89 136 143 152 51 98 110 123 ...
output:
0
result:
ok 1 number(s): "0"
Test #145:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
200 20 16 77 78 182 125 134 149 3 40 95 186 141 150 148 136 99 110 19 86 191 70 100 21 42 194 117 166 113 165 19 73 155 62 133 123 111 154 20 112 118 82 14 56 51 108 190 156 55 163 64 102 24 167 115 87 35 9 88 29 142 23 1 174 61 137 124 22 10 16 109 97 20 159 36 71 83 29 52 164 158 45 48 5 119 26 12...
output:
2
result:
ok 1 number(s): "2"
Test #146:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
200 22 19 141 79 142 56 125 136 87 10 129 18 120 16 77 144 82 165 69 53 96 37 153 36 151 143 49 198 118 72 114 196 146 51 13 193 111 64 55 59 133 46 4 162 75 138 20 91 104 113 29 178 74 89 175 116 90 168 60 15 188 149 156 109 180 65 126 157 199 183 24 108 15 28 23 5 52 150 85 107 140 33 120 18 129 1...
output:
4
result:
ok 1 number(s): "4"
Test #147:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
200 19 44 84 5 130 127 25 4 160 38 43 34 182 135 104 58 154 28 122 175 50 153 125 85 111 105 126 172 193 181 161 171 131 148 166 71 138 26 7 68 2 144 47 16 72 198 15 65 61 51 93 100 136 189 194 119 180 15 92 18 75 168 16 109 114 38 160 4 25 127 130 5 84 186 174 24 3 96 78 46 78 14 97 41 48 139 150 1...
output:
0
result:
ok 1 number(s): "0"
Test #148:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
200 21 37 4 148 140 200 185 80 85 64 83 22 178 94 81 72 151 57 3 91 39 11 115 102 162 127 149 66 174 197 111 112 65 165 103 62 25 95 89 33 191 109 23 153 45 20 128 40 8 119 87 147 79 5 186 34 67 74 63 132 108 187 59 152 16 18 28 2 124 53 75 177 47 16 199 180 43 60 33 73 38 78 21 163 10 113 125 171 1...
output:
2
result:
ok 1 number(s): "2"
Test #149:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
200 26 9 46 61 44 116 33 144 84 22 1 28 120 151 7 135 79 36 188 91 73 192 190 52 8 164 196 182 128 111 40 132 200 33 116 44 61 57 176 86 24 14 142 51 134 119 13 136 167 172 161 21 139 81 88 152 34 35 160 125 56 131 59 41 63 3 20 69 138 12 99 43 4 173 141 142 14 63 41 59 131 189 14 62 16 104 98 87 56...
output:
6
result:
ok 1 number(s): "6"
Test #150:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
200 33 12 81 68 79 120 104 111 16 117 190 3 115 145 30 91 98 150 175 70 106 53 77 170 198 73 102 35 147 194 48 4 113 200 179 187 39 64 50 84 180 18 12 138 186 11 105 119 163 135 87 143 76 167 112 80 5 20 1 19 47 103 156 11 108 195 23 185 32 14 45 36 10 52 116 21 183 192 20 152 59 144 7 84 50 64 39 1...
output:
7
result:
ok 1 number(s): "7"
Test #151:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
200 23 5 68 75 16 123 182 20 159 185 101 112 167 66 26 56 103 97 108 152 160 178 86 118 2 132 122 27 10 157 88 38 105 87 94 62 113 161 198 14 62 94 166 153 78 150 81 41 58 45 89 163 73 64 26 195 143 39 9 19 197 149 102 125 52 61 145 128 129 76 107 147 70 41 81 150 78 153 166 94 124 29 162 10 101 185...
output:
3
result:
ok 1 number(s): "3"
Test #152:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
200 21 6 12 84 55 50 39 137 24 190 8 9 49 173 128 183 34 101 157 181 189 28 177 17 62 131 127 172 27 57 154 23 126 17 165 146 140 1 59 51 191 118 60 198 31 42 36 103 121 109 79 15 53 105 69 48 33 167 102 124 29 63 174 38 93 86 67 21 175 106 25 192 80 179 173 49 170 15 151 196 183 188 47 141 68 91 26...
output:
0
result:
ok 1 number(s): "0"
Test #153:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
200 22 17 113 54 98 100 114 26 93 85 157 16 146 12 192 193 118 42 112 17 67 77 145 143 78 109 110 184 156 95 76 128 155 21 92 43 171 37 84 200 135 1 105 158 88 144 172 4 35 190 74 69 62 182 161 124 38 170 107 157 85 93 26 125 37 159 27 162 173 111 73 103 60 191 22 24 87 169 120 189 187 193 192 12 14...
output:
5
result:
ok 1 number(s): "5"
Test #154:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
200 24 28 99 14 142 100 58 152 42 193 92 162 172 90 81 37 185 73 21 33 52 175 56 11 9 115 62 120 26 129 23 65 20 109 160 5 96 29 77 45 98 124 27 74 157 3 76 61 86 139 148 72 82 13 19 19 24 1 88 173 158 117 25 127 95 46 197 91 174 133 80 164 125 113 5 99 78 22 53 14 8 78 172 162 92 193 118 53 22 10 6...
output:
4
result:
ok 1 number(s): "4"
Test #155:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
200 22 12 31 40 101 169 188 144 119 34 149 65 190 66 15 63 151 118 173 77 12 131 158 171 8 39 95 91 93 50 17 169 88 37 136 42 191 82 41 163 154 81 177 44 181 123 144 188 20 167 172 72 32 69 21 29 35 145 195 137 176 55 102 187 200 87 90 88 169 9 144 123 181 44 79 65 149 34 119 21 5 185 139 36 138 96 ...
output:
7
result:
ok 1 number(s): "7"
Test #156:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
200 21 7 135 184 136 9 33 199 73 17 34 69 165 8 42 159 75 62 194 61 157 76 54 156 175 74 92 18 22 72 43 147 149 90 168 108 81 137 64 60 170 187 16 106 146 47 21 127 188 21 43 72 22 47 146 106 16 187 170 60 64 137 179 140 65 185 103 114 17 107 39 154 131 167 79 97 95 77 100 96 180 195 132 148 99 58 1...
output:
3
result:
ok 1 number(s): "3"
Test #157:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
200 23 9 27 180 133 113 199 152 47 158 1 21 89 198 55 95 4 23 166 126 141 25 62 192 11 40 157 29 34 179 161 121 184 29 42 151 24 109 46 36 58 90 162 82 81 45 140 59 18 100 63 19 158 47 142 53 80 194 124 67 87 150 26 14 27 1 158 9 65 21 135 8 47 152 172 197 133 180 47 105 147 6 35 175 85 79 28 30 187...
output:
3
result:
ok 1 number(s): "3"
Test #158:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
200 20 24 71 166 122 58 178 96 174 167 6 148 102 138 49 74 59 199 137 16 156 162 134 172 184 41 17 43 141 171 83 106 153 127 95 88 145 130 26 12 46 79 73 76 15 193 160 44 164 40 173 135 24 200 123 157 2 197 155 28 5 1 132 66 39 131 4 141 43 65 198 16 194 93 94 21 77 98 143 121 8 195 91 87 18 172 134...
output:
2
result:
ok 1 number(s): "2"
Test #159:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
200 24 12 152 32 106 95 130 120 107 66 149 175 126 173 20 127 165 76 73 20 190 29 31 96 117 22 86 1 100 79 170 134 143 164 163 9 93 38 198 71 111 136 9 98 196 24 177 82 55 52 49 2 54 151 30 27 43 84 67 123 58 159 83 191 103 19 135 68 162 64 15 102 86 22 117 122 119 42 141 62 167 101 147 168 133 189 ...
output:
5
result:
ok 1 number(s): "5"
Test #160:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
200 21 14 2 176 66 68 69 88 83 50 11 143 91 45 145 153 11 174 147 70 33 53 93 48 14 192 84 121 32 106 24 179 44 38 138 150 61 16 117 123 175 54 169 128 125 98 156 108 118 114 36 198 136 186 177 3 113 193 5 146 43 15 116 103 168 77 6 200 180 191 110 72 74 92 97 163 80 37 2 153 145 45 37 18 187 129 39...
output:
1
result:
ok 1 number(s): "1"
Test #161:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
200 19 22 152 112 164 191 148 114 133 38 22 200 40 75 98 153 3 30 177 58 166 100 53 102 8 101 104 83 95 54 142 196 155 35 89 85 47 65 169 55 199 105 16 159 31 19 11 13 41 76 60 74 43 6 9 154 121 151 127 189 96 149 29 23 77 129 70 147 62 30 170 172 15 190 128 55 167 171 99 20 168 79 157 120 78 174 17...
output:
0
result:
ok 1 number(s): "0"
Test #162:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
200 18 16 19 8 6 1 75 176 83 30 43 186 191 12 68 150 71 198 15 60 139 152 123 124 76 193 17 69 134 57 169 151 140 194 30 20 180 26 190 121 195 116 110 50 138 10 34 79 105 29 23 123 152 139 60 184 173 91 103 78 147 125 112 120 117 31 28 8 19 198 153 158 179 44 102 52 72 14 155 161 93 45 144 183 15 10...
output:
1
result:
ok 1 number(s): "1"
Test #163:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
200 23 14 106 194 156 188 191 52 41 178 169 46 101 118 47 193 24 14 158 167 190 182 119 108 97 79 115 56 42 13 33 122 30 150 20 44 198 130 50 117 95 10 121 49 72 100 4 90 111 91 54 137 14 62 78 84 193 47 118 101 46 169 178 41 52 191 35 21 40 25 155 5 128 83 63 125 89 68 124 189 88 61 140 32 131 184 ...
output:
3
result:
ok 1 number(s): "3"
Extra Test:
score: 0
Extra Test Passed