QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#20178 | #2348. Bijection | AFewSuns# | AC ✓ | 6ms | 3780kb | C++20 | 2.1kb | 2022-02-14 22:10:26 | 2023-01-16 14:01:27 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
namespace my_std{
#define ll long long
#define bl bool
ll my_pow(ll a,ll b,ll mod){
ll res=1;
if(!b) return 1;
while(b){
if(b&1) res=(res*a)%mod;
a=(a*a)%mod;
b>>=1;
}
return res;
}
ll qpow(ll a,ll b){
ll res=1;
if(!b) return 1;
while(b){
if(b&1) res*=a;
a*=a;
b>>=1;
}
return res;
}
#define db double
#define pf printf
#define pc putchar
#define fr(i,x,y) for(register ll i=(x);i<=(y);i++)
#define pfr(i,x,y) for(register ll i=(x);i>=(y);i--)
#define go(u) for(ll i=head[u];i;i=e[i].nxt)
#define enter pc('\n')
#define space pc(' ')
#define fir first
#define sec second
#define MP make_pair
#define il inline
#define inf 8e18
#define random(x) rand()*rand()%(x)
#define inv(a,mod) my_pow((a),(mod-2),(mod))
il ll read(){
ll sum=0,f=1;
char ch=0;
while(!isdigit(ch)){
if(ch=='-') f=-1;
ch=getchar();
}
while(isdigit(ch)){
sum=sum*10+(ch^48);
ch=getchar();
}
return sum*f;
}
il void write(ll x){
if(x<0){
x=-x;
pc('-');
}
if(x>9) write(x/10);
pc(x%10+'0');
}
il void writeln(ll x){
write(x);
enter;
}
il void writesp(ll x){
write(x);
space;
}
}
using namespace my_std;
ll n,k,a[2020];
char s[660];
string opt;
void encode(){
n=read();
scanf("%s",s+1);
ll minn=inf,pos=0,now=0;
fr(i,1,2*n){
if(s[i]=='R') a[i]=1;
else a[i]=-1;
}
a[2*n+1]=-1;
fr(i,1,2*n+1){
now+=a[i];
if(minn>now){
minn=now;
pos=i;
}
}
fr(i,1,2*n+1) a[2*n+i+1]=a[i];
fr(i,1,2*n){
if(a[pos+i]==1) pf("(");
else pf(")");
}
enter;
fr(i,1,pos) if(a[i]==-1) k++;
write(k-1);
}
void decode(){
n=read();
scanf("%s",s+1);
k=read()+1;
fr(i,1,2*n){
if(s[i]=='(') a[i]=1;
else a[i]=-1;
}
a[2*n+1]=-1;
fr(i,1,2*n+1) a[2*n+i+1]=a[i];
ll pos=0;
pfr(i,4*n+2,1){
if(a[i]==-1){
k--;
if(k==-1){
pos=i;
break;
}
}
}
if(pos>(2*n+1)) pos-=2*n+1;
fr(i,1,2*n){
if(a[pos+i]==1) pf("R");
else pf("U");
}
}
int main(){
cin>>opt;
if(opt=="path") encode();
else decode();
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 2 RRUU
output:
(()) 2
input:
brackets 2 (()) 2
output:
RRUU
result:
ok correct!
Test #2:
score: 100
Accepted
time: 6ms
memory: 3636kb
input:
path 3 RUURRU
output:
(())() 1
input:
brackets 3 (())() 1
output:
RUURRU
result:
ok correct!
Test #3:
score: 100
Accepted
time: 4ms
memory: 3528kb
input:
path 1 RU
output:
() 1
input:
brackets 1 () 1
output:
RU
result:
ok correct!
Test #4:
score: 100
Accepted
time: 4ms
memory: 3716kb
input:
path 1 UR
output:
() 0
input:
brackets 1 () 0
output:
UR
result:
ok correct!
Test #5:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 2 RURU
output:
()() 2
input:
brackets 2 ()() 2
output:
RURU
result:
ok correct!
Test #6:
score: 100
Accepted
time: 6ms
memory: 3640kb
input:
path 2 RUUR
output:
()() 1
input:
brackets 2 ()() 1
output:
RUUR
result:
ok correct!
Test #7:
score: 100
Accepted
time: 4ms
memory: 3588kb
input:
path 2 URRU
output:
(()) 0
input:
brackets 2 (()) 0
output:
URRU
result:
ok correct!
Test #8:
score: 100
Accepted
time: 4ms
memory: 3736kb
input:
path 2 URUR
output:
()() 0
input:
brackets 2 ()() 0
output:
URUR
result:
ok correct!
Test #9:
score: 100
Accepted
time: 4ms
memory: 3592kb
input:
path 2 UURR
output:
(()) 1
input:
brackets 2 (()) 1
output:
UURR
result:
ok correct!
Test #10:
score: 100
Accepted
time: 0ms
memory: 3624kb
input:
path 6 RRRRRRUUUUUU
output:
(((((()))))) 6
input:
brackets 6 (((((()))))) 6
output:
RRRRRRUUUUUU
result:
ok correct!
Test #11:
score: 100
Accepted
time: 2ms
memory: 3540kb
input:
path 5 UUUUURRRRR
output:
((((())))) 4
input:
brackets 5 ((((())))) 4
output:
UUUUURRRRR
result:
ok correct!
Test #12:
score: 100
Accepted
time: 4ms
memory: 3712kb
input:
path 5 RRUURUURRU
output:
(())(())() 3
input:
brackets 5 (())(())() 3
output:
RRUURUURRU
result:
ok correct!
Test #13:
score: 100
Accepted
time: 4ms
memory: 3616kb
input:
path 5 UUUUURRRRR
output:
((((())))) 4
input:
brackets 5 ((((())))) 4
output:
UUUUURRRRR
result:
ok correct!
Test #14:
score: 100
Accepted
time: 4ms
memory: 3636kb
input:
path 5 RURURURRUU
output:
()()()(()) 5
input:
brackets 5 ()()()(()) 5
output:
RURURURRUU
result:
ok correct!
Test #15:
score: 100
Accepted
time: 4ms
memory: 3768kb
input:
path 10 RRRRRRRRRRUUUUUUUUUU
output:
(((((((((()))))))))) 10
input:
brackets 10 (((((((((()))))))))) 10
output:
RRRRRRRRRRUUUUUUUUUU
result:
ok correct!
Test #16:
score: 100
Accepted
time: 4ms
memory: 3592kb
input:
path 13 UUUUUUUUUUUUURRRRRRRRRRRRR
output:
((((((((((((())))))))))))) 12
input:
brackets 13 ((((((((((((())))))))))))) 12
output:
UUUUUUUUUUUUURRRRRRRRRRRRR
result:
ok correct!
Test #17:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 13 RUURURRRUUURURUUURUURRRURR
output:
((()(()())()((()))()()))() 11
input:
brackets 13 ((()(()())()((()))()()))() 11
output:
RUURURRRUUURURUUURUURRRURR
result:
ok correct!
Test #18:
score: 100
Accepted
time: 0ms
memory: 3624kb
input:
path 13 URUUURURUUURUUURURURRRRRRR
output:
()()((((((())()))()()))()) 10
input:
brackets 13 ()()((((((())()))()()))()) 10
output:
URUUURURUUURUUURURURRRRRRR
result:
ok correct!
Test #19:
score: 100
Accepted
time: 4ms
memory: 3656kb
input:
path 10 RRRRRRRRURUURUUUUUUU
output:
(((((((()())())))))) 10
input:
brackets 10 (((((((()())())))))) 10
output:
RRRRRRRRURUURUUUUUUU
result:
ok correct!
Test #20:
score: 100
Accepted
time: 0ms
memory: 3512kb
input:
path 14 RRRRRRRRRRRRRRUUUUUUUUUUUUUU
output:
(((((((((((((()))))))))))))) 14
input:
brackets 14 (((((((((((((()))))))))))))) 14
output:
RRRRRRRRRRRRRRUUUUUUUUUUUUUU
result:
ok correct!
Test #21:
score: 100
Accepted
time: 4ms
memory: 3540kb
input:
path 16 UUUUUUUUUUUUUUUURRRRRRRRRRRRRRRR
output:
(((((((((((((((()))))))))))))))) 15
input:
brackets 16 (((((((((((((((()))))))))))))))) 15
output:
UUUUUUUUUUUUUUUURRRRRRRRRRRRRRRR
result:
ok correct!
Test #22:
score: 100
Accepted
time: 0ms
memory: 3576kb
input:
path 13 URURRRRURRUURURUUUUUURRRRU
output:
(((()))()(((()(())()())))) 11
input:
brackets 13 (((()))()(((()(())()())))) 11
output:
URURRRRURRUURURUUUUUURRRRU
result:
ok correct!
Test #23:
score: 100
Accepted
time: 4ms
memory: 3716kb
input:
path 14 UUUUUUUUURURRUUURURRRRRRRRRR
output:
()(((((((((())))))))))()(()) 12
input:
brackets 14 ()(((((((((())))))))))()(()) 12
output:
UUUUUUUUURURRUUURURRRRRRRRRR
result:
ok correct!
Test #24:
score: 100
Accepted
time: 4ms
memory: 3592kb
input:
path 11 RRRRURUURRRRUURURUUUUU
output:
(((()())(((())()())))) 11
input:
brackets 11 (((()())(((())()())))) 11
output:
RRRRURUURRRRUURURUUUUU
result:
ok correct!
Test #25:
score: 100
Accepted
time: 4ms
memory: 3576kb
input:
path 22 RRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUU
output:
(((((((((((((((((((((()))))))))))))))))))))) 22
input:
brackets 22 (((((((((((((((((((((()))))))))))))))))))))) 22
output:
RRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #26:
score: 100
Accepted
time: 4ms
memory: 3636kb
input:
path 22 UUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRR
output:
(((((((((((((((((((((()))))))))))))))))))))) 21
input:
brackets 22 (((((((((((((((((((((()))))))))))))))))))))) 21
output:
UUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #27:
score: 100
Accepted
time: 4ms
memory: 3580kb
input:
path 31 RURUUURUUURRRURRRURURURUURUURUUURRUURUURRRURRURURRURRRURUUURUR
output:
((()(()()(()((()()))()()()()))()))((()((()()()())())()))(())() 21
input:
brackets 31 ((()(()()(()((()()))()()()()))()))((()((()()()())())()))(())() 21
output:
RURUUURUUURRRURRRURURURUURUURUUURRUURUURRRURRURURRURRRURUUURUR
result:
ok correct!
Test #28:
score: 100
Accepted
time: 6ms
memory: 3660kb
input:
path 32 UUUUUUUUUUUURUUUURUUUUUUUUURRRUUUURRRURRUURRRRRRRRRRRRRRRRRRRRRR
output:
((()(())(((((((((((((((((((((()))))))))))))())))()))))))))((())) 28
input:
brackets 32 ((()(())(((((((((((((((((((((()))))))))))))())))()))))))))((())) 28
output:
UUUUUUUUUUUURUUUURUUUUUUUUURRRUUUURRRURRUURRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #29:
score: 100
Accepted
time: 4ms
memory: 3636kb
input:
path 29 RRRRRRRRRRRRRRRRRURRURRURURRRRRUURUUUUUUUURUUUUUUUUUUUUUUU
output:
((((((((((((((((()(()(()()((((())())))))))())))))))))))))) 29
input:
brackets 29 ((((((((((((((((()(()(()()((((())())))))))())))))))))))))) 29
output:
RRRRRRRRRRRRRRRRRURRURRURURRRRRUURUUUUUUUURUUUUUUUUUUUUUUU
result:
ok correct!
Test #30:
score: 100
Accepted
time: 4ms
memory: 3660kb
input:
path 53 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))) 53
input:
brackets 53 ((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))) 53
output:
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #31:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 59 UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 58
input:
brackets 59 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 58
output:
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #32:
score: 100
Accepted
time: 4ms
memory: 3632kb
input:
path 34 RRUURRRUURUUURUURRUUURURURRURRRUURURURRURUURURRURRUUURRRRRUUUURRUURU
output:
()()(()((())()()(()())()(()(()))((((())))(())())(())((())()))())(()) 11
input:
brackets 34 ()()(()((())()()(()())()(()(()))((((())))(())())(())((())()))())(()) 11
output:
RRUURRRUURUUURUURRUUURURURRURRRUURURURRURUURURRURRUUURRRRRUUUURRUURU
result:
ok correct!
Test #33:
score: 100
Accepted
time: 4ms
memory: 3636kb
input:
path 37 UUUUUUUUUUUUUUUUUUURURUUURUUUUUUUUURUUURRRRRRRURURRRRRRRRRRRRRRRRRRRRRRRRR
output:
((((((()()((((((((((((((((((((((((())))))))))))))))))))()()))()))))))))()) 34
input:
brackets 37 ((((((()()((((((((((((((((((((((((())))))))))))))))))))()()))()))))))))()) 34
output:
UUUUUUUUUUUUUUUUUUURURUUURUUUUUUUUURUUURRRRRRRURURRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #34:
score: 100
Accepted
time: 0ms
memory: 3640kb
input:
path 38 RRRRRRRURRRRRRRRRRRRRRRRURRRRRRRRURURURURRRUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUU
output:
((((((()(((((((((((((((()(((((((()()()()((()))))())))))))))))))))))))))))))) 38
input:
brackets 38 ((((((()(((((((((((((((()(((((((()()()()((()))))())))))))))))))))))))))))))) 38
output:
RRRRRRRURRRRRRRRRRRRRRRRURRRRRRRRURURURURRRUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #35:
score: 100
Accepted
time: 4ms
memory: 3652kb
input:
path 53 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))) 53
input:
brackets 53 ((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))) 53
output:
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #36:
score: 100
Accepted
time: 0ms
memory: 3508kb
input:
path 51 UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
output:
((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))) 50
input:
brackets 51 ((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))) 50
output:
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #37:
score: 100
Accepted
time: 2ms
memory: 3716kb
input:
path 83 RRUUUURRUURUURURRURURUUURURURRRUUUUURRRRUUURURURUURURRUUUURRUUURRUUURRRRURUURURURUUURRRRRRUURRRURUUUUURURRUUUURRUUURURUURRRURUURRRRURRRRRUUURURURRRRRRURUUURRRRUURUURR
output:
((()())(((()((((()))()()(((((()()))(((())())(()(())))(())())()(()()()))()()((()))))(((()))()()())()(())))(()))(()))(((()())()()()))(((((())((()()))))()(())))(()))()() 65
input:
brackets 83 ((()())(((()((((()))()()(((((()()))(((())())(()(())))(())())()(()()()))()()((()))))(((()))()()())()(())))(()))(()))(((()())()()()))(((((())((()()))))()(())))(()))()() 65
output:
RRUUUURRUURUURURRURURUUURURURRRUUUUURRRRUUURURURUURURRUUUURRUUURRUUURRRRURUURURURUUURRRRRRUURRRURUUUUURURRUUUURRUUURURUURRRURUURRRRURRRRRUUURURURRRRRRURUUURRRRUURUURR
result:
ok correct!
Test #38:
score: 100
Accepted
time: 4ms
memory: 3532kb
input:
path 83 UUUUUUUUURUUUUUUUUUUUURUUURRUUUUUUUURUUURURRUUURUUURRRUUURRURRUUUUUUUUURUUUUURUUUUURUUUUURUURUUUURRUURUURRRRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
output:
((((((((()()((((((((((((()(((((((((((((((((((((((((((((((((((())))))))))())))))))))))()))(())))))))()))()(()))()))((()))(()(()))))))))()))))()))))()))))())())))(())() 79
input:
brackets 83 ((((((((()()((((((((((((()(((((((((((((((((((((((((((((((((((())))))))))())))))))))))()))(())))))))()))()(()))()))((()))(()(()))))))))()))))()))))()))))())())))(())() 79
output:
UUUUUUUUURUUUUUUUUUUUURUUURRUUUUUUUURUUURURRUUURUUURRRUUURRURRUUUUUUUUURUUUUURUUUUURUUUUURUURUUUURRUURUURRRRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #39:
score: 100
Accepted
time: 0ms
memory: 3532kb
input:
path 76 RRRRRRRRRRURRRRRRRRRRRRRRRRURRRRRRRURRRRRURRRRRUURRRRRURRURURRRRRRUUUURRURRRURRRRUURRRURUUURRURURRUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
output:
(((((((((()(((((((((((((((()((((((()((((()((((())((((()(()()(((((())))(()((()(((())((()()))(()()(())))())))))))))))))))))))))))))))))))))))))))))))))))) 76
input:
brackets 76 (((((((((()(((((((((((((((()((((((()((((()((((())((((()(()()(((((())))(()((()(((())((()()))(()()(())))())))))))))))))))))))))))))))))))))))))))))))))))) 76
output:
RRRRRRRRRRURRRRRRRRRRRRRRRRURRRRRRRURRRRRURRRRRUURRRRRURRURURRRRRRUUUURRURRRURRRRUURRRURUUURRURURRUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #40:
score: 100
Accepted
time: 4ms
memory: 3716kb
input:
path 92 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
output:
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 92
input:
brackets 92 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 92
output:
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #41:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 149 UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 148
input:
brackets 149 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...
output:
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #42:
score: 100
Accepted
time: 4ms
memory: 3536kb
input:
path 141 UURRURUURRURUUUURUUURUUURRUURRRRURURRRURRURURRRRRUURRUUURRUURURUUURRRUUURRUUURURURRRURRURRUURURRRURRRRRRRRRRURURRUURRUURUURRRRUUURRUURRUURURURRURRRUUURURUURURUURUURUURURURURURRURUUUURURURRUUUUUURRURRRRRUURURRUUUUURUURUUUUURURRRUUURRURRURURRRRRUUURURUURURURURRRURRRUURUURURUURUURUUUR
output:
(())(((()()((()(()()((((())(()))(())()()))((()))(()))()()((()(()(())()((()(((((((((()()(())(())())(((()))(())(())()()(()((()))()())()())())())()()()()(()())))()()(())))))(()((((())()(()))))())()))))()((()))(()(()()((((()))()())()()()((()((())())()())())()))()))(()())(()())))()))()) 15
input:
brackets 141 (())(((()()((()(()()((((())(()))(())()()))((()))(()))()()((()(()(())()((()(((((((((()()(())(())())(((()))(())(())()()(()((()))()())()())())())()()()()(()())))()()(())))))(()((((())()(()))))())()))))()((()))(()(()()((((()))()())()()()((()((())())()())())()))()))(()())(()())))()))()) 15
output:
UURRURUURRURUUUURUUURUUURRUURRRRURURRRURRURURRRRRUURRUUURRUURURUUURRRUUURRUUURURURRRURRURRUURURRRURRRRRRRRRRURURRUURRUURUURRRRUUURRUURRUURURURRURRRUUURURUURURUURUURUURURURURURRURUUUURURURRUUUUUURRURRRRRUURURRUUUUURUURUUUUURURRRUUURRURRURURRRRRUUURURUURURURURRRURRRUURUURURUURUURUUUR
result:
ok correct!
Test #43:
score: 100
Accepted
time: 0ms
memory: 3656kb
input:
path 89 UUUURUURUUUUURUUUURUUUUUUUUURUURUURURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUURRRUUUUUUUUUUUURURUUURRRURRRRRURURURRRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
output:
((()((((()()()(((((((((((((()((((((((((((((((((((((((((((((((((((((((((((((((((()))))())()))))())))()))))))))())())()())))))))))))))))()))))))))))))))))))))))((())))))))))))()()) 83
input:
brackets 89 ((()((((()()()(((((((((((((()((((((((((((((((((((((((((((((((((((((((((((((((((()))))())()))))())))()))))))))())())()())))))))))))))))()))))))))))))))))))))))((())))))))))))()()) 83
output:
UUUURUURUUUUURUUUURUUUUUUUUURUURUURURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUURRRUUUUUUUUUUUURURUUURRRURRRRRURURURRRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #44:
score: 100
Accepted
time: 4ms
memory: 3660kb
input:
path 92 RRRRRRRRURRRUURRRURRRURRURRRRUUURURRRRURRRRRRRRRRURRRRRURRRRRRURURRRRRURRRRRRRURRRRURRRRRURRRRRRRRRRURRUUUURRRURUUUURUUURUURUUUUUURUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
output:
(((((((()((())((()((()(()(((()))()(((()(((((((((()((((()(((((()()((((()((((((()(((()((((()(((((((((()(())))((()())))()))())())))))()))))))))())))))))))))))))))))))))))))))))))))))))))) 92
input:
brackets 92 (((((((()((())((()((()(()(((()))()(((()(((((((((()((((()(((((()()((((()((((((()(((()((((()(((((((((()(())))((()())))()))())())))))()))))))))())))))))))))))))))))))))))))))))))))))))))) 92
output:
RRRRRRRRURRRUURRRURRRURRURRRRUUURURRRRURRRRRRRRRRURRRRRURRRRRRURURRRRRURRRRRRRURRRRURRRRRURRRRRRRRRRURRUUUURRRURUUUURUUURUURUUUUUURUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #45:
score: 100
Accepted
time: 2ms
memory: 3540kb
input:
path 125 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 125
input:
brackets 125 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 125
output:
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
result:
ok correct!
Test #46:
score: 100
Accepted
time: 2ms
memory: 3644kb
input:
path 148 UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
output:
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 147
input:
brackets 148 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...
output:
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #47:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 125 RURUURUUURRRURURURURRRUUURUURRRUUURRRURUUURUUUUURRRRURRRRRUUUURRRRUURUURRRRRUUURRURRURRUUUURURUUURUURRRUURRRRRRRRURRUUURURUURRUUURURURURURURURRRUUUUURUUUUURRRRRURUURRRURUUURRUUURURRRURURURURRRUUURURUURRRRRRUURRUURUUURUUURRUURURURUUURUURURURRRURRURRUU
output:
(((()((((())))(((())())((((()))(()(()(())))()()))())((())(((((((()(()))()())(()))()()()()()()((()))))()))))((((()())((()()))(()))()((()()()()((()))()())(((((())(())()))()))(())()()()))())()()((()(()(()))()())()))((()()()()((()))())((()))((()()))()))) 26
input:
brackets 125 (((()((((())))(((())())((((()))(()(()(())))()()))())((())(((((((()(()))()())(()))()()()()()()((()))))()))))((((()())((()()))(()))()((()()()()((()))()())(((((())(())()))()))(())()()()))())()()((()(()(()))()())()))((()()()()((()))())((()))((()()))()))) 26
output:
RURUURUUURRRURURURURRRUUURUURRRUUURRRURUUURUUUUURRRRURRRRRUUUURRRRUURUURRRRRUUURRURRURRUUUURURUUURUURRRUURRRRRRRRURRUUURURUURRUUURURURURURURURRRUUUUURUUUUURRRRRURUURRRURUUURRUUURURRRURURURURRRUUURURUURRRRRRUURRUURUUURUUURRUURURURUUURUURURURRRURRURRUU
result:
ok correct!
Test #48:
score: 100
Accepted
time: 4ms
memory: 3664kb
input:
path 141 UUUUUURUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUURRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURUUURUUUUURUUUUUUUUUUUUUUURUUURUURURUUUUUUUUURRRUUUURRUUUUUUURUURURRUURURRURURURURUUUURRRRRUURRRRUURRRRRURRURRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
output:
((((())(((())((((()(()((((((()((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))())))))))))))))))))()))))))))))))))))(())))))))))))))))))))))))))))))()))()))))()))))))))))))))()))())()()))))))))((())))(()))))))())()(())()(()()()()())) 133
input:
brackets 141 ((((())(((())((((()(()((((((()((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))())))))))))))))))))()))))))))))))))))(())))))))))))))))))))))))))))))()))()))))()))))))))))))))()))())()()))))))))((())))(()))))))())()(())()(()()()()())) 133
output:
UUUUUURUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUURRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURUUURUUUUURUUUUUUUUUUUUUUURUUURUURURUUUUUUUUURRRUUUURRUUUUUUURUURURRUURURRURURURURUUUURRRRRUURRRRUURRRRRURRURRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
result:
ok correct!
Test #49:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 189 RRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRURRRRRRURRRRURRRRRRRRRURRRUURRRURRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRURRRRRRRRRURRRRRRURURURRUURRURRRRRRRRRUUUURURRRRRRURRRRRRRURRRUURURRRRURRRRURRURRURRURURRURURRRRRRRRUUUUUURURUUUURRRRRUUURURRUURRURURRUURUUUUUUUUUURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUU...
output:
((((((()()((((((((((((()(((((((((((((((((()(((((()(((()((((((((()((())((()((((((((((()((()((((((((((((((((((()((((((((()(((((()()()(())(()((((((((())))()(((((()((((((()((())()(((()(((()(()(()(()()(()()(((((((())))))()())))((((()))()(())(()()(())())))))))))())))))))))))))))())))))))))))))))))))))))))...
input:
brackets 189 ((((((()()((((((((((((()(((((((((((((((((()(((((()(((()((((((((()((())((()((((((((((()((()((((((((((((((((((()((((((((()(((((()()()(())(()((((((((())))()(((((()((((((()((())()(((()(((()(()(()(()()(()()(((((((())))))()())))((((()))()(())(()()(())())))))))))())))))))))))))))()))))))))))))...
output:
RRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRURRRRRRURRRRURRRRRRRRRURRRUURRRURRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRURRRRRRRRRURRRRRRURURURRUURRURRRRRRRRRUUUURURRRRRRURRRRRRRURRRUURURRRRURRRRURRURRURRURURRURURRRRRRRRUUUUUURURUUUURRRRRUUURURRUURRURURRUURUUUUUUUUUURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUU...
result:
ok correct!
Test #50:
score: 100
Accepted
time: 4ms
memory: 3644kb
input:
path 226 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...
output:
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...
input:
brackets 226 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...
output:
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...
result:
ok correct!
Test #51:
score: 100
Accepted
time: 4ms
memory: 3700kb
input:
path 279 UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRR...
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))...
input:
brackets 279 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))...
output:
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRR...
result:
ok correct!
Test #52:
score: 100
Accepted
time: 4ms
memory: 3648kb
input:
path 282 URURUUUUUURRRRRRURURRRRURRURRRRRRURRUUURRRUUUURURURUUURRURRRRRRRUUUURRUUURRRUURUURURRUUURUUUUUURRRUUURRUUUUUURURURURURRURRUUURUURUUUUUURUUUURRRURUUUUUURUURRURURRRUURURURUUURRRURRURRUUURRRRRRUURURRURRURUURUURUUUURURRURRUURRUURRRUURUUURRUURRRRURRRRUUUURRURRRURUURRRURRRURURRRRRUURRRRURUUURRRUU...
output:
(()()((())()()()))((()(()(()))(((((())()(()(()())())())))()(()(())(())((())()))(())(((()(((())))(()((()())((()((()()((((())(((()()))((())((()())()(()))()((()())(())))()(()))(((())()((()()()())()))(()(()))))((())()(()))(())))()(())()()()()(()(((()(()()(((()()())))()((((())))(()(()(()(((()(()((())((((...
input:
brackets 282 (()()((())()()()))((()(()(()))(((((())()(()(()())())())))()(()(())(())((())()))(())(((()(((())))(()((()())((()((()()((((())(((()()))((())((()())()(()))()((()())(())))()(()))(((())()((()()()())()))(()(()))))((())()(()))(())))()(())()()()()(()(((()(()()(((()()())))()((((())))(()(()(()((((...
output:
URURUUUUUURRRRRRURURRRRURRURRRRRRURRUUURRRUUUURURURUUURRURRRRRRRUUUURRUUURRRUURUURURRUUURUUUUUURRRUUURRUUUUUURURURURURRURRUUURUURUUUUUURUUUURRRURUUUUUURUURRURURRRUURURURUUURRRURRURRUUURRRRRRUURURRURRURUURUURUUUURURRURRUURRUURRRUURUUURRUURRRRURRRRUUUURRURRRURUURRRURRRURURRRRRUURRRRURUUURRRUURRRURUURU...
result:
ok correct!
Test #53:
score: 100
Accepted
time: 2ms
memory: 3640kb
input:
path 156 UUUUUUUUUUUUUUUUUUUUUUUUURUUUUURRUUUUURUUUUUUURUURUUUUUURUUUUUUUUUUUURRUUUUUUUURURUUURUUUUUUURRUUUUUUUURUURUUUUUUURUUURUUURRUURRUUUUUURUUURRUUUUUUUUUUURRUURURURUURRUUUUURUURUURRURURURURUURUUURUUURRRRURRRRRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
output:
(((()(((((((((((((()((()((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))()))))(()))))()))))))())())))))())))))))))))(())))))))()()))()))))))(())))))))())()))))))()))()))(())(())))))()))(()))))))))))(())()()())(()))))())())(()()()...
input:
brackets 156 (((()(((((((((((((()((()((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))()))))(()))))()))))))())())))))())))))))))))(())))))))()()))()))))))(())))))))())()))))))()))()))(())(())))))()))(()))))))))))(())()()())(()))))...
output:
UUUUUUUUUUUUUUUUUUUUUUUUURUUUUURRUUUUURUUUUUUURUURUUUUUURUUUUUUUUUUUURRUUUUUUUURURUUURUUUUUUURRUUUUUUUURUURUUUUUUURUUURUUURRUURRUUUUUURUUURRUUUUUUUUUUURRUURURURUURRUUUUURUURUURRURURURURUURUUURUUURRRRURRRRRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok correct!
Test #54:
score: 100
Accepted
time: 0ms
memory: 3640kb
input:
path 155 RRRUURRRRRRRRURRRRUURRRRRRRRURRRURRRRRRRRRRRURURRRRRRURRRURRRRRRRRRURRURRRRRURUURRRRRRRRURRRRRRRRRRRRRRURRURRRRRURRRRRRURURRURRRRURRRRURURRRRRURRUUURRURRRURRURURRURRRRUURRUUUUURURURURURRUURURUURRUURUURRUUUUUURURUUUURUUURURUURRUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...
output:
((())(((((((()(((())(((((((()((()((((((((((()()(((((()((()((((((((()(()((((()())(((((((()(((((((((((((()(()((((()(((((()()(()(((()(((()()((((()(()))(()((()(()()(()(((())(()))))()()()()(())()())(())())(())))))()())))()))()())(())))))))))))))))))()))))))))))))))))))))))))))))))))))))))))))))))))))))))...
input:
brackets 155 ((())(((((((()(((())(((((((()((()((((((((((()()(((((()((()((((((((()(()((((()())(((((((()(((((((((((((()(()((((()(((((()()(()(((()(((()()((((()(()))(()((()(()()(()(((())(()))))()()()()(())()())(())())(())))))()())))()))()())(())))))))))))))))))())))))))))))))))))))))))))))))))))))))))))...
output:
RRRUURRRRRRRRURRRRUURRRRRRRRURRRURRRRRRRRRRRURURRRRRRURRRURRRRRRRRRURRURRRRRURUURRRRRRRRURRRRRRRRRRRRRRURRURRRRRURRRRRRURURRURRRRURRRRURURRRRRURRUUURRURRRURRURURRURRRRUURRUUUUURURURURURRUURURUURRUURUURRUUUUUURURUUUURUUURURUURRUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...
result:
ok correct!
Test #55:
score: 100
Accepted
time: 0ms
memory: 3772kb
input:
path 300 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...
input:
brackets 300 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...
output:
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok correct!
Test #56:
score: 100
Accepted
time: 4ms
memory: 3516kb
input:
path 300 UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...
output:
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...
input:
brackets 300 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...
output:
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...
result:
ok correct!
Test #57:
score: 100
Accepted
time: 0ms
memory: 3544kb
input:
path 300 URURRRRUURRRRRRURURRRRRUUUUUURURRUURRRRUUUUURUUUURRURUURRURRRURRRURURRUUUUURRUURRRUURRRURRRRRRURURRRRUUURUURURURUUURRRRURURRRURURURURRURUURUUURRRUURURRUUURURUUURRRUUURUURURRUURRRUURURUURRUURRRURUURURRRRUURUURURRRRRRRURUURUURUURUUUURRRUUUURRURRRRRRRUURRRRRUUURRUUUUURRRURUUUUUURRRRRURURRRUUUR...
output:
()(((())(((((()()((((())))))()(())(((()))))())))(()())(()((()((()()(()))))(())((())((()(((((()()(((()))())()()()))(((()()((()()()()(()())()))((())()(()))()()))((()))())()(())((())()())(())((()())()(((())())()((((((()())())())())))((())))(()((((((())((((()))(()))))((()())))))((((()()((()))(((((()()((...
input:
brackets 300 ()(((())(((((()()((((())))))()(())(((()))))())))(()())(()((()((()()(()))))(())((())((()(((((()()(((()))())()()()))(((()()((()()()()(()())()))((())()(()))()()))((()))())()(())((())()())(())((()())()(((())())()((((((()())())())())))((())))(()((((((())((((()))(()))))((()())))))((((()()((()...
output:
URURRRRUURRRRRRURURRRRRUUUUUURURRUURRRRUUUUURUUUURRURUURRURRRURRRURURRUUUUURRUURRRUURRRURRRRRRURURRRRUUURUURURURUUURRRRURURRRURURURURRURUURUUURRRUURURRUUURURUUURRRUUURUURURRUURRRUURURUURRUURRRURUURURRRRUURUURURRRRRRRURUURUURUURUUUURRRUUUURRURRRRRRRUURRRRRUUURRUUUUURRRURUUUUUURRRRRURURRRUUURRRRRRURUR...
result:
ok correct!
Test #58:
score: 100
Accepted
time: 4ms
memory: 3776kb
input:
path 300 UUUUUUUURRUUURRUUUUURUUUUUUUUUUURUUUUUURUUUUUUUUUUUUUUURUURUUUUUUUUUUUUUUUUURUUUUURURURUUUUUUUUUUUURUUUUUUUUUUUURUUUUUUUUURUURUUUUUUURURUUUUUURUUUUUUUUUUUUUUUUURUUUUUUURRUUUUUURRUUUUUUUUURURRUUUUUUUUURUUUUUURRUUUUUUUUUUURURUUUURURUUURUUUUUUUUUURUUURUUUUURURUUUURURURURRRUURURUUUURURRUURRUUUU...
output:
()(()(()(((()()(()()((((((((((((((((((((((((((((()()((())((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))(()))(()))))()))))))))))())))))()))))))))))))))())())))))))))))))...
input:
brackets 300 ()(()(()(((()()(()()((((((((((((((((((((((((((((()()((())((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))(()))(()))))()))))))))))())))))()))))))))))))))())()...
output:
UUUUUUUURRUUURRUUUUURUUUUUUUUUUURUUUUUURUUUUUUUUUUUUUUURUURUUUUUUUUUUUUUUUUURUUUUURURURUUUUUUUUUUUURUUUUUUUUUUUURUUUUUUUUURUURUUUUUUURURUUUUUURUUUUUUUUUUUUUUUUURUUUUUUURRUUUUUURRUUUUUUUUURURRUUUUUUUUURUUUUUURRUUUUUUUUUUURURUUUURURUUURUUUUUUUUUURUUURUUUUURURUUUURURURURRRUURURUUUURURRUURRUUUUUUUURRUUU...
result:
ok correct!
Test #59:
score: 100
Accepted
time: 6ms
memory: 3780kb
input:
path 300 RURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRURRRRURRURRRRRRRRURRRRRRRRURRRRURRRRRURURRRRRRRRURRRRRRRRRRRRUURRRRRRRRRRURRRRRRURRRRRRRRUUUURRRRRRRRRUURRURRRRRRRRRRRRRRRRURRRRRRRRRRURRRRRRURUURRRRRRRRRRRRRURRRRRRRURRURRUURURRURUURRRRRRRRRRRRURRUURRRURRRRRRUURURRRRRRRURRRURURRUURRRRUURRUURRUURRRURURUUU...
output:
()((()(((((((((((((((((((((((((((((()(((()(()(((((((()(((((((()(((()((((()()(((((((()(((((((((((())(((((((((()(((((()(((((((())))((((((((())(()(((((((((((((((()(((((((((()(((((()())((((((((((((()((((((()(()(())()(()())(((((((((((()(())((()(((((())()((((((()((()()(())(((())(())(())((()()())))(((()(((...
input:
brackets 300 ()((()(((((((((((((((((((((((((((((()(((()(()(((((((()(((((((()(((()((((()()(((((((()(((((((((((())(((((((((()(((((()(((((((())))((((((((())(()(((((((((((((((()(((((((((()(((((()())((((((((((((()((((((()(()(())()(()())(((((((((((()(())((()(((((())()((((((()((()()(())(((())(())(())((()()...
output:
RURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRURRRRURRURRRRRRRRURRRRRRRRURRRRURRRRRURURRRRRRRRURRRRRRRRRRRRUURRRRRRRRRRURRRRRRURRRRRRRRUUUURRRRRRRRRUURRURRRRRRRRRRRRRRRRURRRRRRRRRRURRRRRRURUURRRRRRRRRRRRRURRRRRRRURRURRUURURRURUURRRRRRRRRRRRURRUURRRURRRRRRUURURRRRRRRURRRURURRUURRRRUURRUURRUURRRURURUUUURRRRURRR...
result:
ok correct!
Test #60:
score: 100
Accepted
time: 0ms
memory: 3668kb
input:
path 300 URURRUUURUUUURURRURURURRUUUUUUUURRURURURRRRURRRURRURURRUUUURRRURRRUUUUURUURUURRRRURURUURURRURUUUURURRRUURRRUURRURRRRUUURRRRUUUURRRRUUURRUUURRURURRRRRURUUUURUURURRRRUUURRURRRRRRRURRRUURUUURRURUURURRRRUUUUURURURURUUUURUUURRURUUURURRRRUURUUUURRURURRRRUURUUUUUUURURUUURRUUUURRRRUURURUUUURRRUUUUU...
output:
()(()((()(((())(())(((()))))()(((()()(()())(()))((((()())()())))((()))())))(())())(()((())(()()())())))(()(())(()(((((())(()()()))(()(()))()(())))(()))))(((()))((())((((())((()())(((())(()(()()()()))()()())()()((()())(()(())())))()((()))((()(((()(())(()()(()()()(((()))))()))()))((()()()()((())(((())...
input:
brackets 300 ()(()((()(((())(())(((()))))()(((()()(()())(()))((((()())()())))((()))())))(())())(()((())(()()())())))(()(())(()(((((())(()()()))(()(()))()(())))(()))))(((()))((())((((())((()())(((())(()(()()()()))()()())()()((()())(()(())())))()((()))((()(((()(())(()()(()()()(((()))))()))()))((()()()...
output:
URURRUUURUUUURURRURURURRUUUUUUUURRURURURRRRURRRURRURURRUUUURRRURRRUUUUURUURUURRRRURURUURURRURUUUURURRRUURRRUURRURRRRUUURRRRUUUURRRRUUURRUUURRURURRRRRURUUUURUURURRRRUUURRURRRRRRRURRRUURUUURRURUURURRRRUUUUURURURURUUUURUUURRURUUURURRRRUURUUUURRURURRRRUURUUUUUUURURUUURRUUUURRRRUURURUUUURRRUUUUUUURURURRU...
result:
ok correct!
Test #61:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 300 RURRRURRUUUUURUUURRUURRUURRRURRRURURRRRUUURURURRUURUUUURRRURURUURRURRURURUUURUURRURURRURRUUURURUUURURRURRRRUURRRRRURRRURRUUURRURUUURRUUUUUURURUUURRURURRRURRURURRRRUUURUUUURRRUURUURRRRURURRUUUURRRRRRRURRRURRUURURRURRRURURURUUURRRURRRURRRURUURURRUUUUUUUURRRRRURRRURURURRRURUURUUUURURURUUUURUUR...
output:
(())(())((()((()()(((()))()()(())())))((()()())(()(()()()))())(()()(()(()))()()))()(()(((())((((()((()(()))(()()))(())))))()()))(()()((()(()()(((()))())))((())())(((()()(())))((((((()((()(())()(()((()()()()))((()((()((()())()(())))))))((((()((()()()((()())())))()()())))())()())))()()(()()))))()(()()...
input:
brackets 300 (())(())((()((()()(((()))()()(())())))((()()())(()(()()()))())(()()(()(()))()()))()(()(((())((((()((()(()))(()()))(())))))()()))(()()((()(()()(((()))())))((())())(((()()(())))((((((()((()(())()(()((()()()()))((()((()((()())()(())))))))((((()((()()()((()())())))()()())))())()())))()()(()...
output:
RURRRURRUUUUURUUURRUURRUURRRURRRURURRRRUUURURURRUURUUUURRRURURUURRURRURURUUURUURRURURRURRUUURURUUURURRURRRRUURRRRRURRRURRUUURRURUUURRUUUUUURURUUURRURURRRURRURURRRRUUURUUUURRRUURUURRRRURURRUUUURRRRRRRURRRURRUURURRURRRURURURUUURRRURRRURRRURUURURRUUUUUUUURRRRRURRRURURURRRURUURUUUURURURUUUURUURURUUUURUR...
result:
ok correct!
Test #62:
score: 100
Accepted
time: 0ms
memory: 3644kb
input:
path 300 RRRURUURRUUURURURRUUUUURURRRRURRRURUUURURURRRRRURRURRUURRRRUURRURUURURRRUUUUUURRURRRUURURRRUURRRRUURRURUURRRUUUUUURURRUURURRRUUURURURRRUUUURURRRRRUURUUUURUUUURUUURUURUUURURRRURRRURRUURRRRRUUUUUUURURRURRRRRRRURRUURUUUUUURURUUURURRURRURUUURUURRRRUURUUURURURRUURURRRRRURRUURRRURRUUUUURRUURRRUUR...
output:
()(())((()(((())(()((((((((()(()(())(()(())()(((((())(())()((())()((()((())((()())))()(((((()(())))()()()))(())))()((()((()()((((((()(()))((((())(()(())))(((()))(())(()(())))(())))))(()()(()(((()())())(()(())())))()))))))))))))()())())()())()())())))((((()((()))))))((()())(()))()()(()))))()(((()((()...
input:
brackets 300 ()(())((()(((())(()((((((((()(()(())(()(())()(((((())(())()((())()((()((())((()())))()(((((()(())))()()()))(())))()((()((()()((((((()(()))((((())(()(())))(((()))(())(()(())))(())))))(()()(()(((()())())(()(())())))()))))))))))))()())())()())()())())))((((()((()))))))((()())(()))()()(()))...
output:
RRRURUURRUUURURURRUUUUURURRRRURRRURUUURURURRRRRURRURRUURRRRUURRURUURURRRUUUUUURRURRRUURURRRUURRRRUURRURUURRRUUUUUURURRUURURRRUUURURURRRUUUURURRRRRUURUUUURUUUURUUURUURUUURURRRURRRURRUURRRRRUUUUUUURURRURRRRRRRURRUURUUUUUURURUUURURRURRURUUURUURRRRUURUUURURURRUURURRRRRURRUURRRURRUUUUURRUURRRUURRUURUUUUU...
result:
ok correct!
Test #63:
score: 100
Accepted
time: 2ms
memory: 3524kb
input:
path 300 RURRUUURRRRUUURRUUURRRRRRRUUUUURRUURUURURRUUURRRRURUURRRRUUUURRUURURRRRUURRRUURUUURURRRURRRRRURRUURURUURRRUURURURRURRRRRUUURURURUURUUURRRRUUUURURUURRRRRUURUUUUUURUUURURURUUURRRURUURURUUURURRRRRRURURRRURURRURRRUURURUURUURURURRURRRUUURURUURURUUURUUURRUURUUUURRURRRURURURRURUUUUURRRRRURUURUURUU...
output:
()(((((()))(()))(()((((()))()((())())(()(()))()(())()(()))())())(()))((()(())(()((())()))(())(((())))()((())(()()((())))))(())(((())))))()(()((())((((()((()(((()()((())()(()()(((()))()()()((())))(((()())())))()(()))(((()))(()))((((((()))))(())())()(()))(((()())(((())))(())()(((())((())()))()((()((((...
input:
brackets 300 ()(((((()))(()))(()((((()))()((())())(()(()))()(())()(()))())())(()))((()(())(()((())()))(())(((())))()((())(()()((())))))(())(((())))))()(()((())((((()((()(((()()((())()(()()(((()))()()()((())))(((()())())))()(()))(((()))(()))((((((()))))(())())()(()))(((()())(((())))(())()(((())((())(...
output:
RURRUUURRRRUUURRUUURRRRRRRUUUUURRUURUURURRUUURRRRURUURRRRUUUURRUURURRRRUURRRUURUUURURRRURRRRRURRUURURUURRRUURURURRURRRRRUUURURURUURUUURRRRUUUURURUURRRRRUURUUUUUURUUURURURUUURRRURUURURUUURURRRRRRURURRRURURRURRRUURURUURUURURURRURRRUUURURUURURUUURUUURRUURUUUURRURRRURURURRURUUUUURRRRRURUURUURUURRRURUUUR...
result:
ok correct!
Test #64:
score: 100
Accepted
time: 4ms
memory: 3584kb
input:
path 300 RUURRURUUURRRRURUURRRUURRUURRRRRURURRRUUUUURURRURUURRRUUUUUUURRUUURURUURRRRRRURUURUURUURRURRURURURURRUURRUURRUUUUUURRRUURURUUURURUURRRRUUURURURUURRRRURRUUUURURUURURRRURRURURRUURRRUURRUUUUUUURRRRRRRURURRRRRURRRRURRUUUURURURRRRRUURRURURURUUUURRRRUUUURRRRURURUUUURRURRUUURRRUURRURRRURRRRRRUURUR...
output:
((((((()()((((()(((()(())))()()((((())(()()()())))(((())))(((()()())))(()(()))((())(()((()(((((())()()))())))(())))()()(((()((())))((()(()(())))()))())(())(())())()((()(()((((()())))))())()))))()))()((()))()())(()((((((())()(()((((()(((()()(()))))(()(())((((()()())))(()(()))))(((())))(())(())))(()()...
input:
brackets 300 ((((((()()((((()(((()(())))()()((((())(()()()())))(((())))(((()()())))(()(()))((())(()((()(((((())()()))())))(())))()()(((()((())))((()(()(())))()))())(())(())())()((()(()((((()())))))())()))))()))()((()))()())(()((((((())()(()((((()(((()()(()))))(()(())((((()()())))(()(()))))(((())))((...
output:
RUURRURUUURRRRURUURRRUURRUURRRRRURURRRUUUUURURRURUURRRUUUUUUURRUUURURUURRRRRRURUURUURUURRURRURURURURRUURRUURRUUUUUURRRUURURUUURURUURRRRUUURURURUURRRRURRUUUURURUURURRRURRURURRUURRRUURRUUUUUUURRRRRRRURURRRRRURRRRURRUUUURURURRRRRUURRURURURUUUURRRRUUUURRRRURURUUUURRURRUUURRRUURRURRRURRRRRRUURURUUURUUUUR...
result:
ok correct!
Test #65:
score: 100
Accepted
time: 4ms
memory: 3548kb
input:
path 300 RURRRRUUURUURRRURRRRRRRUUURRUURURRRURRRRURUURURURURUURURUURURUURRRRUURRRRRRUUURRRRRRURURUURRUUURURURUUUURRRUUUUUUUUUURUURURRRURUUUURRUUURRRURRUUURRUURRURRUURURRUUUUUUURUUUUURRRUUURRURRRRUUUUUUURRRRRRURURRRURRURURRRRURURRURURURURURUUURRRUURRRUUURRURRUURURUURRRRUUUURRRRRRUUUURURRURUURUUURRRRR...
output:
(((((()()((()(()()(((()()(()()()()()()))((())((()))(()(())()())(((())))(((((())))()(()())()))((((()(()(()()())()())(())()()()))(()))(()()((()(((((((())()())()()))))())()())(((())()))())((()((()()(())(()())))(((()()))())))))()(((((()))(())))(()))(((()())()))(((()((((()(((()))(()()()))()((()))()(())((...
input:
brackets 300 (((((()()((()(()()(((()()(()()()()()()))((())((()))(()(())()())(((())))(((((())))()(()())()))((((()(()(()()())()())(())()()()))(()))(()()((()(((((((())()())()()))))())()())(((())()))())((()((()()(())(()())))(((()()))())))))()(((((()))(())))(()))(((()())()))(((()((((()(((()))(()()()))()(...
output:
RURRRRUUURUURRRURRRRRRRUUURRUURURRRURRRRURUURURURURUURURUURURUURRRRUURRRRRRUUURRRRRRURURUURRUUURURURUUUURRRUUUUUUUUUURUURURRRURUUUURRUUURRRURRUUURRUURRURRUURURRUUUUUUURUUUUURRRUUURRURRRRUUUUUUURRRRRRURURRRURRURURRRRURURRURURURURURUUURRRUURRRUUURRURRUURURUURRRRUUUURRRRRRUUUURURRURUURUUURRRRRURRURRURU...
result:
ok correct!
Test #66:
score: 100
Accepted
time: 4ms
memory: 3664kb
input:
path 300 UURRRUURUUUUURRUUUUURRUURUUURRRURURRUUURRURURRRRUURRUURURRRRRRRUUURUUUURRUURURRRRRRUURUUURUURRRRURURRRRRRRURRURRURRUURRRRRRUURURUURRRRURRRRURUURRRUURRUUUURURURRUUUURRUUUURRRURRURUURRUUURURRRRUUUUUUURURUURRURUUUUURUUUURRURUURURURURRUURURURRURURURRRURRRURRURRUUURRRRURUURUURRRUURUUURRURRRURRRU...
output:
((()()(()))(()()(((())(())()((((((()))())))(())()(((((())()))())(((()()((((((()(()(()(())(((((())()())(((()(((()())((())(())))()()(())))(())))((()(()())(()))()(((()))))))()())(()()))))())))(()())()()()(())()()(()()()((()((()(()(()))(((()())())((())()))(()((()((()))(()(()()))())))()(((())()(()())(())...
input:
brackets 300 ((()()(()))(()()(((())(())()((((((()))())))(())()(((((())()))())(((()()((((((()(()(()(())(((((())()())(((()(((()())((())(())))()()(())))(())))((()(()())(()))()(((()))))))()())(()()))))())))(()())()()()(())()()(()()()((()((()(()(()))(((()())())((())()))(()((()((()))(()(()()))())))()(((()...
output:
UURRRUURUUUUURRUUUUURRUURUUURRRURURRUUURRURURRRRUURRUURURRRRRRRUUURUUUURRUURURRRRRRUURUUURUURRRRURURRRRRRRURRURRURRUURRRRRRUURURUURRRRURRRRURUURRRUURRUUUURURURRUUUURRUUUURRRURRURUURRUUURURRRRUUUUUUURURUURRURUUUUURUUUURRURUURURURURRUURURURRURURURRRURRRURRURRUUURRRRURUURUURRRUURUUURRURRRURRRUUURRURRUR...
result:
ok correct!
Test #67:
score: 100
Accepted
time: 4ms
memory: 3660kb
input:
path 300 RURUUURRURUURURUUURUURRRURRRRRRUURUURRRURUUUURURUUURRRURUURURRRURURUUURRRRRUURRUUUUUURUURURRURURURRRRRRRRRRURURUURURRUUURURRUUUUUUURRURUURRURUURRUURRURRURRUUUUURRRURRUURURURRRRRUURURUUURUURURUURUURUURRRRURRURRRRUURURUUUUUURURURURURUURRRRUURURRRRUUUURRURUURRRURUUURUUURRRRRRUUUURRRUURRUUUUURR...
output:
(((()()((((()))(()))(((()()())()((((((())((()(((((()())))()((())()))())()()()((()))))))))))())()((()()))(()(((())))(()))((()(()()()(()(())()()())))(((((((())())))((()()(((()))))(((((((()())(())())(()())))(()))))()))((()()()))()(()((()))))()()))(()())()()))())((()(((((())())((()())))()()))((()())()((...
input:
brackets 300 (((()()((((()))(()))(((()()())()((((((())((()(((((()())))()((())()))())()()()((()))))))))))())()((()()))(()(((())))(()))((()(()()()(()(())()()())))(((((((())())))((()()(((()))))(((((((()())(())())(()())))(()))))()))((()()()))()(()((()))))()()))(()())()()))())((()(((((())())((()())))()()...
output:
RURUUURRURUURURUUURUURRRURRRRRRUURUURRRURUUUURURUUURRRURUURURRRURURUUURRRRRUURRUUUUUURUURURRURURURRRRRRRRRRURURUURURRUUURURRUUUUUUURRURUURRURUURRUURRURRURRUUUUURRRURRUURURURRRRRUURURUUURUURURUURUURUURRRRURRURRRRUURURUUUUUURURURURURUURRRRUURURRRRUUUURRURUURRRURUUURUUURRRRRRUUUURRRUURRUUUUURRURURRRUUR...
result:
ok correct!
Test #68:
score: 100
Accepted
time: 4ms
memory: 3640kb
input:
path 300 RURUURRUUURRURURRRRRRRURRUURRRRRRRURRURURRUURURURURUURUUURRURURURRURUURRURURRUURRRRRRRRRUURURUUURRRRRUURRRRUUUUURURRUURUURUURURRUUURRRUUUUURUURURRRURRRRRRURRRUUURRRRUURRRUURURURUUUUURUUURRURRUUUUUUURUUURRRRRRURURURRRUUUUURURUURRRUUURURUUUUUUURURRRRRRRURRURUURRRRRRURRRURUUURRUUUUUUURUUUURRRU...
output:
(((((())(())()(()))((())))()(((())(()))((()))((()((()()()()()))(())(()()))((())))))()((()(())(()((()((((()))(())()((())))(()())()()())(()))(()()((((((()(())((((((()(()()(())()()()())()))(()()()(()())(()()(())((((((((())()()))((((())(((()))))()(())())())()(()))((()))))())()((()(((((()((()))(((())((()...
input:
brackets 300 (((((())(())()(()))((())))()(((())(()))((()))((()((()()()()()))(())(()()))((())))))()((()(())(()((()((((()))(())()((())))(()())()()())(()))(()()((((((()(())((((((()(()()(())()()()())()))(()()()(()())(()()(())((((((((())()()))((((())(((()))))()(())())())()(()))((()))))())()((()(((((()(((...
output:
RURUURRUUURRURURRRRRRRURRUURRRRRRRURRURURRUURURURURUURUUURRURURURRURUURRURURRUURRRRRRRRRUURURUUURRRRRUURRRRUUUUURURRUURUURUURURRUUURRRUUUUURUURURRRURRRRRRURRRUUURRRRUURRRUURURURUUUUURUUURRURRUUUUUUURUUURRRRRRURURURRRUUUUURURUURRRUUURURUUUUUUURURRRRRRRURRURUURRRRRRURRRURUUURRUUUUUUURUUUURRRURURRURUUR...
result:
ok correct!
Test #69:
score: 100
Accepted
time: 6ms
memory: 3644kb
input:
path 300 RRRRRRRRRRUURRRRURRURRURUUUURRRUUURUUUURRURRUUURRURRURRUURRURUURRURRRRRRURRUURURRRURURRUUUURURUURRUUUUUUUURUUUURRRRRRRRURURUURUURURURRURRRRRRRRRUUUUURURURUUURRUUUURRRRURRUURURUURRURRRRURUUURUUURRRRRUUURRRRRURRRRURURRUURURURRUURURURRURUUUURRRUUURURRRRURUUUUUUUUURURUUUUUUURRRUURRURUURURRRRURR...
output:
(((((((((())(((()(()(()())))((()))())))(()(()))(()(()(())(()())(()(((((()(())()((()()(())))()())(())))))))())))(((((((()()())())()()(()((((((((()))))()()()))(())))(((()(())()())(()(((()()))()))((((()))((((()(((()()(())()()(())()()(()())))((()))()(((()()))))))))()()))))))((())(()())()(((()(()))))()((...
input:
brackets 300 (((((((((())(((()(()(()())))((()))())))(()(()))(()(()(())(()())(()(((((()(())()((()()(())))()())(())))))))())))(((((((()()())())()()(()((((((((()))))()()()))(())))(((()(())()())(()(((()()))()))((((()))((((()(((()()(())()()(())()()(()())))((()))()(((()()))))))))()()))))))((())(()())()(((...
output:
RRRRRRRRRRUURRRRURRURRURUUUURRRUUURUUUURRURRUUURRURRURRUURRURUURRURRRRRRURRUURURRRURURRUUUURURUURRUUUUUUUURUUUURRRRRRRRURURUURUURURURRURRRRRRRRRUUUUURURURUUURRUUUURRRRURRUURURUURRURRRRURUUURUUURRRRRUUURRRRRURRRRURURRUURURURRUURURURRURUUUURRRUUURURRRRURUUUUUUUUURURUUUUUUURRRUURRURUURURRRRURRUUUUURURR...
result:
ok correct!
Test #70:
score: 100
Accepted
time: 6ms
memory: 3676kb
input:
path 300 RUUUURRRUURRUUURURURRURUUUURRRUURRURUURRURRURURRUURURRRRUURURRURURURURURUURUURRRURRURURUUURRRRUURRRRUURRRURRUUURUUUUURUUUUURRRURRRRUURRURRUURURRRRRUURUUURRUURUURRRURRURURURUURRRRUUURRURRUURRRRUUUURUURUURURUUURURURRRURRURURRURRRRRRUUURUUURUUURURURRUURRRUUURURUURRURURRUUURURRUURUUUUURUURRURUU...
output:
((()((()())(((())())))()))((((()(())((()(((()(()))()())))(())((())()()())())(()))(())()()(()(()()())())()(((())()()(())(((((()(())((()((()))())))((())(()))()()(()())))((())(()())(()(()()(())()(((())()(()()()()()())())((()(()()()))(((())(((())((()(()))()))))()))))((()(((())(()(())()((((())()))(())())...
input:
brackets 300 ((()((()())(((())())))()))((((()(())((()(((()(()))()())))(())((())()()())())(()))(())()()(()(()()())())()(((())()()(())(((((()(())((()((()))())))((())(()))()()(()())))((())(()())(()(()()(())()(((())()(()()()()()())())((()(()()()))(((())(((())((()(()))()))))()))))((()(((())(()(())()(((((...
output:
RUUUURRRUURRUUURURURRURUUUURRRUURRURUURRURRURURRUURURRRRUURURRURURURURURUURUURRRURRURURUUURRRRUURRRRUURRRURRUUURUUUUURUUUUURRRURRRRUURRURRUURURRRRRUURUUURRUURUURRRURRURURURUURRRRUUURRURRUURRRRUUUURUURUURURUUURURURRRURRURURRURRRRRRUUURUUURUUURURURRUURRRUUURURUURRURURRUUURURRUURUUUUURUURRURUURRRURRURR...
result:
ok correct!
Test #71:
score: 100
Accepted
time: 0ms
memory: 3640kb
input:
path 300 RRRRRURUUUURRRRUUUUUURUUUURRUURURRRRURRUUURUUUUURRUURURURURUURUUUURRRUURUURUUUURRRRUUURURRRUURUUUUUURUURRRRURURRUUURRUUURRRURURRURRRRRUUURRRRRRRRURRRURRURURUUURRRURUUURRUUURRRRRRRRUUURURRRRRRRRURURRRUURURURURUURUUURUURRURUUUURUUUUUURURRURURRRUUURRRRUURRURRRURUURUUURURUUURURUUUURURURRRRUURRR...
output:
(((()()(()))(()))((()()(()((((()))(((((((()((()(()()()))((()()))(()))(((((((()))()(((((((()()((())()()()())()))())(()())))())))))()(()()((()))(((())(()((()())()))()()))()())))()()(((())((((()(()()((()))(((()))((()())))()()))))((((((()()((()()()))())())()))))()))(()()())()()()))))((()((())()))()((())...
input:
brackets 300 (((()()(()))(()))((()()(()((((()))(((((((()((()(()()()))((()()))(()))(((((((()))()(((((((()()((())()()()())()))())(()())))())))))()(()()((()))(((())(()((()())()))()()))()())))()()(((())((((()(()()((()))(((()))((()())))()()))))((((((()()((()()()))())())()))))()))(()()())()()()))))((()(((...
output:
RRRRRURUUUURRRRUUUUUURUUUURRUURURRRRURRUUURUUUUURRUURURURURUURUUUURRRUURUURUUUURRRRUUURURRRUURUUUUUURUURRRRURURRUUURRUUURRRURURRURRRRRUUURRRRRRRRURRRURRURURUUURRRURUUURRUUURRRRRRRRUUURURRRRRRRRURURRRUURURURURUURUUURUURRURUUUURUUUUUURURRURURRRUUURRRRUURRURRRURUURUUURURUUURURUUUURURURRRRUURRRRRURRURUR...
result:
ok correct!