QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#291050 | #4400. Homework | MoRanSky | 100 ✓ | 210ms | 223200kb | C++23 | 2.5kb | 2023-12-26 04:37:22 | 2023-12-26 04:37:23 |
Judging History
answer
// Skyqwq
#include <bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
#define mp make_pair
using namespace std;
typedef pair<int, int> PII;
typedef long long LL;
template <typename T> bool chkMax(T &x, T y) { return (y > x) ? x = y, 1 : 0; }
template <typename T> bool chkMin(T &x, T y) { return (y < x) ? x = y, 1 : 0; }
template <typename T> void inline read(T &x) {
int f = 1; x = 0; char s = getchar();
while (s < '0' || s > '9') { if (s == '-') f = -1; s = getchar(); }
while (s <= '9' && s >= '0') x = x * 10 + (s ^ 48), s = getchar();
x *= f;
}
const int N = 2e6 + 5, INF = 1e9;
string str;
vector<int> g[N];
int idx, op[N], s[N], top, n, tot, rt;
PII I = mp(INF, -INF);
PII inline mg(PII a, PII b) {
return mp(min(a.fi, b.fi), max(a.se, b.se));
}
PII inline add(PII a, PII b) {
return mp(a.fi + b.fi, a.se + b.se);
}
PII inline apd(PII a, int b) {
return mp(a.fi, a.se + b);
}
PII f[N][2];
int sz[N];
void dfs1(int u) {
sz[u] = u <= n ? 1 : 0;
if (u <= n) {
f[u][0] = mp(1, 1);
f[u][1] = mp(0, 0);
return;
}
for (int v: g[u]) {
dfs1(v);
sz[u] += sz[v];
}
int A = g[u][0], B = g[u][1];
if (op[u] == 0) {
f[u][0] = mg(apd(f[A][0], sz[B]), apd(f[B][0], sz[A]));
f[u][1] = add(f[A][1], f[B][1]);
} else {
f[u][1] = mg(apd(f[A][1], sz[B]), apd(f[B][1], sz[A]));
f[u][0] = add(f[A][0], f[B][0]);
}
// cerr << u << " " << A << " " << B << " ----:::\n";
// for (int i = 0; i < 2; i++) {
// cerr << f[u][i].fi << " " << f[u][i].se << " ---\n";
// }
}
PII ret = I;
int c[N];
void dfs2(int u, PII now) {
if (u <= n) {
c[now.fi]++, c[now.se + 1]--;
return;
}
for (int i = 0; i < 2; i++) {
dfs2(g[u][i], add(now, f[g[u][i ^ 1]][op[u] == 0 ? 1 : 0]));
}
}
int main() {
cin >> str;
for (char c: str) if (c == '?') ++n; idx = n;
rt = idx + 1;
for (int i = 0; i < str.size(); i++) {
if (str[i] == '(') {
s[++top] = ++idx;
if (top > 1) g[s[top - 1]].pb(s[top]);
op[idx] = str[i - 1] == 'n' ? 0 : 1;
} else if (str[i] == ')') {
--top;
} else if (str[i] == '?') {
++tot;
assert(top);
g[s[top]].pb(tot);
}
}
dfs1(rt);
dfs2(rt, mp(0, 0));
int ans = 0;
//cerr << ret.fi << " -- " << ret.se << endl;
for (int i = 0; i < n; i++) {
if (i) c[i] += c[i - 1];
if (c[i]) ans++;
}
printf("%d\n", ans);
return 0;
}
詳細信息
Subtask #1:
score: 10
Accepted
Test #1:
score: 10
Accepted
time: 7ms
memory: 57052kb
input:
min(max(?,max(min(?,min(?,?)),?)),min(max(?,?),max(?,?)))
output:
6
result:
ok single line: '6'
Test #2:
score: 0
Accepted
time: 0ms
memory: 57604kb
input:
max(max(?,min(max(?,min(?,?)),?)),max(max(?,?),max(?,?)))
output:
4
result:
ok single line: '4'
Test #3:
score: 0
Accepted
time: 0ms
memory: 56916kb
input:
min(min(min(?,min(?,?)),min(?,?)),min(?,min(min(?,?),?)))
output:
1
result:
ok single line: '1'
Test #4:
score: 0
Accepted
time: 3ms
memory: 57560kb
input:
max(max(max(?,?),?),max(max(?,?),min(max(?,?),max(?,?))))
output:
3
result:
ok single line: '3'
Test #5:
score: 0
Accepted
time: 3ms
memory: 58000kb
input:
min(max(?,min(?,?)),max(min(max(?,?),?),min(max(?,?),?)))
output:
6
result:
ok single line: '6'
Test #6:
score: 0
Accepted
time: 3ms
memory: 58560kb
input:
max(max(?,min(max(?,?),?)),max(max(max(?,?),min(?,?)),?))
output:
4
result:
ok single line: '4'
Test #7:
score: 0
Accepted
time: 4ms
memory: 58768kb
input:
min(min(max(min(?,?),?),?),min(?,max(max(?,?),min(?,?))))
output:
6
result:
ok single line: '6'
Test #8:
score: 0
Accepted
time: 4ms
memory: 57636kb
input:
min(min(min(min(?,?),max(?,?)),min(min(?,?),min(?,?))),?)
output:
2
result:
ok single line: '2'
Test #9:
score: 0
Accepted
time: 3ms
memory: 57680kb
input:
max(max(?,?),max(max(max(?,?),max(?,?)),max(?,max(?,?))))
output:
1
result:
ok single line: '1'
Test #10:
score: 0
Accepted
time: 0ms
memory: 57424kb
input:
min(max(min(?,?),?),max(min(?,max(min(max(?,?),?),?)),?))
output:
7
result:
ok single line: '7'
Test #11:
score: 0
Accepted
time: 7ms
memory: 57844kb
input:
max(?,min(max(?,min(?,?)),max(max(?,?),min(?,max(?,?)))))
output:
7
result:
ok single line: '7'
Test #12:
score: 0
Accepted
time: 9ms
memory: 57968kb
input:
min(min(max(?,?),?),max(max(?,min(max(?,?),?)),max(?,?)))
output:
7
result:
ok single line: '7'
Test #13:
score: 0
Accepted
time: 7ms
memory: 57028kb
input:
min(min(min(?,?),min(?,max(?,?))),min(?,min(?,min(?,?))))
output:
2
result:
ok single line: '2'
Test #14:
score: 0
Accepted
time: 7ms
memory: 58648kb
input:
min(max(max(?,?),max(?,max(max(?,?),max(?,?)))),max(?,?))
output:
7
result:
ok single line: '7'
Test #15:
score: 0
Accepted
time: 4ms
memory: 57220kb
input:
max(min(?,?),min(max(min(?,?),min(?,max(?,min(?,?)))),?))
output:
7
result:
ok single line: '7'
Test #16:
score: 0
Accepted
time: 3ms
memory: 57320kb
input:
min(?,min(?,max(max(max(min(?,min(min(?,?),?)),?),?),?)))
output:
7
result:
ok single line: '7'
Test #17:
score: 0
Accepted
time: 4ms
memory: 57212kb
input:
min(?,min(?,max(?,max(min(min(min(?,min(?,?)),?),?),?))))
output:
7
result:
ok single line: '7'
Test #18:
score: 0
Accepted
time: 3ms
memory: 58228kb
input:
min(?,min(min(min(?,min(?,min(?,min(min(?,?),?)))),?),?))
output:
1
result:
ok single line: '1'
Test #19:
score: 0
Accepted
time: 11ms
memory: 57916kb
input:
max(max(max(?,max(?,max(?,max(?,max(max(?,?),?))))),?),?)
output:
1
result:
ok single line: '1'
Test #20:
score: 0
Accepted
time: 11ms
memory: 57216kb
input:
min(max(?,min(max(min(max(min(?,max(?,?)),?),?),?),?)),?)
output:
8
result:
ok single line: '8'
Test #21:
score: 0
Accepted
time: 4ms
memory: 57744kb
input:
min(min(?,?),min(min(min(?,?),min(min(?,min(?,?)),?)),?))
output:
1
result:
ok single line: '1'
Test #22:
score: 0
Accepted
time: 4ms
memory: 57008kb
input:
max(max(max(?,?),max(max(?,?),?)),max(max(?,?),max(?,?)))
output:
1
result:
ok single line: '1'
Test #23:
score: 0
Accepted
time: 3ms
memory: 58512kb
input:
min(max(?,min(max(?,?),?)),min(?,min(?,min(?,max(?,?)))))
output:
5
result:
ok single line: '5'
Test #24:
score: 0
Accepted
time: 0ms
memory: 57660kb
input:
min(?,max(min(min(max(?,?),?),max(?,?)),min(min(?,?),?)))
output:
6
result:
ok single line: '6'
Test #25:
score: 0
Accepted
time: 3ms
memory: 58848kb
input:
min(min(min(?,?),max(?,?)),min(min(?,?),min(?,?)))
output:
2
result:
ok single line: '2'
Test #26:
score: 0
Accepted
time: 0ms
memory: 57188kb
input:
min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?)))
output:
1
result:
ok single line: '1'
Test #27:
score: 0
Accepted
time: 3ms
memory: 58108kb
input:
max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?)))
output:
4
result:
ok single line: '4'
Test #28:
score: 0
Accepted
time: 0ms
memory: 57732kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Subtask #2:
score: 13
Accepted
Dependency #1:
100%
Accepted
Test #29:
score: 13
Accepted
time: 3ms
memory: 57076kb
input:
min(max(min(?,max(?,max(?,?))),min(min(?,min(?,?)),?)),min(max(?,max(?,?)),min(min(?,?),min(min(?,?),?))))
output:
9
result:
ok single line: '9'
Test #30:
score: 0
Accepted
time: 10ms
memory: 57684kb
input:
max(min(max(?,max(max(?,max(?,?)),?)),max(?,min(?,?))),min(max(?,min(?,?)),min(min(?,?),max(min(?,?),?))))
output:
13
result:
ok single line: '13'
Test #31:
score: 0
Accepted
time: 0ms
memory: 58264kb
input:
min(max(min(?,min(?,?)),min(min(?,min(?,?)),min(min(?,?),?))),min(min(?,?),min(max(?,?),min(min(?,?),?))))
output:
8
result:
ok single line: '8'
Test #32:
score: 0
Accepted
time: 3ms
memory: 57488kb
input:
max(max(min(?,?),max(?,max(?,max(min(?,?),?)))),min(max(max(?,max(?,?)),max(?,?)),max(max(?,?),max(?,?))))
output:
8
result:
ok single line: '8'
Test #33:
score: 0
Accepted
time: 8ms
memory: 58468kb
input:
min(max(min(?,max(?,?)),min(max(min(?,?),?),max(?,?))),max(min(?,max(?,?)),min(max(min(?,?),?),max(?,?))))
output:
11
result:
ok single line: '11'
Test #34:
score: 0
Accepted
time: 8ms
memory: 58636kb
input:
max(min(?,?),min(?,min(?,min(min(max(min(?,?),min(?,?)),max(?,min(min(?,?),max(?,?)))),max(?,min(?,?))))))
output:
14
result:
ok single line: '14'
Test #35:
score: 0
Accepted
time: 7ms
memory: 57848kb
input:
max(min(?,max(?,min(?,?))),min(min(max(?,?),min(?,max(min(max(?,min(?,?)),?),min(?,max(max(?,?),?))))),?))
output:
14
result:
ok single line: '14'
Test #36:
score: 0
Accepted
time: 0ms
memory: 57848kb
input:
min(min(?,?),min(min(min(min(?,min(min(?,?),min(min(?,?),?))),min(?,min(?,?))),max(?,min(min(?,?),?))),?))
output:
4
result:
ok single line: '4'
Test #37:
score: 0
Accepted
time: 3ms
memory: 57536kb
input:
max(max(max(max(max(?,?),max(?,?)),max(max(?,?),max(?,?))),max(?,max(?,max(?,?)))),max(min(?,?),max(?,?)))
output:
2
result:
ok single line: '2'
Test #38:
score: 0
Accepted
time: 10ms
memory: 58812kb
input:
min(max(min(max(?,?),max(?,?)),min(max(min(?,?),min(max(?,?),max(?,?))),max(?,?))),max(min(?,?),min(?,?)))
output:
12
result:
ok single line: '12'
Test #39:
score: 0
Accepted
time: 4ms
memory: 58492kb
input:
max(min(max(?,?),max(min(?,?),max(max(?,?),min(?,max(?,max(?,?)))))),min(max(max(?,?),?),max(?,max(?,?))))
output:
11
result:
ok single line: '11'
Test #40:
score: 0
Accepted
time: 7ms
memory: 57464kb
input:
max(max(?,max(max(?,min(max(min(?,min(?,max(?,?))),min(?,?)),min(max(?,?),max(?,?)))),min(?,max(?,?)))),?)
output:
11
result:
ok single line: '11'
Test #41:
score: 0
Accepted
time: 0ms
memory: 58300kb
input:
min(max(max(min(min(?,?),?),min(min(min(?,min(?,?)),?),min(?,min(?,?)))),min(min(?,?),?)),min(min(?,?),?))
output:
11
result:
ok single line: '11'
Test #42:
score: 0
Accepted
time: 3ms
memory: 58188kb
input:
max(max(?,max(?,?)),max(max(max(max(max(min(?,max(?,?)),max(max(?,?),?)),?),max(?,?)),?),max(?,max(?,?))))
output:
3
result:
ok single line: '3'
Test #43:
score: 0
Accepted
time: 9ms
memory: 57896kb
input:
min(max(min(max(?,min(max(?,?),?)),max(min(max(min(?,max(?,?)),?),max(?,?)),?)),?),max(min(?,?),min(?,?)))
output:
13
result:
ok single line: '13'
Test #44:
score: 0
Accepted
time: 11ms
memory: 57868kb
input:
max(?,max(?,max(min(min(max(?,max(?,max(max(?,max(?,min(max(?,min(?,min(max(?,?),?))),?))),?))),?),?),?)))
output:
13
result:
ok single line: '13'
Test #45:
score: 0
Accepted
time: 3ms
memory: 57772kb
input:
max(min(max(max(min(min(?,min(min(min(?,min(?,max(?,min(max(?,min(max(?,?),?)),?)))),?),?)),?),?),?),?),?)
output:
15
result:
ok single line: '15'
Test #46:
score: 0
Accepted
time: 3ms
memory: 58132kb
input:
min(max(min(?,min(?,min(min(min(?,min(min(?,min(min(min(?,min(min(min(?,?),?),?)),?),?)),?)),?),?))),?),?)
output:
15
result:
ok single line: '15'
Test #47:
score: 0
Accepted
time: 7ms
memory: 58268kb
input:
max(max(?,max(max(max(max(?,max(?,max(?,max(max(min(max(?,max(?,max(?,max(?,?)))),?),?),?)))),?),?),?)),?)
output:
6
result:
ok single line: '6'
Test #48:
score: 0
Accepted
time: 14ms
memory: 57204kb
input:
max(min(?,max(?,min(?,max(?,min(?,max(?,min(max(?,min(max(?,min(max(?,min(max(?,?),?)),?)),?)),?))))))),?)
output:
15
result:
ok single line: '15'
Test #49:
score: 0
Accepted
time: 3ms
memory: 58240kb
input:
min(min(min(?,min(?,?)),?),min(min(?,?),min(min(?,min(?,?)),min(min(min(min(?,?),?),min(min(?,?),?)),?))))
output:
1
result:
ok single line: '1'
Test #50:
score: 0
Accepted
time: 11ms
memory: 57232kb
input:
max(?,max(max(max(?,?),max(max(?,max(?,max(?,?))),?)),max(?,max(max(max(?,?),max(?,max(max(?,?),?))),?))))
output:
1
result:
ok single line: '1'
Test #51:
score: 0
Accepted
time: 3ms
memory: 57508kb
input:
max(max(min(?,?),max(?,max(min(max(?,?),min(?,?)),min(?,?)))),max(max(max(min(?,?),?),max(?,?)),min(?,?)))
output:
8
result:
ok single line: '8'
Test #52:
score: 0
Accepted
time: 4ms
memory: 57224kb
input:
max(min(max(?,min(max(?,?),?)),max(min(max(?,?),min(?,?)),?)),min(min(?,?),min(min(min(min(?,?),?),?),?)))
output:
13
result:
ok single line: '13'
Test #53:
score: 0
Accepted
time: 4ms
memory: 57268kb
input:
max(min(max(max(?,?),min(?,?)),min(max(?,?),max(?,?))),min(max(max(?,?),min(?,?)),min(max(?,?),min(?,?))))
output:
12
result:
ok single line: '12'
Test #54:
score: 0
Accepted
time: 3ms
memory: 58360kb
input:
min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))))
output:
1
result:
ok single line: '1'
Test #55:
score: 0
Accepted
time: 0ms
memory: 57588kb
input:
min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))))
output:
10
result:
ok single line: '10'
Test #56:
score: 0
Accepted
time: 10ms
memory: 57408kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Subtask #3:
score: 13
Accepted
Test #57:
score: 13
Accepted
time: 197ms
memory: 220120kb
input:
min(?,min(?,min(min(min(min(?,min(min(?,min(?,min(?,min(min(?,min(?,min(min(?,min(min(?,min(?,min(?,min(min(?,min(min(?,min(min(?,min(?,min(?,min(min(?,min(min(?,min(min(min(min(?,min(min(min(min(min(?,min(min(?,min(min(?,min(?,min(?,min(?,min(min(?,min(?,min(?,min(?,min(min(?,min(?,min(?,min(min(mi...
output:
1
result:
ok single line: '1'
Test #58:
score: 0
Accepted
time: 191ms
memory: 221364kb
input:
max(max(max(max(max(max(max(?,max(max(max(?,max(?,max(max(max(max(max(?,max(?,max(max(?,max(max(?,max(?,max(max(max(max(max(max(max(max(max(max(?,max(?,max(?,max(?,max(max(?,max(max(max(?,max(?,max(?,max(max(max(max(max(max(max(max(?,max(?,max(max(max(?,max(?,max(?,max(?,max(?,max(?,max(max(max(?,ma...
output:
1
result:
ok single line: '1'
Test #59:
score: 0
Accepted
time: 200ms
memory: 222784kb
input:
max(?,max(min(max(max(max(max(max(min(?,min(?,min(?,max(?,max(?,min(max(max(?,max(max(max(?,max(?,max(min(max(?,min(max(max(?,max(max(?,max(?,max(min(?,max(min(?,min(?,max(?,min(min(?,max(max(min(?,min(max(max(min(min(?,min(?,max(?,min(?,min(min(max(min(?,min(min(?,max(?,min(?,max(?,max(?,min(min(ma...
output:
999998
result:
ok single line: '999998'
Test #60:
score: 0
Accepted
time: 200ms
memory: 223200kb
input:
min(min(min(?,max(min(min(?,max(?,min(?,max(?,max(?,min(max(max(max(min(?,max(max(min(?,max(?,max(?,max(max(?,max(min(?,max(?,min(max(min(?,max(min(min(?,min(?,max(?,min(?,max(max(max(?,min(?,max(?,max(?,min(?,min(?,max(max(max(?,min(?,min(?,min(max(?,max(?,min(min(?,min(max(max(?,min(min(?,min(min(...
output:
999997
result:
ok single line: '999997'
Test #61:
score: 0
Accepted
time: 183ms
memory: 222752kb
input:
max(min(min(?,min(min(max(?,min(?,max(min(min(?,max(min(?,min(?,min(min(?,min(min(min(min(?,min(min(min(min(min(min(min(min(min(min(?,min(min(?,min(?,min(max(min(?,min(?,min(?,min(?,min(?,min(?,min(min(min(min(?,min(min(min(?,min(?,max(min(?,min(?,min(min(max(?,max(min(?,min(?,min(min(max(min(?,min(...
output:
999999
result:
ok single line: '999999'
Test #62:
score: 0
Accepted
time: 187ms
memory: 220656kb
input:
min(min(max(max(?,min(min(max(?,min(min(min(?,min(?,min(min(min(min(min(min(min(?,min(min(?,max(?,min(min(?,min(?,min(min(?,min(min(min(?,min(?,max(?,min(min(?,min(?,min(min(min(?,min(?,max(?,min(min(?,min(min(?,max(?,min(?,min(?,min(min(max(?,min(max(max(?,min(min(min(?,min(min(?,min(min(min(max(mi...
output:
999998
result:
ok single line: '999998'
Test #63:
score: 0
Accepted
time: 189ms
memory: 222564kb
input:
max(max(max(?,max(max(?,max(max(max(max(?,max(?,max(?,max(?,max(?,max(?,max(max(?,max(?,max(?,max(?,max(?,max(max(max(max(max(?,max(?,max(max(?,max(?,max(max(max(max(?,max(max(?,min(?,max(?,max(max(max(max(max(?,min(max(min(?,max(?,max(?,max(?,max(?,max(max(max(?,max(?,max(?,max(?,min(?,max(max(?,mi...
output:
999965
result:
ok single line: '999965'
Test #64:
score: 0
Accepted
time: 176ms
memory: 221196kb
input:
max(max(?,max(?,max(max(?,max(?,max(max(?,max(min(max(?,max(?,min(?,max(?,max(max(?,max(max(max(max(max(?,max(?,max(?,max(max(?,max(max(max(max(max(min(min(?,max(max(?,min(?,max(max(?,max(max(?,max(?,min(max(?,max(max(min(max(?,max(?,max(max(max(max(max(max(max(max(max(?,min(max(?,max(?,max(min(max(...
output:
999991
result:
ok single line: '999991'
Test #65:
score: 0
Accepted
time: 195ms
memory: 220748kb
input:
min(?,max(?,min(?,max(min(?,max(?,min(max(min(?,max(min(max(?,min(?,max(min(?,max(min(?,max(?,min(max(min(?,max(?,min(max(min(?,max(min(?,max(?,min(max(?,min(max(?,min(?,max(min(?,max(?,min(?,max(min(max(?,min(?,max(min(max(?,min(max(?,min(?,max(?,min(?,max(min(max(?,min(?,max(?,min(max(?,min(?,max(...
output:
999999
result:
ok single line: '999999'
Test #66:
score: 0
Accepted
time: 201ms
memory: 220672kb
input:
min(max(min(?,max(?,min(max(?,min(max(min(?,max(min(max(min(max(?,min(?,max(?,min(max(?,min(?,max(?,min(max(min(max(?,min(?,max(min(max(min(?,max(min(max(min(?,max(min(?,max(min(?,max(min(max(?,min(max(?,min(max(min(?,max(?,min(max(min(?,max(min(?,max(min(max(min(?,max(?,min(?,max(?,min(max(?,min(ma...
output:
999999
result:
ok single line: '999999'
Test #67:
score: 0
Accepted
time: 175ms
memory: 221044kb
input:
max(min(?,max(min(max(min(max(min(max(?,min(max(?,min(?,max(min(max(min(?,max(?,min(?,max(min(max(min(?,max(?,min(?,max(?,min(?,max(?,min(max(?,min(?,max(min(?,max(min(?,max(?,min(max(?,min(max(min(max(?,min(?,max(?,min(max(min(max(min(max(?,min(max(?,min(?,max(min(?,max(?,min(max(min(?,max(?,min(?,...
output:
999999
result:
ok single line: '999999'
Test #68:
score: 0
Accepted
time: 178ms
memory: 220852kb
input:
min(max(?,min(max(min(?,max(?,min(?,max(min(max(min(max(?,min(max(?,min(?,max(min(max(?,min(max(?,min(max(?,min(?,max(min(?,max(min(?,max(?,min(max(min(max(?,min(max(min(?,max(?,min(max(min(?,max(min(max(?,min(max(min(?,max(min(max(?,min(?,max(?,min(?,max(?,min(max(?,min(?,max(?,min(?,max(min(max(mi...
output:
999999
result:
ok single line: '999999'
Test #69:
score: 0
Accepted
time: 11ms
memory: 58032kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Subtask #4:
score: 30
Accepted
Dependency #2:
100%
Accepted
Test #70:
score: 30
Accepted
time: 7ms
memory: 58072kb
input:
max(min(min(min(min(min(min(min(min(?,max(?,?)),max(max(min(?,?),min(?,?)),max(?,?))),max(min(?,min(?,?)),max(?,min(max(?,min(?,?)),?)))),min(max(max(min(min(?,?),?),min(?,?)),min(?,min(?,?))),min(max(?,?),min(min(?,max(?,?)),max(?,?))))),min(max(max(max(?,max(max(?,?),?)),min(min(?,?),min(?,?))),ma...
output:
982
result:
ok single line: '982'
Test #71:
score: 0
Accepted
time: 0ms
memory: 58448kb
input:
min(min(min(min(max(min(max(min(min(min(?,?),?),min(max(?,min(?,?)),min(?,max(?,?)))),max(min(min(?,?),?),min(min(?,?),max(?,max(?,?))))),min(min(min(?,min(?,?)),max(min(?,max(?,?)),?)),min(max(?,max(min(?,?),?)),max(max(min(?,?),?),?)))),max(min(max(max(max(?,?),?),max(max(?,?),?)),min(max(?,min(?,...
output:
982
result:
ok single line: '982'
Test #72:
score: 0
Accepted
time: 7ms
memory: 57980kb
input:
min(min(min(min(min(min(min(min(min(?,min(?,?)),min(max(?,?),min(?,min(?,?)))),min(min(min(min(?,?),?),?),min(min(?,?),min(?,?)))),min(min(min(?,?),min(?,min(min(?,?),?))),min(min(min(min(?,?),?),?),min(min(?,min(?,?)),?)))),min(min(min(min(?,max(?,?)),max(?,min(?,min(min(?,?),?)))),min(min(min(?,?)...
output:
399
result:
ok single line: '399'
Test #73:
score: 0
Accepted
time: 0ms
memory: 58388kb
input:
max(max(max(max(max(max(max(max(max(max(?,?),max(max(?,?),?)),max(max(?,?),?)),max(max(?,max(?,?)),max(?,max(max(?,?),?)))),max(max(max(?,max(max(min(?,?),?),?)),max(?,max(?,?))),max(max(max(?,?),max(max(?,?),?)),max(max(?,max(?,?)),?)))),max(max(max(max(?,max(?,?)),max(?,max(?,max(?,?)))),min(max(m...
output:
420
result:
ok single line: '420'
Test #74:
score: 0
Accepted
time: 10ms
memory: 57704kb
input:
max(min(max(min(max(min(max(min(max(min(?,?),min(?,?)),max(min(?,?),?)),min(max(min(?,?),?),max(min(?,max(min(?,?),?)),min(?,?)))),max(min(max(min(max(?,?),?),?),max(min(max(?,?),?),?)),min(max(?,min(?,?)),max(min(?,max(?,?)),?)))),min(max(min(max(min(max(?,?),?),?),max(?,min(max(?,?),?))),min(max(?...
output:
954
result:
ok single line: '954'
Test #75:
score: 0
Accepted
time: 0ms
memory: 57164kb
input:
max(max(max(max(max(min(max(?,max(?,min(?,?))),?),min(min(?,max(max(?,?),?)),max(?,max(min(max(min(min(?,?),?),?),?),max(max(max(min(?,?),?),?),min(min(?,max(min(?,?),max(?,?))),min(min(?,max(min(max(?,?),min(?,min(max(max(max(?,min(?,?)),min(?,?)),max(max(?,max(max(min(?,min(?,min(?,?))),max(min(mi...
output:
993
result:
ok single line: '993'
Test #76:
score: 0
Accepted
time: 0ms
memory: 57256kb
input:
min(min(?,?),min(min(max(min(?,?),min(?,?)),min(min(?,max(max(max(?,?),?),max(max(min(?,?),min(max(?,max(?,?)),max(max(?,max(max(max(?,max(max(max(min(min(?,?),min(?,max(?,?))),min(max(min(max(?,?),?),?),max(min(max(min(?,?),?),max(?,min(min(min(?,?),min(?,?)),min(max(max(max(?,?),min(?,?)),?),max(m...
output:
993
result:
ok single line: '993'
Test #77:
score: 0
Accepted
time: 7ms
memory: 57060kb
input:
min(min(min(min(?,?),min(min(min(?,min(?,?)),?),max(min(max(min(?,?),?),min(?,?)),min(min(?,?),min(min(min(min(min(?,?),?),min(min(min(min(?,min(?,?)),min(min(min(?,?),min(max(?,?),?)),min(min(max(min(?,?),?),min(min(min(min(min(min(min(min(?,?),?),?),min(min(?,min(max(min(min(min(?,min(min(?,?),min...
output:
987
result:
ok single line: '987'
Test #78:
score: 0
Accepted
time: 14ms
memory: 58704kb
input:
max(max(max(max(max(max(max(?,?),max(?,?)),max(max(max(?,?),?),max(max(max(min(?,?),?),?),max(max(max(max(?,?),?),max(max(max(max(max(max(max(?,max(?,?)),max(max(max(max(?,max(?,?)),max(max(?,max(max(?,max(?,?)),max(max(max(min(max(min(max(?,?),?),?),?),max(max(max(?,max(max(max(min(min(?,max(max(ma...
output:
912
result:
ok single line: '912'
Test #79:
score: 0
Accepted
time: 3ms
memory: 58532kb
input:
max(?,min(max(min(?,?),?),max(min(max(min(?,max(?,?)),?),?),min(max(?,?),max(min(max(?,min(max(?,?),?)),?),min(max(min(max(min(max(min(max(min(?,?),?),max(?,min(max(?,min(max(?,?),max(?,?))),max(min(?,max(?,min(?,max(?,?)))),min(max(min(?,?),min(?,?)),max(min(?,max(?,min(?,?))),min(max(min(?,max(?,?...
output:
998
result:
ok single line: '998'
Test #80:
score: 0
Accepted
time: 4ms
memory: 58380kb
input:
max(min(min(min(max(?,min(min(?,?),max(?,?))),min(min(?,?),?)),max(?,max(max(min(max(?,?),?),min(max(?,?),?)),min(?,min(max(?,?),max(max(?,?),min(?,?))))))),max(?,max(min(min(max(max(max(?,min(min(?,min(?,?)),?)),max(max(max(min(?,min(?,?)),max(?,?)),?),max(max(max(?,?),?),max(?,?)))),min(min(max(?,...
output:
991
result:
ok single line: '991'
Test #81:
score: 0
Accepted
time: 0ms
memory: 57116kb
input:
max(max(min(max(max(max(max(max(?,?),?),max(?,max(?,max(?,?)))),max(max(?,max(?,?)),?)),min(max(min(min(?,?),?),max(max(max(max(max(?,max(?,?)),?),max(?,?)),max(min(?,max(?,?)),?)),max(max(max(?,?),?),max(max(?,min(?,?)),max(?,max(?,?)))))),?)),max(max(min(min(max(min(max(min(min(?,max(max(?,?),min(...
output:
984
result:
ok single line: '984'
Test #82:
score: 0
Accepted
time: 4ms
memory: 58492kb
input:
min(max(min(min(min(min(min(min(?,?),min(?,min(?,?))),min(?,min(max(?,?),?))),min(min(min(min(min(?,min(?,min(?,?))),min(min(min(min(?,?),min(?,?)),min(?,min(?,?))),min(max(min(min(?,?),min(?,?)),min(min(min(?,?),?),?)),max(min(min(min(min(?,min(?,?)),max(min(min(?,?),max(?,?)),min(?,?))),min(?,?)),...
output:
884
result:
ok single line: '884'
Test #83:
score: 0
Accepted
time: 7ms
memory: 56992kb
input:
max(min(max(max(max(max(max(max(?,?),?),?),max(max(?,max(?,?)),?)),max(max(?,max(min(max(?,max(max(?,?),?)),max(max(max(max(?,max(?,max(?,max(?,?)))),max(max(?,max(?,?)),max(?,max(max(max(?,?),max(?,max(?,?))),max(?,max(?,?)))))),min(max(?,?),max(?,?))),max(min(max(max(max(?,?),?),max(min(?,?),max(?...
output:
548
result:
ok single line: '548'
Test #84:
score: 0
Accepted
time: 0ms
memory: 58152kb
input:
min(max(min(max(min(max(min(max(?,min(max(?,?),?)),max(min(max(min(max(min(?,max(min(?,max(?,?)),?)),min(?,max(?,min(?,?)))),max(min(?,max(min(?,?),min(max(?,?),max(?,min(max(min(?,max(?,?)),min(?,?)),?))))),min(?,?))),min(?,max(?,?))),max(min(?,?),?)),min(max(min(max(?,?),max(?,min(?,?))),?),?))),m...
output:
987
result:
ok single line: '987'
Test #85:
score: 0
Accepted
time: 11ms
memory: 58756kb
input:
max(?,max(?,min(?,max(max(?,max(?,max(?,min(?,max(max(min(?,min(min(?,max(min(?,max(?,max(?,max(?,min(?,max(?,max(?,min(?,min(min(max(?,max(min(?,min(max(?,min(max(?,min(?,max(max(?,max(max(max(?,max(?,min(max(?,max(?,max(min(min(min(max(max(?,max(max(max(?,max(?,max(min(max(min(?,max(max(?,max(max(...
output:
998
result:
ok single line: '998'
Test #86:
score: 0
Accepted
time: 11ms
memory: 57548kb
input:
max(min(?,min(?,min(min(?,min(?,min(max(?,min(?,min(?,max(min(?,min(min(?,max(max(min(?,min(?,min(?,max(min(max(max(max(?,max(?,min(?,max(min(?,min(max(max(?,min(?,min(?,min(?,min(?,min(?,max(?,max(?,max(?,max(?,max(?,max(max(?,min(?,min(max(?,max(min(min(max(min(?,min(max(min(?,max(min(min(max(?,mi...
output:
999
result:
ok single line: '999'
Test #87:
score: 0
Accepted
time: 0ms
memory: 57712kb
input:
min(?,min(min(min(?,min(min(min(min(min(min(?,min(?,min(?,min(?,min(?,min(?,min(?,min(min(?,min(?,min(?,min(min(min(min(min(min(max(?,max(?,min(min(?,min(?,min(min(?,min(min(min(?,min(min(?,min(?,min(min(min(?,min(?,min(min(min(?,min(?,min(?,min(min(min(min(?,max(?,min(min(min(max(?,min(min(?,min(?,...
output:
974
result:
ok single line: '974'
Test #88:
score: 0
Accepted
time: 3ms
memory: 58140kb
input:
min(max(max(max(max(min(?,max(max(?,max(?,max(?,max(max(?,max(max(?,max(?,max(?,max(?,max(?,max(?,max(min(?,max(min(max(?,max(max(min(?,max(max(max(max(?,max(?,max(max(?,max(?,max(max(?,max(max(max(?,max(max(max(?,max(max(max(?,max(?,max(?,max(max(?,max(max(?,max(max(?,max(max(?,max(max(?,max(max(ma...
output:
999
result:
ok single line: '999'
Test #89:
score: 0
Accepted
time: 0ms
memory: 58400kb
input:
min(?,max(min(?,max(min(?,max(?,min(max(?,min(?,max(min(max(min(max(min(max(?,min(max(?,min(max(min(?,max(?,min(?,max(min(max(min(?,max(?,min(?,max(?,min(max(?,min(max(?,min(?,max(?,min(max(?,min(?,max(min(?,max(?,min(?,max(min(max(min(max(?,min(?,max(?,min(max(min(max(min(max(min(?,max(?,min(?,max(...
output:
999
result:
ok single line: '999'
Test #90:
score: 0
Accepted
time: 6ms
memory: 56860kb
input:
min(min(min(min(min(min(min(?,?),min(?,min(?,?))),min(min(?,min(?,?)),min(min(?,?),min(min(?,?),?)))),min(min(min(min(?,?),?),min(?,min(?,?))),min(min(min(?,min(min(?,?),?)),min(min(min(min(?,?),min(?,min(min(?,?),min(min(?,?),?)))),min(?,?)),min(?,min(?,?)))),min(?,min(?,?))))),min(min(min(min(min(...
output:
1
result:
ok single line: '1'
Test #91:
score: 0
Accepted
time: 5ms
memory: 57616kb
input:
max(max(max(max(max(max(?,?),?),max(max(?,?),max(max(max(?,?),?),?))),max(?,max(?,max(?,max(max(?,?),?))))),max(max(max(max(?,max(?,?)),max(max(max(max(max(?,?),?),max(?,max(?,max(?,?)))),max(?,?)),max(?,max(?,?)))),max(max(max(max(?,max(max(?,?),max(?,?))),max(max(?,max(max(?,?),?)),?)),max(max(max...
output:
1
result:
ok single line: '1'
Test #92:
score: 0
Accepted
time: 7ms
memory: 57520kb
input:
max(max(?,min(?,max(max(max(?,min(?,min(?,max(?,?)))),min(min(?,min(?,min(?,?))),min(min(?,?),?))),?))),max(min(max(max(min(min(?,?),max(?,?)),max(?,max(min(?,min(?,?)),max(?,min(min(?,max(?,?)),?))))),min(max(min(max(?,?),?),?),min(?,max(max(min(?,max(min(?,?),max(max(?,?),?))),max(min(?,min(?,?)),...
output:
992
result:
ok single line: '992'
Test #93:
score: 0
Accepted
time: 7ms
memory: 57296kb
input:
min(min(max(max(min(min(min(max(?,?),max(?,?)),max(?,?)),min(min(max(max(min(?,?),?),min(?,?)),max(?,min(?,?))),min(max(?,max(?,?)),min(?,?)))),min(max(min(min(?,?),max(max(min(max(?,?),min(min(max(?,max(?,?)),?),min(min(min(min(?,?),min(?,?)),?),min(max(?,?),max(?,max(max(min(max(?,?),?),min(?,?)),...
output:
992
result:
ok single line: '992'
Test #94:
score: 0
Accepted
time: 9ms
memory: 57396kb
input:
max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...
output:
999
result:
ok single line: '999'
Test #95:
score: 0
Accepted
time: 7ms
memory: 58388kb
input:
max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...
output:
999
result:
ok single line: '999'
Test #96:
score: 0
Accepted
time: 3ms
memory: 56988kb
input:
max(min(min(max(min(min(max(max(min(?,?),min(?,?)),min(min(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),min(?,?)))),max(min(max(min(?,?),max(?,?)),max(min(?,?),min(?,?))),max(max(max(?,?),min(?,?)),max(max(?,?),max(?,?))))),min(max(max(max(max(?,?),min(?,?)),min(min(?,?),min(?,?))),min(ma...
output:
497
result:
ok single line: '497'
Test #97:
score: 0
Accepted
time: 4ms
memory: 56840kb
input:
min(min(min(min(min(min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?)))),min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))))),min(min(min(min(max(?,?),min(?,?)),min(max(?,?),min(?,?))),min(ma...
output:
133
result:
ok single line: '133'
Test #98:
score: 0
Accepted
time: 8ms
memory: 57480kb
input:
max(min(max(min(max(min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?)))),min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))))),max(min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(mi...
output:
466
result:
ok single line: '466'
Test #99:
score: 0
Accepted
time: 4ms
memory: 57772kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Subtask #5:
score: 34
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Test #100:
score: 34
Accepted
time: 184ms
memory: 137748kb
input:
min(max(max(min(min(min(max(max(min(min(max(min(min(min(max(max(min(max(max(min(?,?),?),min(?,min(min(?,?),?))),max(max(max(?,?),?),max(min(?,?),?))),max(max(max(max(?,?),min(?,?)),max(?,min(max(?,?),?))),max(max(max(?,min(?,?)),min(?,?)),max(?,min(?,?))))),min(max(min(min(max(?,max(?,?)),?),min(?,?...
output:
999923
result:
ok single line: '999923'
Test #101:
score: 0
Accepted
time: 178ms
memory: 137580kb
input:
max(max(min(min(min(min(max(max(min(min(max(min(max(min(min(max(max(max(min(?,?),max(max(?,?),max(?,?))),max(min(max(?,?),?),max(?,max(max(?,?),min(?,?))))),max(max(max(max(?,?),?),min(min(?,?),min(min(?,?),?))),min(min(max(?,?),max(?,?)),min(max(?,?),min(?,?))))),min(max(max(min(min(?,max(?,?)),?),...
output:
999801
result:
ok single line: '999801'
Test #102:
score: 0
Accepted
time: 187ms
memory: 137316kb
input:
max(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(max(min(min(?,?),?),min(min(?,min(?,min(?,?))),min(?,?))),min(min(?,min(?,?)),min(min(?,?),min(?,?)))),min(min(min(?,?),min(min(?,?),min(?,?))),min(min(?,min(min(?,?),min(?,?))),max(min(min(?,?),?),?)))),min(min(min(min(min(?,?),min...
output:
848294
result:
ok single line: '848294'
Test #103:
score: 0
Accepted
time: 160ms
memory: 137224kb
input:
max(max(max(max(max(max(max(max(max(max(max(min(min(max(max(max(max(max(max(?,max(?,max(?,max(?,?)))),max(max(?,?),?)),max(max(max(?,?),max(?,?)),max(?,?))),max(max(max(max(?,?),?),min(?,max(?,?))),max(max(max(?,?),max(?,?)),max(max(max(?,?),?),max(?,?))))),max(max(min(min(max(?,?),max(?,?)),min(?,m...
output:
717575
result:
ok single line: '717575'
Test #104:
score: 0
Accepted
time: 163ms
memory: 138272kb
input:
max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(?,?),max(?,min(max(?,?),?))),min(max(?,min(?,?)),max(min(max(?,?),?),min(?,?)))),max(min(max(?,min(?,?)),max(min(?,max(?,?)),min(?,?))),min(max(?,min(max(?,?),max(?,?))),max(min(?,?),min(?,?))))),min(max(min(max(?,min(?,?)),...
output:
998497
result:
ok single line: '998497'
Test #105:
score: 0
Accepted
time: 191ms
memory: 167016kb
input:
min(?,min(?,min(min(max(max(min(?,?),max(?,?)),max(max(?,max(?,max(?,?))),min(min(?,max(min(?,?),min(?,?))),min(max(max(min(min(min(?,?),?),?),min(max(?,?),max(min(?,max(max(?,?),min(?,max(min(?,min(min(min(min(?,?),?),min(?,?)),max(min(max(min(min(?,max(?,max(?,?))),min(max(min(?,min(?,?)),max(max(...
output:
999993
result:
ok single line: '999993'
Test #106:
score: 0
Accepted
time: 181ms
memory: 166328kb
input:
max(min(?,max(?,max(?,?))),min(?,max(max(max(min(?,?),?),min(?,?)),max(max(max(?,?),max(max(max(?,?),min(min(min(min(min(?,?),?),min(?,?)),max(max(max(?,?),?),max(min(min(?,?),min(max(?,?),?)),max(min(min(min(min(?,min(?,?)),?),min(max(?,?),max(max(max(?,min(?,max(?,?))),max(min(?,?),max(?,max(max(m...
output:
999998
result:
ok single line: '999998'
Test #107:
score: 0
Accepted
time: 179ms
memory: 166536kb
input:
min(?,max(?,min(min(min(min(max(?,min(max(?,min(min(min(?,min(?,?)),?),min(min(?,min(min(min(min(?,?),max(?,?)),min(min(min(?,min(?,min(?,min(max(min(?,?),min(?,min(?,?))),max(min(?,min(min(?,min(?,min(min(max(?,?),min(min(min(min(min(?,?),min(?,?)),min(min(?,min(min(min(min(max(?,?),?),?),min(min(m...
output:
999999
result:
ok single line: '999999'
Test #108:
score: 0
Accepted
time: 180ms
memory: 166376kb
input:
max(max(max(?,?),max(?,max(?,max(max(max(max(max(max(max(?,?),?),?),max(max(max(max(max(max(?,max(?,?)),max(?,?)),max(max(min(max(max(?,max(?,?)),?),max(?,max(max(min(max(?,?),?),max(?,?)),max(max(?,max(max(max(?,?),?),?)),max(max(max(max(max(?,max(?,?)),?),max(max(max(max(?,?),max(max(min(max(?,?),...
output:
999957
result:
ok single line: '999957'
Test #109:
score: 0
Accepted
time: 167ms
memory: 164356kb
input:
max(min(?,?),min(max(?,min(?,?)),max(min(?,?),min(max(min(max(min(?,?),?),max(min(max(?,?),?),min(max(min(max(min(max(?,?),?),min(?,?)),max(min(?,?),min(max(min(max(?,min(?,?)),max(?,min(max(min(max(min(?,max(?,?)),?),?),min(max(min(max(min(max(min(?,?),min(?,max(?,?))),max(min(max(?,?),max(?,min(ma...
output:
999997
result:
ok single line: '999997'
Test #110:
score: 0
Accepted
time: 166ms
memory: 137260kb
input:
min(max(max(min(max(min(min(max(max(min(max(min(max(?,max(?,?)),max(max(min(min(min(max(?,?),max(?,max(?,?))),max(?,?)),max(max(min(max(?,?),?),min(?,?)),?)),max(max(max(?,?),max(max(min(?,?),max(max(?,?),max(?,?))),min(?,?))),min(min(?,min(min(?,?),?)),?))),max(max(max(min(?,?),?),min(?,max(?,?))),...
output:
999968
result:
ok single line: '999968'
Test #111:
score: 0
Accepted
time: 169ms
memory: 137064kb
input:
max(max(max(max(min(min(min(max(max(max(min(max(min(max(?,?),max(max(?,?),min(?,?))),?),min(max(min(max(min(max(min(max(min(?,min(?,?)),?),max(?,max(?,max(?,?)))),min(max(?,?),?)),max(?,?)),min(?,max(?,?))),min(max(max(min(max(min(min(min(?,min(?,?)),min(?,max(?,?))),?),max(max(max(?,?),?),min(?,?))...
output:
999907
result:
ok single line: '999907'
Test #112:
score: 0
Accepted
time: 148ms
memory: 138856kb
input:
max(min(min(min(min(max(min(min(min(min(min(min(min(min(?,min(max(?,?),?)),min(?,min(?,?))),?),min(?,?)),min(min(min(?,min(min(?,?),min(min(min(?,?),min(?,?)),?))),?),min(min(?,?),min(?,?)))),min(min(min(min(min(min(min(?,min(min(min(?,?),min(?,?)),?)),min(?,?)),max(?,?)),max(min(?,min(?,min(min(?,?...
output:
997477
result:
ok single line: '997477'
Test #113:
score: 0
Accepted
time: 181ms
memory: 137244kb
input:
max(max(max(max(max(max(max(max(max(max(max(max(max(max(max(?,?),max(max(max(max(max(max(max(max(max(?,?),max(max(min(?,?),?),max(max(max(?,?),?),?))),max(min(?,?),max(?,max(?,?)))),max(min(?,min(max(?,max(?,max(max(?,?),max(max(?,?),?)))),max(?,max(?,?)))),max(max(max(max(?,?),max(max(?,?),max(max(...
output:
892729
result:
ok single line: '892729'
Test #114:
score: 0
Accepted
time: 189ms
memory: 137248kb
input:
max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(?,?),max(?,?)),min(max(?,min(?,max(?,?))),?)),max(min(max(?,min(max(?,?),max(?,?))),?),?)),min(max(min(max(?,?),?),min(?,max(?,min(?,?)))),max(min(max(min(?,?),min(max(?,?),?)),max(?,?)),?))),max(min(max(min(?,max(min(?,?),min(?,max...
output:
999903
result:
ok single line: '999903'
Test #115:
score: 0
Accepted
time: 206ms
memory: 220672kb
input:
max(max(max(?,max(?,min(max(min(min(min(min(?,max(max(min(?,min(?,max(?,min(min(max(?,max(min(?,max(max(?,min(?,min(?,min(min(min(min(?,max(?,min(min(max(min(?,max(?,max(?,min(min(?,max(?,max(?,min(max(?,min(min(?,max(max(max(max(?,max(?,max(?,min(?,max(?,min(min(min(?,max(max(?,max(max(?,max(?,max(...
output:
999996
result:
ok single line: '999996'
Test #116:
score: 0
Accepted
time: 205ms
memory: 222544kb
input:
max(max(?,min(min(min(?,max(max(max(?,max(?,max(max(?,max(max(min(max(max(?,min(max(max(?,max(max(?,min(?,min(?,max(?,min(?,min(?,min(?,min(?,max(min(?,min(?,max(?,min(max(?,min(min(?,min(min(?,min(max(max(?,max(?,max(?,min(min(?,max(max(?,min(min(min(?,max(?,max(?,max(min(?,max(min(?,min(?,min(max(...
output:
999998
result:
ok single line: '999998'
Test #117:
score: 0
Accepted
time: 210ms
memory: 221224kb
input:
min(min(min(?,min(?,min(min(min(?,min(min(min(min(?,min(?,max(?,min(min(min(min(?,min(min(min(min(?,min(?,min(?,min(min(min(?,min(?,min(?,min(?,min(max(?,min(?,min(?,max(min(min(min(min(min(min(?,min(min(min(?,min(?,max(?,min(?,min(?,min(min(?,min(min(?,min(?,max(?,min(min(min(?,min(?,min(?,min(?,ma...
output:
999988
result:
ok single line: '999988'
Test #118:
score: 0
Accepted
time: 186ms
memory: 220572kb
input:
max(max(?,max(max(max(?,max(?,max(?,max(?,max(max(?,max(?,max(max(?,max(max(max(?,max(?,max(max(max(?,max(?,max(min(?,max(max(?,max(?,max(?,max(?,max(min(?,max(?,max(?,max(?,max(max(?,max(?,max(?,max(?,max(max(max(min(max(max(?,max(?,min(?,max(?,max(?,max(max(?,max(?,max(?,max(max(max(max(max(max(ma...
output:
999978
result:
ok single line: '999978'
Test #119:
score: 0
Accepted
time: 179ms
memory: 220620kb
input:
min(?,max(min(max(min(max(min(max(min(max(?,min(max(min(max(?,min(max(min(?,max(min(?,max(?,min(?,max(min(max(?,min(max(?,min(?,max(?,min(?,max(min(?,max(?,min(?,max(?,min(?,max(?,min(max(min(max(min(max(min(max(min(max(?,min(max(?,min(?,max(?,min(max(min(max(min(max(min(max(?,min(?,max(?,min(?,max(...
output:
999999
result:
ok single line: '999999'
Test #120:
score: 0
Accepted
time: 178ms
memory: 137816kb
input:
min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(?,min(?,min(min(?,min(?,?)),min(?,?)))),min(?,min(min(?,?),min(?,?)))),min(min(min(min(?,?),min(min(?,?),?)),?),min(?,?))),min(min(min(min(min(min(min(min(?,?),min(min(min(?,?),?),?)),min(?,?)),min(?,?)),min(?,min(min(?,?),min(?,?)))),m...
output:
1
result:
ok single line: '1'
Test #121:
score: 0
Accepted
time: 159ms
memory: 137064kb
input:
max(max(max(max(max(max(max(max(max(max(max(max(max(max(max(max(?,?),?),max(max(max(?,?),max(?,?)),?)),?),max(max(?,max(?,max(?,?))),max(?,max(?,max(?,?))))),max(max(max(?,max(max(?,?),max(max(max(?,?),?),max(?,max(max(?,?),?))))),max(?,max(?,?))),?)),max(max(max(max(max(max(max(max(max(?,?),?),?),m...
output:
1
result:
ok single line: '1'
Test #122:
score: 0
Accepted
time: 177ms
memory: 137472kb
input:
max(min(min(max(max(max(max(max(min(min(max(min(max(min(?,?),?),min(max(max(min(max(max(?,min(?,?)),min(min(min(?,min(?,?)),max(?,?)),min(?,min(max(max(?,?),min(?,?)),max(min(?,?),min(max(?,?),?)))))),min(min(min(min(?,?),min(min(max(max(?,?),max(min(max(?,?),?),max(min(max(?,max(?,?)),?),min(min(mi...
output:
999924
result:
ok single line: '999924'
Test #123:
score: 0
Accepted
time: 169ms
memory: 137488kb
input:
max(min(max(max(min(min(max(min(min(min(max(min(min(min(min(?,?),?),min(min(max(?,?),min(max(max(?,?),max(?,?)),min(?,?))),max(min(min(?,?),max(?,?)),max(?,max(?,max(?,max(?,?))))))),max(max(max(min(min(min(?,min(max(min(max(?,?),?),max(?,?)),min(max(?,?),?))),?),max(max(?,min(?,?)),min(?,?))),?),mi...
output:
999954
result:
ok single line: '999954'
Test #124:
score: 0
Accepted
time: 157ms
memory: 179876kb
input:
min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,...
output:
999999
result:
ok single line: '999999'
Test #125:
score: 0
Accepted
time: 167ms
memory: 179352kb
input:
max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...
output:
999999
result:
ok single line: '999999'
Test #126:
score: 0
Accepted
time: 158ms
memory: 181668kb
input:
max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...
output:
999999
result:
ok single line: '999999'
Test #127:
score: 0
Accepted
time: 139ms
memory: 182128kb
input:
min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,...
output:
999999
result:
ok single line: '999999'
Test #128:
score: 0
Accepted
time: 84ms
memory: 104072kb
input:
min(max(max(max(min(max(max(max(max(min(max(max(max(max(max(min(max(max(max(?,?),min(?,?)),min(max(?,?),min(?,?))),max(max(min(?,?),min(?,?)),min(min(?,?),min(?,?)))),max(min(min(min(?,?),min(?,?)),max(max(?,?),min(?,?))),min(max(min(?,?),max(?,?)),min(max(?,?),min(?,?))))),min(min(min(min(min(?,?),...
output:
524234
result:
ok single line: '524234'
Test #129:
score: 0
Accepted
time: 87ms
memory: 101780kb
input:
min(max(min(min(min(min(min(max(min(min(min(min(min(min(min(min(min(min(min(?,?),min(?,?)),max(min(?,?),min(?,?))),min(max(min(?,?),min(?,?)),min(min(?,?),min(?,?)))),min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),max(min(?,?),min(?,?))))),min(min(min(min(min(?,?),...
output:
385768
result:
ok single line: '385768'
Test #130:
score: 0
Accepted
time: 91ms
memory: 103948kb
input:
min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?))),min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?)))),max(min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?))),min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?))))),min(max(min(max(min(?,?),...
output:
522754
result:
ok single line: '522754'
Test #131:
score: 0
Accepted
time: 0ms
memory: 58432kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Extra Test:
score: 0
Extra Test Passed