QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#42392 | #4400. Homework | catthomas | 100 ✓ | 124ms | 163024kb | C++ | 2.0kb | 2022-08-02 13:03:37 | 2022-08-02 13:03:38 |
Judging History
answer
#include<bits/stdc++.h>
#define fir first
#define sec second
#define mkp make_pair
using namespace std;
typedef pair<int,int> PII;
const int maxn=1000025;
int n,m,i,j,t,k,s,tot,lim,nrt,ch[maxn<<1][2],val[maxn<<1];
int stk[maxn<<1],tp;
PII zer[maxn<<1],one[maxn<<1],qj[maxn<<1];
char str[maxn*7];
int a[maxn];
inline void add(int l,int r){a[l]++;a[r+1]--;}
void dfs1(int x)
{
if (val[x]==-1)
{
zer[x]=mkp(0,0);
one[x]=mkp(1,1);
return;
}
int ls=ch[x][0],rs=ch[x][1];
//printf("%d sons:%d %d\n",x,ls,rs);
dfs1(ls);dfs1(rs);
if (val[x]==0)//&
{
zer[x]=mkp(0,max(zer[ls].sec+one[rs].sec,zer[rs].sec+one[ls].sec));
one[x]=mkp(one[ls].fir+one[rs].fir,one[ls].sec+one[rs].sec);
}
else
{
zer[x]=mkp(0,zer[ls].sec+zer[rs].sec);
one[x]=mkp(min(one[ls].fir,one[rs].fir),one[ls].sec+one[rs].sec);
}
}
void dfs2(int x)
{
if (val[x]==-1)
{add(qj[x].fir+1,qj[x].sec+1);return;}
int ls=ch[x][0],rs=ch[x][1];
if (val[x]==0)//&
{
qj[ls]=mkp(qj[x].fir+one[rs].fir,qj[x].sec+one[rs].sec);
qj[rs]=mkp(qj[x].fir+one[ls].fir,qj[x].sec+one[ls].sec);
}
else
{
qj[ls]=mkp(qj[x].fir+zer[rs].fir,qj[x].sec+zer[rs].sec);
qj[rs]=mkp(qj[x].fir+zer[ls].fir,qj[x].sec+zer[ls].sec);
}
dfs2(ls);dfs2(rs);
}
int main()
{
scanf("%s",str+1);m=strlen(str+1);
for (i=1;i<=m;++i)
{
if (str[i]=='m')
{
//min(
stk[++tp]=++tot;
if (str[i+1]=='i') val[tot]=1;//|
else val[tot]=0;//&
if (tp>1)
{
t=(ch[stk[tp-1]][0]>0);
ch[stk[tp-1]][t]=tot;
//printf("sd %d %d\n",stk[tp-1],tot);
}
i+=3;
}
else if (str[i]=='?')
{
++lim;val[++tot]=-1;
t=(ch[stk[tp]][0]>0);
ch[stk[tp]][t]=tot;
//printf("sds %d %d\n",stk[tp],tot);
}
else if (str[i]==',')
{
}
else if (str[i]==')')
{
nrt=stk[tp];--tp;
}
}
dfs1(nrt);
qj[nrt]=mkp(0,0);
dfs2(nrt);
s=0;int ans=0;
for (i=1;i<=lim;++i)
{
s+=a[i];
if (s>0) ++ans;
}
printf("%d\n",ans);
return 0;
}
详细
Subtask #1:
score: 10
Accepted
Test #1:
score: 10
Accepted
time: 0ms
memory: 3676kb
input:
min(max(?,max(min(?,min(?,?)),?)),min(max(?,?),max(?,?)))
output:
6
result:
ok single line: '6'
Test #2:
score: 0
Accepted
time: 2ms
memory: 3848kb
input:
max(max(?,min(max(?,min(?,?)),?)),max(max(?,?),max(?,?)))
output:
4
result:
ok single line: '4'
Test #3:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
min(min(min(?,min(?,?)),min(?,?)),min(?,min(min(?,?),?)))
output:
1
result:
ok single line: '1'
Test #4:
score: 0
Accepted
time: 2ms
memory: 3720kb
input:
max(max(max(?,?),?),max(max(?,?),min(max(?,?),max(?,?))))
output:
3
result:
ok single line: '3'
Test #5:
score: 0
Accepted
time: 2ms
memory: 3816kb
input:
min(max(?,min(?,?)),max(min(max(?,?),?),min(max(?,?),?)))
output:
6
result:
ok single line: '6'
Test #6:
score: 0
Accepted
time: 2ms
memory: 3788kb
input:
max(max(?,min(max(?,?),?)),max(max(max(?,?),min(?,?)),?))
output:
4
result:
ok single line: '4'
Test #7:
score: 0
Accepted
time: 2ms
memory: 3864kb
input:
min(min(max(min(?,?),?),?),min(?,max(max(?,?),min(?,?))))
output:
6
result:
ok single line: '6'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
min(min(min(min(?,?),max(?,?)),min(min(?,?),min(?,?))),?)
output:
2
result:
ok single line: '2'
Test #9:
score: 0
Accepted
time: 2ms
memory: 3824kb
input:
max(max(?,?),max(max(max(?,?),max(?,?)),max(?,max(?,?))))
output:
1
result:
ok single line: '1'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
min(max(min(?,?),?),max(min(?,max(min(max(?,?),?),?)),?))
output:
7
result:
ok single line: '7'
Test #11:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
max(?,min(max(?,min(?,?)),max(max(?,?),min(?,max(?,?)))))
output:
7
result:
ok single line: '7'
Test #12:
score: 0
Accepted
time: 2ms
memory: 3736kb
input:
min(min(max(?,?),?),max(max(?,min(max(?,?),?)),max(?,?)))
output:
7
result:
ok single line: '7'
Test #13:
score: 0
Accepted
time: 2ms
memory: 3788kb
input:
min(min(min(?,?),min(?,max(?,?))),min(?,min(?,min(?,?))))
output:
2
result:
ok single line: '2'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
min(max(max(?,?),max(?,max(max(?,?),max(?,?)))),max(?,?))
output:
7
result:
ok single line: '7'
Test #15:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
max(min(?,?),min(max(min(?,?),min(?,max(?,min(?,?)))),?))
output:
7
result:
ok single line: '7'
Test #16:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
min(?,min(?,max(max(max(min(?,min(min(?,?),?)),?),?),?)))
output:
7
result:
ok single line: '7'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
min(?,min(?,max(?,max(min(min(min(?,min(?,?)),?),?),?))))
output:
7
result:
ok single line: '7'
Test #18:
score: 0
Accepted
time: 1ms
memory: 3784kb
input:
min(?,min(min(min(?,min(?,min(?,min(min(?,?),?)))),?),?))
output:
1
result:
ok single line: '1'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
max(max(max(?,max(?,max(?,max(?,max(max(?,?),?))))),?),?)
output:
1
result:
ok single line: '1'
Test #20:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
min(max(?,min(max(min(max(min(?,max(?,?)),?),?),?),?)),?)
output:
8
result:
ok single line: '8'
Test #21:
score: 0
Accepted
time: 2ms
memory: 3820kb
input:
min(min(?,?),min(min(min(?,?),min(min(?,min(?,?)),?)),?))
output:
1
result:
ok single line: '1'
Test #22:
score: 0
Accepted
time: 2ms
memory: 3736kb
input:
max(max(max(?,?),max(max(?,?),?)),max(max(?,?),max(?,?)))
output:
1
result:
ok single line: '1'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
min(max(?,min(max(?,?),?)),min(?,min(?,min(?,max(?,?)))))
output:
5
result:
ok single line: '5'
Test #24:
score: 0
Accepted
time: 2ms
memory: 3876kb
input:
min(?,max(min(min(max(?,?),?),max(?,?)),min(min(?,?),?)))
output:
6
result:
ok single line: '6'
Test #25:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
min(min(min(?,?),max(?,?)),min(min(?,?),min(?,?)))
output:
2
result:
ok single line: '2'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?)))
output:
1
result:
ok single line: '1'
Test #27:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?)))
output:
4
result:
ok single line: '4'
Test #28:
score: 0
Accepted
time: 2ms
memory: 3792kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Subtask #2:
score: 13
Accepted
Dependency #1:
100%
Accepted
Test #29:
score: 13
Accepted
time: 2ms
memory: 3812kb
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: 2ms
memory: 3792kb
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: 2ms
memory: 3812kb
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: 1ms
memory: 3748kb
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: 2ms
memory: 3752kb
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: 3ms
memory: 3788kb
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: 2ms
memory: 3840kb
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: 3880kb
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: 2ms
memory: 3736kb
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: 0ms
memory: 3800kb
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: 2ms
memory: 3844kb
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: 2ms
memory: 3752kb
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: 2ms
memory: 3880kb
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: 0ms
memory: 3808kb
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: 1ms
memory: 3840kb
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: 2ms
memory: 3804kb
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: 1ms
memory: 3880kb
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: 0ms
memory: 3804kb
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: 2ms
memory: 3864kb
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: 2ms
memory: 3736kb
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: 0ms
memory: 3804kb
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: 2ms
memory: 3804kb
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: 2ms
memory: 3864kb
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: 1ms
memory: 3808kb
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: 2ms
memory: 3808kb
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: 2ms
memory: 3816kb
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: 3812kb
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: 1ms
memory: 3808kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Subtask #3:
score: 13
Accepted
Test #57:
score: 13
Accepted
time: 95ms
memory: 159108kb
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: 89ms
memory: 159064kb
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: 106ms
memory: 162828kb
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: 111ms
memory: 162968kb
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: 95ms
memory: 163024kb
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: 91ms
memory: 162932kb
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: 108ms
memory: 162956kb
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: 108ms
memory: 162960kb
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: 111ms
memory: 162868kb
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: 88ms
memory: 162972kb
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: 80ms
memory: 162900kb
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: 75ms
memory: 162832kb
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: 2ms
memory: 3672kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Subtask #4:
score: 30
Accepted
Dependency #2:
100%
Accepted
Test #70:
score: 30
Accepted
time: 0ms
memory: 3752kb
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: 3808kb
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: 2ms
memory: 3880kb
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: 3884kb
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: 1ms
memory: 3808kb
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: 3840kb
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: 2ms
memory: 3980kb
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: 2ms
memory: 3840kb
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: 0ms
memory: 3912kb
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: 2ms
memory: 3840kb
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: 2ms
memory: 3792kb
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: 2ms
memory: 3820kb
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: 2ms
memory: 3748kb
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: 2ms
memory: 3888kb
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: 2ms
memory: 3912kb
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: 2ms
memory: 3956kb
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: 2ms
memory: 3864kb
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: 2ms
memory: 3888kb
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: 2ms
memory: 3968kb
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: 3952kb
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: 1ms
memory: 3892kb
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: 0ms
memory: 3884kb
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: 1ms
memory: 3856kb
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: 2ms
memory: 3860kb
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: 0ms
memory: 3972kb
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: 2ms
memory: 3920kb
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: 2ms
memory: 3828kb
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: 2ms
memory: 3864kb
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: 1ms
memory: 3784kb
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: 2ms
memory: 3780kb
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: 68ms
memory: 80868kb
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: 58ms
memory: 80932kb
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: 87ms
memory: 81004kb
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: 61ms
memory: 80948kb
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: 74ms
memory: 80880kb
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: 116ms
memory: 110412kb
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: 85ms
memory: 110464kb
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: 87ms
memory: 111552kb
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: 68ms
memory: 111508kb
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: 79ms
memory: 109720kb
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: 80ms
memory: 80940kb
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: 89ms
memory: 80912kb
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: 51ms
memory: 80972kb
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: 70ms
memory: 81024kb
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: 82ms
memory: 80988kb
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: 124ms
memory: 162960kb
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: 112ms
memory: 162924kb
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: 98ms
memory: 162888kb
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: 97ms
memory: 162948kb
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: 109ms
memory: 162952kb
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: 86ms
memory: 80936kb
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: 80ms
memory: 80872kb
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: 69ms
memory: 80840kb
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: 59ms
memory: 80948kb
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: 56ms
memory: 123872kb
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: 63ms
memory: 123900kb
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: 69ms
memory: 123928kb
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: 74ms
memory: 123904kb
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: 54ms
memory: 44264kb
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: 35ms
memory: 44348kb
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: 17ms
memory: 44256kb
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: 2ms
memory: 3812kb
input:
max(?,?)
output:
1
result:
ok single line: '1'
Extra Test:
score: 0
Extra Test Passed