QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#22398#2348. Bijection1145141919810#AC ✓6ms3804kbC++203.3kb2022-03-09 17:09:272023-01-16 14:03:53

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-01-16 14:03:53]
  • 评测
  • 测评结果:AC
  • 用时:6ms
  • 内存:3804kb
  • [2022-03-09 17:09:27]
  • 提交

answer

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<string.h>
#include<queue>
#include<vector>
#include<map>
#include<bitset>
#include<set>
#include<cmath>
#include<ctime>
#include<random>
#define vi vector<int>
#define pb push_back
#define fi first
#define se second
#define mp make_pair
#define bc(x) __builtin_popcount(x)
#define re register
#define il inline
#define pii pair<int,int>
#define pil pair<int,long long>
#define pll pair<long long,long long>
#define mem0(x) memset(x,0,sizeof(x))
#define mem0x3f(x) memset(x,0x3f,sizeof(x))
#define dbg(x) cerr<<"In Line "<< __LINE__<<" the "<<#x<<" = "<<x<<'\n';
// #pragma GCC optimize(3)
//#define int long long
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
namespace IO_BUFF{
	mt19937 rnd(time(0)^(ll)(new char));
	int rend(int x){
		return rnd()%x+1;
	}
	void rendom_shuffle(int *a,int len){
		shuffle(a+1,a+len+1,rnd);
	}
	const int BS=(1<<24)+5;char Buffer[BS],*HD,*TL;
	inline int gc(){
	    if(HD==TL) TL=(HD=Buffer)+fread(Buffer,1,BS,stdin);
	    return (HD==TL)?EOF:*HD++;
	}
	inline int inn(){
	    int x,ch,s=1;while((ch=gc())<'0'||ch>'9')if(ch=='-')s=-1;x=ch^'0';
	    while((ch=gc())>='0'&&ch<='9') x=(x<<1)+(x<<3)+(ch^'0');return x*s;
	}
	char ssss[19999999],tttt[20];int ssl,ttl;
    inline int print(int x)
    {
        if(x<0)ssss[++ssl]='-',x=(-x);
		if(!x) ssss[++ssl]='0';for(ttl=0;x;x/=10) tttt[++ttl]=char(x%10+'0');
        for(;ttl;ttl--) ssss[++ssl]=tttt[ttl];return ssss[++ssl]='\n';
    }
	inline int Flush(){return fwrite(ssss+1,sizeof(char),ssl,stdout),ssl=0,0;}
	int read(){
		char c=getchar();int x=1;int s=0;
		while(c<'0' || c>'9'){if(c=='-')x=-1;c=getchar();}
		while(c>='0' && c<='9'){
			s=s*10+c-'0';c=getchar();
		}
		return s*x;
	}
}using namespace IO_BUFF;
/*namespace CFConTest{
	const int mod=998244353;
	inline int add(const int &x,const int &y){
		return (x+y>=mod?x+y-mod:x+y);
	}
	inline int del(const int &x,const int &y){
		return (x-y<0?x-y+mod:x-y);
	}
	int ksm(int x,int k){
		int base=1;
		while(k){
			if(k&1)base=1ll*base*x%mod;
			k>>=1;
			x=1ll*x*x%mod;
		}
		return base;
	}
};
using namespace CFConTest;*/
const int N=1005;
char c[15],a[N];
int n,x,b[N];
bool check(){
	int x=0;
	for(int i=0;i<=n;i++){
		x+=b[i];
		if(x<=0)return 0;
	}
	return 1;
}
void you(){
	int x=b[n];
	for(int i=n;i>=1;i--)b[i]=b[i-1];
	b[0]=x;
}
void zuo(){
	int x=b[0];
	for(int i=0;i<n;i++)b[i]=b[i+1];
	b[n]=x;
}
int main(){
//	#ifdef newbiewzs
//		freopen("data.txt","r",stdin);
//	#else
//	#endif
	scanf("%s",c+1);
	if(c[1]=='p'){
		n=read()*2;
		scanf("%s",a+1);
		b[0]=1;
		for(int i=1;i<=n;i++){
			if(a[i]=='R')b[i]=1;
			else b[i]=-1;
		}
		int cnt=0;
		while(!check()){
			if(b[0]==1)cnt++;
			zuo();
		}
		for(int i=1;i<=n;i++){
			if(b[i]==1)cout<<"(";
			else cout<<")";
		}
		cout<<'\n'<<cnt;
		return 0;
	}
	if(c[1]=='b'){
		n=read()*2;
		scanf("%s",a+1);
		x=read();
		for(int i=1;i<=n;i++){
			if(a[i]=='(')b[i]=1;
			else b[i]=-1;
		}
		b[0]=1;
		int pos=0;
		for(int i=n;i>=0&&x;i--)
		{
			++pos;
			if(b[i]==1)
			{
				--x;
			}
		}
	//	cout<<pos<<endl;
		for(int i=1;i<=pos;i++)you();
		for(int i=1;i<=n;i++){
			if(b[i]==1)cout<<"R";
			else cout<<"U";
		}
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 3448kb

input:

path
2
RRUU

output:

(())
0

input:

brackets
2
(())
0

output:

RRUU

result:

ok correct!

Test #2:

score: 100
Accepted
time: 0ms
memory: 3580kb

input:

path
3
RUURRU

output:

()(())
2

input:

brackets
3
()(())
2

output:

RUURRU

result:

ok correct!

Test #3:

score: 100
Accepted
time: 4ms
memory: 3608kb

input:

path
1
RU

output:

()
0

input:

brackets
1
()
0

output:

RU

result:

ok correct!

Test #4:

score: 100
Accepted
time: 0ms
memory: 3660kb

input:

path
1
UR

output:

()
1

input:

brackets
1
()
1

output:

UR

result:

ok correct!

Test #5:

score: 100
Accepted
time: 2ms
memory: 3608kb

input:

path
2
RURU

output:

()()
0

input:

brackets
2
()()
0

output:

RURU

result:

ok correct!

Test #6:

score: 100
Accepted
time: 0ms
memory: 3600kb

input:

path
2
RUUR

output:

(())
2

input:

brackets
2
(())
2

output:

RUUR

result:

ok correct!

Test #7:

score: 100
Accepted
time: 2ms
memory: 3664kb

input:

path
2
URRU

output:

()()
1

input:

brackets
2
()()
1

output:

URRU

result:

ok correct!

Test #8:

score: 100
Accepted
time: 4ms
memory: 3604kb

input:

path
2
URUR

output:

()()
2

input:

brackets
2
()()
2

output:

URUR

result:

ok correct!

Test #9:

score: 100
Accepted
time: 2ms
memory: 3772kb

input:

path
2
UURR

output:

(())
1

input:

brackets
2
(())
1

output:

UURR

result:

ok correct!

Test #10:

score: 100
Accepted
time: 4ms
memory: 3664kb

input:

path
6
RRRRRRUUUUUU

output:

(((((())))))
0

input:

brackets
6
(((((())))))
0

output:

RRRRRRUUUUUU

result:

ok correct!

Test #11:

score: 100
Accepted
time: 4ms
memory: 3764kb

input:

path
5
UUUUURRRRR

output:

((((()))))
1

input:

brackets
5
((((()))))
1

output:

UUUUURRRRR

result:

ok correct!

Test #12:

score: 100
Accepted
time: 4ms
memory: 3600kb

input:

path
5
RRUURUURRU

output:

()((())())
4

input:

brackets
5
()((())())
4

output:

RRUURUURRU

result:

ok correct!

Test #13:

score: 100
Accepted
time: 2ms
memory: 3596kb

input:

path
5
UUUUURRRRR

output:

((((()))))
1

input:

brackets
5
((((()))))
1

output:

UUUUURRRRR

result:

ok correct!

Test #14:

score: 100
Accepted
time: 4ms
memory: 3576kb

input:

path
5
RURURURRUU

output:

()()()(())
0

input:

brackets
5
()()()(())
0

output:

RURURURRUU

result:

ok correct!

Test #15:

score: 100
Accepted
time: 0ms
memory: 3580kb

input:

path
10
RRRRRRRRRRUUUUUUUUUU

output:

(((((((((())))))))))
0

input:

brackets
10
(((((((((())))))))))
0

output:

RRRRRRRRRRUUUUUUUUUU

result:

ok correct!

Test #16:

score: 100
Accepted
time: 2ms
memory: 3564kb

input:

path
13
UUUUUUUUUUUUURRRRRRRRRRRRR

output:

((((((((((((()))))))))))))
1

input:

brackets
13
((((((((((((()))))))))))))
1

output:

UUUUUUUUUUUUURRRRRRRRRRRRR

result:

ok correct!

Test #17:

score: 100
Accepted
time: 2ms
memory: 3664kb

input:

path
13
RUURURRRUUURURUUURUURRRURR

output:

(()(((())()((()))()()))())
9

input:

brackets
13
(()(((())()((()))()()))())
9

output:

RUURURRRUUURURUUURUURRRURR

result:

ok correct!

Test #18:

score: 100
Accepted
time: 4ms
memory: 3600kb

input:

path
13
URUUURURUUURUUURURURRRRRRR

output:

((((((()()))()()))()))()()
7

input:

brackets
13
((((((()()))()()))()))()()
7

output:

URUUURURUUURUUURURURRRRRRR

result:

ok correct!

Test #19:

score: 100
Accepted
time: 4ms
memory: 3584kb

input:

path
10
RRRRRRRRURUURUUUUUUU

output:

(((((((()())()))))))
0

input:

brackets
10
(((((((()())()))))))
0

output:

RRRRRRRRURUURUUUUUUU

result:

ok correct!

Test #20:

score: 100
Accepted
time: 4ms
memory: 3724kb

input:

path
14
RRRRRRRRRRRRRRUUUUUUUUUUUUUU

output:

(((((((((((((())))))))))))))
0

input:

brackets
14
(((((((((((((())))))))))))))
0

output:

RRRRRRRRRRRRRRUUUUUUUUUUUUUU

result:

ok correct!

Test #21:

score: 100
Accepted
time: 4ms
memory: 3728kb

input:

path
16
UUUUUUUUUUUUUUUURRRRRRRRRRRRRRRR

output:

(((((((((((((((())))))))))))))))
1

input:

brackets
16
(((((((((((((((())))))))))))))))
1

output:

UUUUUUUUUUUUUUUURRRRRRRRRRRRRRRR

result:

ok correct!

Test #22:

score: 100
Accepted
time: 4ms
memory: 3524kb

input:

path
13
URURRRRURRUURURUUUUUURRRRU

output:

((()()()(((()(())()())))))
10

input:

brackets
13
((()()()(((()(())()())))))
10

output:

URURRRRURRUURURUUUUUURRRRU

result:

ok correct!

Test #23:

score: 100
Accepted
time: 4ms
memory: 3604kb

input:

path
14
UUUUUUUUURURRUUURURRRRRRRRRR

output:

(((((((((()))))))))()(()))()
5

input:

brackets
14
(((((((((()))))))))()(()))()
5

output:

UUUUUUUUURURRUUURURRRRRRRRRR

result:

ok correct!

Test #24:

score: 100
Accepted
time: 0ms
memory: 3724kb

input:

path
11
RRRRURUURRRRUURURUUUUU

output:

(((()())(((())()()))))
0

input:

brackets
11
(((()())(((())()()))))
0

output:

RRRRURUURRRRUURURUUUUU

result:

ok correct!

Test #25:

score: 100
Accepted
time: 2ms
memory: 3588kb

input:

path
22
RRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUU

output:

(((((((((((((((((((((())))))))))))))))))))))
0

input:

brackets
22
(((((((((((((((((((((())))))))))))))))))))))
0

output:

RRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #26:

score: 100
Accepted
time: 2ms
memory: 3612kb

input:

path
22
UUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRR

output:

(((((((((((((((((((((())))))))))))))))))))))
1

input:

brackets
22
(((((((((((((((((((((())))))))))))))))))))))
1

output:

UUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #27:

score: 100
Accepted
time: 4ms
memory: 3800kb

input:

path
31
RURUUURUUURRRURRRURURURUURUURUUURRUURUURRRURRURURRURRRURUUURUR

output:

(()(()()(()((()()))()((()()))()))((()((()()()())())()))(())())
18

input:

brackets
31
(()(()()(()((()()))()((()()))()))((()((()()()())())()))(())())
18

output:

RURUUURUUURRRURRRURURURUURUURUUURRUURUURRRURRURURRURRRURUUURUR

result:

ok correct!

Test #28:

score: 100
Accepted
time: 0ms
memory: 3636kb

input:

path
32
UUUUUUUUUUUURUUUURUUUUUUUUURRRUUUURRRURRUURRRRRRRRRRRRRRRRRRRRRR

output:

(()(())((((((((((((((((((((((())))))))))))())))()))))))))((())))
6

input:

brackets
32
(()(())((((((((((((((((((((((())))))))))))())))()))))))))((())))
6

output:

UUUUUUUUUUUURUUUURUUUUUUUUURRRUUUURRRURRUURRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #29:

score: 100
Accepted
time: 2ms
memory: 3600kb

input:

path
29
RRRRRRRRRRRRRRRRRURRURRURURRRRRUURUUUUUUUURUUUUUUUUUUUUUUU

output:

((((((((((((((((()(()(()()((((())())))))))()))))))))))))))
0

input:

brackets
29
((((((((((((((((()(()(()()((((())())))))))()))))))))))))))
0

output:

RRRRRRRRRRRRRRRRRURRURRURURRRRRUURUUUUUUUURUUUUUUUUUUUUUUU

result:

ok correct!

Test #30:

score: 100
Accepted
time: 4ms
memory: 3604kb

input:

path
53
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))
0

input:

brackets
53
((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))
0

output:

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #31:

score: 100
Accepted
time: 4ms
memory: 3600kb

input:

path
59
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1

input:

brackets
59
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1

output:

UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #32:

score: 100
Accepted
time: 2ms
memory: 3584kb

input:

path
34
RRUURRRUURUUURUURRUUURURURRURRRUURURURRURUURURRURRUUURRRRRUUUURRUURU

output:

()((())()()(()())()(()(()))((((())))(())()((())((())()))())(()))()()
12

input:

brackets
34
()((())()()(()())()(()(()))((((())))(())()((())((())()))())(()))()()
12

output:

RRUURRRUURUUURUURRUUURURURRURRRUURURURRURUURURRURRUUURRRRRUUUURRUURU

result:

ok correct!

Test #33:

score: 100
Accepted
time: 4ms
memory: 3576kb

input:

path
37
UUUUUUUUUUUUUUUUUUURURUUURUUUUUUUUURUUURRRRRRRURURRRRRRRRRRRRRRRRRRRRRRRRR

output:

(((((()()(((((((((((((((((((((((((()))))))))))))))))))()()))()))))))))()))
5

input:

brackets
37
(((((()()(((((((((((((((((((((((((()))))))))))))))))))()()))()))))))))()))
5

output:

UUUUUUUUUUUUUUUUUUURURUUURUUUUUUUUURUUURRRRRRRURURRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #34:

score: 100
Accepted
time: 4ms
memory: 3584kb

input:

path
38
RRRRRRRURRRRRRRRRRRRRRRRURRRRRRRRURURURURRRUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUU

output:

((((((()(((((((((((((((()(((((((()()()()((()))))()))))))))))))))))))))))))))
0

input:

brackets
38
((((((()(((((((((((((((()(((((((()()()()((()))))()))))))))))))))))))))))))))
0

output:

RRRRRRRURRRRRRRRRRRRRRRRURRRRRRRRURURURURRRUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #35:

score: 100
Accepted
time: 4ms
memory: 3604kb

input:

path
53
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))
0

input:

brackets
53
((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))
0

output:

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #36:

score: 100
Accepted
time: 4ms
memory: 3452kb

input:

path
51
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

output:

((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))
1

input:

brackets
51
((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))
1

output:

UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #37:

score: 100
Accepted
time: 4ms
memory: 3604kb

input:

path
83
RRUUUURRUURUURURRURURUUURURURRRUUUUURRRRUUURURURUURURRUUUURRUUURRUUURRRRURUURURURUUURRRRRRUURRRURUUUUURURRUUUURRUUURURUURRRURUURRRRURRRRRUUURURURRRRRRURUUURRRRUURUURR

output:

(()())(((()((((()))()()(((((()()))(((())())((((())))(())())()(()()()))()()((()))))(((()))()()())()(())))(()))(()))(((()())()()()))(((((())((()()))))()(())))(()))()())
55

input:

brackets
83
(()())(((()((((()))()()(((((()()))(((())())((((())))(())())()(()()()))()()((()))))(((()))()()())()(())))(()))(()))(((()())()()()))(((((())((()()))))()(())))(()))()())
55

output:

RRUUUURRUURUURURRURURUUURURURRRUUUUURRRRUUURURURUURURRUUUURRUUURRUUURRRRURUURURURUUURRRRRRUURRRURUUUUURURRUUUURRUUURURUURRRURUURRRRURRRRRUUURURURRRRRRURUUURRRRUURUURR

result:

ok correct!

Test #38:

score: 100
Accepted
time: 4ms
memory: 3456kb

input:

path
83
UUUUUUUUURUUUUUUUUUUUURUUURRUUUUUUUURUUURURRUUURUUURRRUUURRURRUUUUUUUUURUUUUURUUUUURUUUUURUURUUUURRUURUURRRRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

output:

(((((((()()((((((((((((()((((((((((((((((((((((((((((((((((((()))))))))())))))))))))()))(())))))))()))()(()))()))((()))(()(()))))))))()))))()))))()))))())())))(())())
25

input:

brackets
83
(((((((()()((((((((((((()((((((((((((((((((((((((((((((((((((()))))))))())))))))))))()))(())))))))()))()(()))()))((()))(()(()))))))))()))))()))))()))))())())))(())())
25

output:

UUUUUUUUURUUUUUUUUUUUURUUURRUUUUUUUURUUURURRUUURUUURRRUUURRURRUUUUUUUUURUUUUURUUUUURUUUUURUURUUUURRUURUURRRRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #39:

score: 100
Accepted
time: 4ms
memory: 3660kb

input:

path
76
RRRRRRRRRRURRRRRRRRRRRRRRRRURRRRRRRURRRRRURRRRRUURRRRRURRURURRRRRRUUUURRURRRURRRRUURRRURUUURRURURRUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

output:

(((((((((()(((((((((((((((()((((((()((((()((((())((((()(()()(((((())))(()((()(((())((()()))(()()(())))()))))))))))))))))))))))))))))))))))))))))))))))))
0

input:

brackets
76
(((((((((()(((((((((((((((()((((((()((((()((((())((((()(()()(((((())))(()((()(((())((()()))(()()(())))()))))))))))))))))))))))))))))))))))))))))))))))))
0

output:

RRRRRRRRRRURRRRRRRRRRRRRRRRURRRRRRRURRRRRURRRRRUURRRRRURRURURRRRRRUUUURRURRRURRRRUURRRURUUURRURURRUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #40:

score: 100
Accepted
time: 4ms
memory: 3600kb

input:

path
92
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

output:

(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
0

input:

brackets
92
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
0

output:

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #41:

score: 100
Accepted
time: 4ms
memory: 3668kb

input:

path
149
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1

input:

brackets
149
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...

output:

UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #42:

score: 100
Accepted
time: 2ms
memory: 3668kb

input:

path
141
UURRURUURRURUUUURUUURUUURRUURRRRURURRRURRURURRRRRUURRUUURRUURURUUURRRUUURRUUURURURRRURRURRUURURRRURRRRRRRRRRURURRUURRUURUURRRRUUURRUURRUURURURRURRRUUURURUURURUURUURUURURURURURRURUUUURURURRUUUUUURRURRRRRUURURRUUUUURUURUUUUURURRRUUURRURRURURRRRRUUURURUURURURURRRURRRUURUURURUURUURUUUR

output:

((()()((()(()()((((())(()))(())()()))((()))(()))()()((()(()(())()((()(((((((((()()(())(())())(((()))(())(())()()(()((()))()())()())())())()()()()(()())))()()(())))))(()((((())()(()))))())()))))()((()))(()(()()((((()))()())()()()((()((())())()())())()))(())(()())(()())))()))()))(())
11

input:

brackets
141
((()()((()(()()((((())(()))(())()()))((()))(()))()()((()(()(())()((()(((((((((()()(())(())())(((()))(())(())()()(()((()))()())()())())())()()()()(()())))()()(())))))(()((((())()(()))))())()))))()((()))(()(()()((((()))()())()()()((()((())())()())())()))(())(()())(()())))()))()))(())
11

output:

UURRURUURRURUUUURUUURUUURRUURRRRURURRRURRURURRRRRUURRUUURRUURURUUURRRUUURRUUURURURRRURRURRUURURRRURRRRRRRRRRURURRUURRUURUURRRRUUURRUURRUURURURRURRRUUURURUURURUURUURUURURURURURRURUUUURURURRUUUUUURRURRRRRUURURRUUUUURUURUUUUURURRRUUURRURRURURRRRRUUURURUURURURURRRURRRUURUURURUURUURUUUR

result:

ok correct!

Test #43:

score: 100
Accepted
time: 4ms
memory: 3676kb

input:

path
89
UUUURUURUUUUURUUUURUUUUUUUUURUURUURURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUURRRUUUUUUUUUUUURURUUURRRURRRRRURURURRRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

output:

(()((((()()()(((((((((((((()(((((((((((((((((((((((((((((((((((((((((((((((((((())))())()))))())))()))))))))())())()())))))))))))))))()))))))))))))))))))))))((())))))))))))()()))
15

input:

brackets
89
(()((((()()()(((((((((((((()(((((((((((((((((((((((((((((((((((((((((((((((((((())))())()))))())))()))))))))())())()())))))))))))))))()))))))))))))))))))))))((())))))))))))()()))
15

output:

UUUURUURUUUUURUUUURUUUUUUUUURUURUURURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUURRRUUUUUUUUUUUURURUUURRRURRRRRURURURRRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #44:

score: 100
Accepted
time: 4ms
memory: 3780kb

input:

path
92
RRRRRRRRURRRUURRRURRRURRURRRRUUURURRRRURRRRRRRRRRURRRRRURRRRRRURURRRRRURRRRRRRURRRRURRRRRURRRRRRRRRRURRUUUURRRURUUUURUUURUURUUUUUURUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

output:

(((((((()((())((()((()(()(((()))()(((()(((((((((()((((()(((((()()((((()((((((()(((()((((()(((((((((()(())))((()())))()))())())))))()))))))))()))))))))))))))))))))))))))))))))))))))))))
0

input:

brackets
92
(((((((()((())((()((()(()(((()))()(((()(((((((((()((((()(((((()()((((()((((((()(((()((((()(((((((((()(())))((()())))()))())())))))()))))))))()))))))))))))))))))))))))))))))))))))))))))
0

output:

RRRRRRRRURRRUURRRURRRURRURRRRUUURURRRRURRRRRRRRRRURRRRRURRRRRRURURRRRRURRRRRRRURRRRURRRRRURRRRRRRRRRURRUUUURRRURUUUURUUURUURUUUUUURUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #45:

score: 100
Accepted
time: 4ms
memory: 3596kb

input:

path
125
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
0

input:

brackets
125
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
0

output:

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

result:

ok correct!

Test #46:

score: 100
Accepted
time: 2ms
memory: 3576kb

input:

path
148
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...

output:

(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1

input:

brackets
148
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...

output:

UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #47:

score: 100
Accepted
time: 4ms
memory: 3580kb

input:

path
125
RURUURUUURRRURURURURRRUUURUURRRUUURRRURUUURUUUUURRRRURRRRRUUUURRRRUURUURRRRRUUURRURRURRUUUURURUUURUURRRUURRRRRRRRURRUUURURUURRUUURURURURURURURRRUUUUURUUUUURRRRRURUURRRURUUURRUUURURRRURURURURRRUUURURUURRRRRRUURRUURUUURUUURRUURURURUUURUURURURRRURRURRUU

output:

((()((((())))(((())())((((()))(()(()(())))()()))())((())(((((((()(()))()())(()))()()()()()()((()))))()))))((((()())((()()))(()))()((()()()()((()))()())(((((())(())()))()))(())()()()))())()()((()(()(())(()())()))((()()()()((()))())((()))((()()))()))))
22

input:

brackets
125
((()((((())))(((())())((((()))(()(()(())))()()))())((())(((((((()(()))()())(()))()()()()()()((()))))()))))((((()())((()()))(()))()((()()()()((()))()())(((((())(())()))()))(())()()()))())()()((()(()(())(()())()))((()()()()((()))())((()))((()()))()))))
22

output:

RURUURUUURRRURURURURRRUUURUURRRUUURRRURUUURUUUUURRRRURRRRRUUUURRRRUURUURRRRRUUURRURRURRUUUURURUUURUURRRUURRRRRRRRURRUUURURUURRUUURURURURURURURRRUUUUURUUUUURRRRRURUURRRURUUURRUUURURRRURURURURRRUUURURUURRRRRRUURRUURUUURUUURRUURURURUUURUURURURRRURRURRUU

result:

ok correct!

Test #48:

score: 100
Accepted
time: 4ms
memory: 3772kb

input:

path
141
UUUUUURUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUURRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURUUURUUUUURUUUUUUUUUUUUUUURUUURUURURUUUUUUUUURRRUUUURRUUUUUUURUURURRUURURRURURURURUUUURRRRRUURRRRUURRRRRURRURRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

output:

(((())(((())((((()(()((((((()(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))())))))))))))))))))()))))))))))))))))(())))))))))))))))))))))))))))))()))()))))()))))))))))))))()))())()()))))))))((())))(()))))))())()(())()(()()()()())))
28

input:

brackets
141
(((())(((())((((()(()((((((()(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))())))))))))))))))))()))))))))))))))))(())))))))))))))))))))))))))))))()))()))))()))))))))))))))()))())()()))))))))((())))(()))))))())()(())()(()()()()())))
28

output:

UUUUUURUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUURRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURUUURUUUUURUUUUUUUUUUUUUUURUUURUURURUUUUUUUUURRRUUUURRUUUUUUURUURURRUURURRURURURURUUUURRRRRUURRRRUURRRRRURRURRRRRRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

result:

ok correct!

Test #49:

score: 100
Accepted
time: 4ms
memory: 3596kb

input:

path
189
RRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRURRRRRRURRRRURRRRRRRRRURRRUURRRURRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRURRRRRRRRRURRRRRRURURURRUURRURRRRRRRRRUUUURURRRRRRURRRRRRRURRRUURURRRRURRRRURRURRURRURURRURURRRRRRRRUUUUUURURUUUURRRRRUUURURRUURRURURRUURUUUUUUUUUURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUU...

output:

((((((()()((((((((((((()(((((((((((((((((()(((((()(((()((((((((()((())((()((((((((((()((()((((((((((((((((((()((((((((()(((((()()()(())(()((((((((())))()(((((()((((((()((())()(((()(((()(()(()(()()(()()(((((((())))))()())))((((()))()(())(()()(())())))))))))())))))))))))))))())))))))))))))))))))))))))...

input:

brackets
189
((((((()()((((((((((((()(((((((((((((((((()(((((()(((()((((((((()((())((()((((((((((()((()((((((((((((((((((()((((((((()(((((()()()(())(()((((((((())))()(((((()((((((()((())()(((()(((()(()(()(()()(()()(((((((())))))()())))((((()))()(())(()()(())())))))))))())))))))))))))))()))))))))))))...

output:

RRRRRRRURURRRRRRRRRRRRRURRRRRRRRRRRRRRRRRRURRRRRRURRRRURRRRRRRRRURRRUURRRURRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRURRRRRRRRRURRRRRRURURURRUURRURRRRRRRRRUUUURURRRRRRURRRRRRRURRRUURURRRRURRRRURRURRURRURURRURURRRRRRRRUUUUUURURUUUURRRRRUUURURRUURRURURRUURUUUUUUUUUURUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUU...

result:

ok correct!

Test #50:

score: 100
Accepted
time: 0ms
memory: 3516kb

input:

path
226
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...

output:

(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...

input:

brackets
226
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...

output:

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...

result:

ok correct!

Test #51:

score: 100
Accepted
time: 4ms
memory: 3456kb

input:

path
279
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRR...

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))...

input:

brackets
279
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))...

output:

UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUURRRRRRRRRRRRRRRRRRRRR...

result:

ok correct!

Test #52:

score: 100
Accepted
time: 4ms
memory: 3604kb

input:

path
282
URURUUUUUURRRRRRURURRRRURRURRRRRRURRUUURRRUUUURURURUUURRURRRRRRRUUUURRUUURRRUURUURURRUUURUUUUUURRRUUURRUUUUUURURURURURRURRUUURUURUUUUUURUUUURRRURUUUUUURUURRURURRRUURURURUUURRRURRURRUUURRRRRRUURURRURRURUURUURUUUURURRURRUURRUURRRUURUUURRUURRRRURRRRUUUURRURRRURUURRRURRRURURRRRRUURRRRURUUURRRUU...

output:

(()(()(()))(((((())()(()(()())())())))()(()(())(())((())()))(())(((()(((())))(()((()())((()((()()((((())(((()()))((())((()())()(()))()((()())(())))()(()))(((())()((()()()())()))(()(()))))((())()(()))(())))()(())()()()()(()(((()(()()(((()()())))()((((())))(()(()(()(((()(()((())(((()(()))(()))))((()()...

input:

brackets
282
(()(()(()))(((((())()(()(()())())())))()(()(())(())((())()))(())(((()(((())))(()((()())((()((()()((((())(((()()))((())((()())()(()))()((()())(())))()(()))(((())()((()()()())()))(()(()))))((())()(()))(())))()(())()()()()(()(((()(()()(((()()())))()((((())))(()(()(()(((()(()((())(((()(()))...

output:

URURUUUUUURRRRRRURURRRRURRURRRRRRURRUUURRRUUUURURURUUURRURRRRRRRUUUURRUUURRRUURUURURRUUURUUUUUURRRUUURRUUUUUURURURURURRURRUUURUURUUUUUURUUUURRRURUUUUUURUURRURURRRUURURURUUURRRURRURRUUURRRRRRUURURRURRURUURUURUUUURURRURRUURRUURRRUURUUURRUURRRRURRRRUUUURRURRRURUURRRURRRURURRRRRUURRRRURUUURRRUURRRURUURU...

result:

ok correct!

Test #53:

score: 100
Accepted
time: 2ms
memory: 3612kb

input:

path
156
UUUUUUUUUUUUUUUUUUUUUUUUURUUUUURRUUUUURUUUUUUURUURUUUUUURUUUUUUUUUUUURRUUUUUUUURURUUURUUUUUUURRUUUUUUUURUURUUUUUUURUUURUUURRUURRUUUUUURUUURRUUUUUUUUUUURRUURURURUURRUUUUURUURUURRURURURURUURUUURUUURRRRURRRRRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...

output:

((()(((((((((((((()((()(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))()))))(()))))()))))))())())))))())))))))))))(())))))))()()))()))))))(())))))))())()))))))()))()))(())(())))))()))(()))))))))))(())()()())(()))))())())(()()()(...

input:

brackets
156
((()(((((((((((((()((()(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))()))))(()))))()))))))())())))))())))))))))))(())))))))()()))()))))))(())))))))())()))))))()))()))(())(())))))()))(()))))))))))(())()()())(()))))(...

output:

UUUUUUUUUUUUUUUUUUUUUUUUURUUUUURRUUUUURUUUUUUURUURUUUUUURUUUUUUUUUUUURRUUUUUUUURURUUURUUUUUUURRUUUUUUUURUURUUUUUUURUUURUUURRUURRUUUUUURUUURRUUUUUUUUUUURRUURURURUURRUUUUURUURUURRURURURURUURUUURUUURRRRURRRRRRRRRRRRRRURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...

result:

ok correct!

Test #54:

score: 100
Accepted
time: 4ms
memory: 3456kb

input:

path
155
RRRUURRRRRRRRURRRRUURRRRRRRRURRRURRRRRRRRRRRURURRRRRRURRRURRRRRRRRRURRURRRRRURUURRRRRRRRURRRRRRRRRRRRRRURRURRRRRURRRRRRURURRURRRRURRRRURURRRRRURRUUURRURRRURRURURRURRRRUURRUUUUURURURURURRUURURUURRUURUURRUUUUUURURUUUURUUURURUURRUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...

output:

((())(((((((()(((())(((((((()((()((((((((((()()(((((()((()((((((((()(()((((()())(((((((()(((((((((((((()(()((((()(((((()()(()(((()(((()()((((()(()))(()((()(()()(()(((())(()))))()()()()(())()())(())())(())))))()())))()))()())(())))))))))))))))))()))))))))))))))))))))))))))))))))))))))))))))))))))))))...

input:

brackets
155
((())(((((((()(((())(((((((()((()((((((((((()()(((((()((()((((((((()(()((((()())(((((((()(((((((((((((()(()((((()(((((()()(()(((()(((()()((((()(()))(()((()(()()(()(((())(()))))()()()()(())()())(())())(())))))()())))()))()())(())))))))))))))))))())))))))))))))))))))))))))))))))))))))))))...

output:

RRRUURRRRRRRRURRRRUURRRRRRRRURRRURRRRRRRRRRRURURRRRRRURRRURRRRRRRRRURRURRRRRURUURRRRRRRRURRRRRRRRRRRRRRURRURRRRRURRRRRRURURRURRRRURRRRURURRRRRURRUUURRURRRURRURURRURRRRUURRUUUUURURURURURRUURURUURRUURUURRUUUUUURURUUUURUUURURUURRUUUUUUUUUUUUUUUUUURUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...

result:

ok correct!

Test #55:

score: 100
Accepted
time: 0ms
memory: 3576kb

input:

path
300
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

input:

brackets
300
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

output:

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...

result:

ok correct!

Test #56:

score: 100
Accepted
time: 4ms
memory: 3544kb

input:

path
300
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...

output:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

input:

brackets
300
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

output:

UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU...

result:

ok correct!

Test #57:

score: 100
Accepted
time: 0ms
memory: 3776kb

input:

path
300
URURRRRUURRRRRRURURRRRRUUUUUURURRUURRRRUUUUURUUUURRURUURRURRRURRRURURRUUUUURRUURRRUURRRURRRRRRURURRRRUUURUURURURUUURRRRURURRRURURURURRURUURUUURRRUURURRUUURURUUURRRUUURUURURRUURRRUURURUURRUURRRURUURURRRRUURUURURRRRRRRURUURUURUURUUUURRRUUUURRURRRRRRRUURRRRRUUURRUUUUURRRURUUUUUURRRRRURURRRUUUR...

output:

((())(((((()()((((())))))()(())(((()))))())))(()())(()((()((()()(()))))(())((())((()(((((()()(((()))())()()()))(((()()((()()()()(()())()))((())()(()))()()))((()))())()(())((())()())(())((()())()(((())())()((((((()())())())())))((())))(()((((((())((((()))(()))))((()())))))((((()()((()))(((((()()((())...

input:

brackets
300
((())(((((()()((((())))))()(())(((()))))())))(()())(()((()((()()(()))))(())((())((()(((((()()(((()))())()()()))(((()()((()()()()(()())()))((())()(()))()()))((()))())()(())((())()())(())((()())()(((())())()((((((()())())())())))((())))(()((((((())((((()))(()))))((()())))))((((()()((()))(...

output:

URURRRRUURRRRRRURURRRRRUUUUUURURRUURRRRUUUUURUUUURRURUURRURRRURRRURURRUUUUURRUURRRUURRRURRRRRRURURRRRUUURUURURURUUURRRRURURRRURURURURRURUURUUURRRUURURRUUURURUUURRRUUURUURURRUURRRUURURUURRUURRRURUURURRRRUURUURURRRRRRRURUURUURUURUUUURRRUUUURRURRRRRRRUURRRRRUUURRUUUUURRRURUUUUUURRRRRURURRRUUURRRRRRURUR...

result:

ok correct!

Test #58:

score: 100
Accepted
time: 4ms
memory: 3728kb

input:

path
300
UUUUUUUURRUUURRUUUUURUUUUUUUUUUURUUUUUURUUUUUUUUUUUUUUURUURUUUUUUUUUUUUUUUUURUUUUURURURUUUUUUUUUUUURUUUUUUUUUUUURUUUUUUUUURUURUUUUUUURURUUUUUURUUUUUUUUUUUUUUUUURUUUUUUURRUUUUUURRUUUUUUUUURURRUUUUUUUUURUUUUUURRUUUUUUUUUUURURUUUURURUUURUUUUUUUUUURUUURUUUUURURUUUURURURURRRUURURUUUURURRUURRUUUU...

output:

()(()(((()()(()()((((((((((((((((((((((((((((()()((())(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))(()))(()))))()))))))))))())))))()))))))))))))))())()))))))))))))))))...

input:

brackets
300
()(()(((()()(()()((((((((((((((((((((((((((((()()((())(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))(()))(()))))()))))))))))())))))()))))))))))))))())())))...

output:

UUUUUUUURRUUURRUUUUURUUUUUUUUUUURUUUUUURUUUUUUUUUUUUUUURUURUUUUUUUUUUUUUUUUURUUUUURURURUUUUUUUUUUUURUUUUUUUUUUUURUUUUUUUUURUURUUUUUUURURUUUUUURUUUUUUUUUUUUUUUUURUUUUUUURRUUUUUURRUUUUUUUUURURRUUUUUUUUURUUUUUURRUUUUUUUUUUURURUUUURURUUURUUUUUUUUUURUUURUUUUURURUUUURURURURRRUURURUUUURURRUURRUUUUUUUURRUUU...

result:

ok correct!

Test #59:

score: 100
Accepted
time: 4ms
memory: 3580kb

input:

path
300
RURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRURRRRURRURRRRRRRRURRRRRRRRURRRRURRRRRURURRRRRRRRURRRRRRRRRRRRUURRRRRRRRRRURRRRRRURRRRRRRRUUUURRRRRRRRRUURRURRRRRRRRRRRRRRRRURRRRRRRRRRURRRRRRURUURRRRRRRRRRRRRURRRRRRRURRURRUURURRURUURRRRRRRRRRRRURRUURRRURRRRRRUURURRRRRRRURRRURURRUURRRRUURRUURRUURRRURURUUU...

output:

()((()(((((((((((((((((((((((((((((()(((()(()(((((((()(((((((()(((()((((()()(((((((()(((((((((((())(((((((((()(((((()(((((((())))((((((((())(()(((((((((((((((()(((((((((()(((((()())((((((((((((()((((((()(()(())()(()())(((((((((((()(())((()(((((())()((((((()((()()(())(((())(())(())((()()())))(((()(((...

input:

brackets
300
()((()(((((((((((((((((((((((((((((()(((()(()(((((((()(((((((()(((()((((()()(((((((()(((((((((((())(((((((((()(((((()(((((((())))((((((((())(()(((((((((((((((()(((((((((()(((((()())((((((((((((()((((((()(()(())()(()())(((((((((((()(())((()(((((())()((((((()((()()(())(((())(())(())((()()...

output:

RURRRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRURRRRURRURRRRRRRRURRRRRRRRURRRRURRRRRURURRRRRRRRURRRRRRRRRRRRUURRRRRRRRRRURRRRRRURRRRRRRRUUUURRRRRRRRRUURRURRRRRRRRRRRRRRRRURRRRRRRRRRURRRRRRURUURRRRRRRRRRRRRURRRRRRRURRURRUURURRURUURRRRRRRRRRRRURRUURRRURRRRRRUURURRRRRRRURRRURURRUURRRRUURRUURRUURRRURURUUUURRRRURRR...

result:

ok correct!

Test #60:

score: 100
Accepted
time: 4ms
memory: 3580kb

input:

path
300
URURRUUURUUUURURRURURURRUUUUUUUURRURURURRRRURRRURRURURRUUUURRRURRRUUUUURUURUURRRRURURUURURRURUUUURURRRUURRRUURRURRRRUUURRRRUUUURRRRUUURRUUURRURURRRRRURUUUURUURURRRRUUURRURRRRRRRURRRUURUUURRURUURURRRRUUUUURURURURUUUURUUURRURUUURURRRRUURUUUURRURURRRRUURUUUUUUURURUUURRUUUURRRRUURURUUUURRRUUUUU...

output:

()((()(((())(())(((()))))()(((()()(()())(()))((((()())()())))((()))())))(())())(()((())(()()())())))(()(())(()(((((())(()()()))(()(()))()(())))(()))))(((()))((())((((())((()())(((())(()(()()()()))()()())()()((()())(()(())())))()((()))((()(((()(())(()()(()()()(((()))))()))()))((()()()()((())((((()()(...

input:

brackets
300
()((()(((())(())(((()))))()(((()()(()())(()))((((()())()())))((()))())))(())())(()((())(()()())())))(()(())(()(((((())(()()()))(()(()))()(())))(()))))(((()))((())((((())((()())(((())(()(()()()()))()()())()()((()())(()(())())))()((()))((()(((()(())(()()(()()()(((()))))()))()))((()()()()(...

output:

URURRUUURUUUURURRURURURRUUUUUUUURRURURURRRRURRRURRURURRUUUURRRURRRUUUUURUURUURRRRURURUURURRURUUUURURRRUURRRUURRURRRRUUURRRRUUUURRRRUUURRUUURRURURRRRRURUUUURUURURRRRUUURRURRRRRRRURRRUURUUURRURUURURRRRUUUUURURURURUUUURUUURRURUUURURRRRUURUUUURRURURRRRUURUUUUUUURURUUURRUUUURRRRUURURUUUURRRUUUUUUURURURRU...

result:

ok correct!

Test #61:

score: 100
Accepted
time: 6ms
memory: 3580kb

input:

path
300
RURRRURRUUUUURUUURRUURRUURRRURRRURURRRRUUURURURRUURUUUURRRURURUURRURRURURUUURUURRURURRURRUUURURUUURURRURRRRUURRRRRURRRURRUUURRURUUURRUUUUUURURUUURRURURRRURRURURRRRUUURUUUURRRUURUURRRRURURRUUUURRRRRRRURRRURRUURURRURRRURURURUUURRRURRRURRRURUURURRUUUUUUUURRRRRURRRURURURRRURUURUUUURURURUUUURUUR...

output:

(()((()()(((()))()()(())())))((()()())(()(()()()))())(()()(()(()))()()))()(()(((())((((()((()(()))(()()))(())))))()()))(()()((()(()()(((()))())))((())())(((()()(())))((((((()((()(())()(()((()()()()))((()((()((()())()(())))))))((((()((()()()((()())())))()()())))())()())))()()(()()))))()(()()()(()(())...

input:

brackets
300
(()((()()(((()))()()(())())))((()()())(()(()()()))())(()()(()(()))()()))()(()(((())((((()((()(()))(()()))(())))))()()))(()()((()(()()(((()))())))((())())(((()()(())))((((((()((()(())()(()((()()()()))((()((()((()())()(())))))))((((()((()()()((()())())))()()())))())()())))()()(()()))))()(...

output:

RURRRURRUUUUURUUURRUURRUURRRURRRURURRRRUUURURURRUURUUUURRRURURUURRURRURURUUURUURRURURRURRUUURURUUURURRURRRRUURRRRRURRRURRUUURRURUUURRUUUUUURURUUURRURURRRURRURURRRRUUURUUUURRRUURUURRRRURURRUUUURRRRRRRURRRURRUURURRURRRURURURUUURRRURRRURRRURUURURRUUUUUUUURRRRRURRRURURURRRURUURUUUURURURUUUURUURURUUUURUR...

result:

ok correct!

Test #62:

score: 100
Accepted
time: 4ms
memory: 3784kb

input:

path
300
RRRURUURRUUURURURRUUUUURURRRRURRRURUUURURURRRRRURRURRUURRRRUURRURUURURRRUUUUUURRURRRUURURRRUURRRRUURRURUURRRUUUUUURURRUURURRRUUURURURRRUUUURURRRRRUURUUUURUUUURUUURUURUUURURRRURRRURRUURRRRRUUUUUUURURRURRRRRRRURRUURUUUUUURURUUURURRURRURUUURUURRRRUURUUURURURRUURURRRRRURRUURRRURRUUUUURRUURRRUUR...

output:

(()(((())(()((((((((()(()(())(()(())()(((((())(())()((())()((()((())((()())))()(((((()(())))()()()))(())))()((()((()()((((((()(()))((((())(()(())))(((()))(())(()(())))(())))))(()()(()(((()())())(()(())())))()))))))))))))()())())()())()())())))((((()((())))))(((()())(()))()()(()))))()(((()((()()))()(...

input:

brackets
300
(()(((())(()((((((((()(()(())(()(())()(((((())(())()((())()((()((())((()())))()(((((()(())))()()()))(())))()((()((()()((((((()(()))((((())(()(())))(((()))(())(()(())))(())))))(()()(()(((()())())(()(())())))()))))))))))))()())())()())()())())))((((()((())))))(((()())(()))()()(()))))()(((...

output:

RRRURUURRUUURURURRUUUUURURRRRURRRURUUURURURRRRRURRURRUURRRRUURRURUURURRRUUUUUURRURRRUURURRRUURRRRUURRURUURRRUUUUUURURRUURURRRUUURURURRRUUUURURRRRRUURUUUURUUUURUUURUURUUURURRRURRRURRUURRRRRUUUUUUURURRURRRRRRRURRUURUUUUUURURUUURURRURRURUUURUURRRRUURUUURURURRUURURRRRRURRUURRRURRUUUUURRUURRRUURRUURUUUUU...

result:

ok correct!

Test #63:

score: 100
Accepted
time: 4ms
memory: 3580kb

input:

path
300
RURRUUURRRRUUURRUUURRRRRRRUUUUURRUURUURURRUUURRRRURUURRRRUUUURRUURURRRRUURRRUURUUURURRRURRRRRURRUURURUURRRUURURURRURRRRRUUURURURUURUUURRRRUUUURURUURRRRRUURUUUUUURUUURURURUUURRRURUURURUUURURRRRRRURURRRURURRURRRUURURUURUURURURRURRRUUURURUURURUUURUUURRUURUUUURRURRRURURURRURUUUUURRRRRURUURUURUU...

output:

()((())((((()((()(((()()((())()(()()(((()))()()()((())))(((()())()))(()(()))(((()))(()))((((((()))))(())())()(()))(((()())(((())))(())()(((())((())()))()((()((((()(())()())((())()()(()((((()))()()())()))(((())))()())((((())())))))()))()()()))((()())()()))()(((((()()((()()(()((())()())())()()(()((())...

input:

brackets
300
()((())((((()((()(((()()((())()(()()(((()))()()()((())))(((()())()))(()(()))(((()))(()))((((((()))))(())())()(()))(((()())(((())))(())()(((())((())()))()((()((((()(())()())((())()()(()((((()))()()())()))(((())))()())((((())())))))()))()()()))((()())()()))()(((((()()((()()(()((())()())()...

output:

RURRUUURRRRUUURRUUURRRRRRRUUUUURRUURUURURRUUURRRRURUURRRRUUUURRUURURRRRUURRRUURUUURURRRURRRRRURRUURURUURRRUURURURRURRRRRUUURURURUURUUURRRRUUUURURUURRRRRUURUUUUUURUUURURURUUURRRURUURURUUURURRRRRRURURRRURURRURRRUURURUURUURURURRURRRUUURURUURURUUURUUURRUURUUUURRURRRURURURRURUUUUURRRRRURUURUURUURRRURUUUR...

result:

ok correct!

Test #64:

score: 100
Accepted
time: 2ms
memory: 3772kb

input:

path
300
RUURRURUUURRRRURUURRRUURRUURRRRRURURRRUUUUURURRURUURRRUUUUUUURRUUURURUURRRRRRURUURUURUURRURRURURURURRUURRUURRUUUUUURRRUURURUUURURUURRRRUUURURURUURRRRURRUUUURURUURURRRURRURURRUURRRUURRUUUUUUURRRRRRRURURRRRRURRRRURRUUUURURURRRRRUURRURURURUUUURRRRUUUURRRRURURUUUURRURRUUURRRUURRURRRURRRRRRUURUR...

output:

(()(()()(()((((())(()()()())())))(((())(()()))(((()())((())(())((((()()((()))))()(()())((()))))))(()))()())(((((()())())())(()(()()()()(())(())(())))))((())()()))()())(((()))()()())(((()(())))()())()((()(()()(())((())(()))))))((((((()()((((()(((()(())))()()((((())(()()()())))(((())))(((()()())))(()(...

input:

brackets
300
(()(()()(()((((())(()()()())())))(((())(()()))(((()())((())(())((((()()((()))))()(()())((()))))))(()))()())(((((()())())())(()(()()()()(())(())(())))))((())()()))()())(((()))()()())(((()(())))()())()((()(()()(())((())(()))))))((((((()()((((()(((()(())))()()((((())(()()()())))(((())))(((...

output:

RUURRURUUURRRRURUURRRUURRUURRRRRURURRRUUUUURURRURUURRRUUUUUUURRUUURURUURRRRRRURUURUURUURRURRURURURURRUURRUURRUUUUUURRRUURURUUURURUURRRRUUURURURUURRRRURRUUUURURUURURRRURRURURRUURRRUURRUUUUUUURRRRRRRURURRRRRURRRRURRUUUURURURRRRRUURRURURURUUUURRRRUUUURRRRURURUUUURRURRUUURRRUURRURRRURRRRRRUURURUUURUUUUR...

result:

ok correct!

Test #65:

score: 100
Accepted
time: 2ms
memory: 3804kb

input:

path
300
RURRRRUUURUURRRURRRRRRRUUURRUURURRRURRRRURUURURURURUURURUURURUURRRRUURRRRRRUUURRRRRRURURUURRUUURURURUUUURRRUUUUUUUUUURUURURRRURUUUURRUUURRRURRUUURRUURRURRUURURRUUUUUUURUUUUURRRUUURRURRRRUUUUUUURRRRRRURURRRURRURURRRRURURRURURURURURUUURRRUURRRUUURRURRUURURUURRRRUUUURRRRRRUUUURURRURUURUUURRRRR...

output:

((((()()((()(()()(((()()(()()()()()()))((())((()))(()(())()())(((())))(((((())))()(()())()))((((()(()(()()())()())(())()()()))(()))(()()((()(((((((())()())()()))))())()())(((())()))())((()((()()(())(()())))(((()()))())))))()(((((()))(())))(()))(((()())()))(((()((((()(((()))(()()()))()((()))()(())(()...

input:

brackets
300
((((()()((()(()()(((()()(()()()()()()))((())((()))(()(())()())(((())))(((((())))()(()())()))((((()(()(()()())()())(())()()()))(()))(()()((()(((((((())()())()()))))())()())(((())()))())((()((()()(())(()())))(((()()))())))))()(((((()))(())))(()))(((()())()))(((()((((()(((()))(()()()))()((...

output:

RURRRRUUURUURRRURRRRRRRUUURRUURURRRURRRRURUURURURURUURURUURURUURRRRUURRRRRRUUURRRRRRURURUURRUUURURURUUUURRRUUUUUUUUUURUURURRRURUUUURRUUURRRURRUUURRUURRURRUURURRUUUUUUURUUUUURRRUUURRURRRRUUUUUUURRRRRRURURRRURRURURRRRURURRURURURURURUUURRRUURRRUUURRURRUURURUURRRRUUUURRRRRRUUUURURRURUURUUURRRRRURRURRURU...

result:

ok correct!

Test #66:

score: 100
Accepted
time: 2ms
memory: 3620kb

input:

path
300
UURRRUURUUUUURRUUUUURRUURUUURRRURURRUUURRURURRRRUURRUURURRRRRRRUUURUUUURRUURURRRRRRUURUUURUURRRRURURRRRRRRURRURRURRUURRRRRRUURURUURRRRURRRRURUURRRUURRUUUURURURRUUUURRUUUURRRURRURUURRUUURURRRRUUUUUUURURUURRURUUUUURUUUURRURUURURURURRUURURURRURURURRRURRRURRURRUUURRRRURUURUURRRUURUUURRURRRURRRU...

output:

(()()(()))(()()(((())(())()((((((()))())))(())()(((((())()))())(((()()((((((()(()(()(())(((((())()())(((()(((()())((())(())))()()(())))(())))((()(()())(()))()(((()))))))()())(()()))))())))(()())()()()(())()()(()()()((()((()(()(()))(((()())())((())()))(()((()((()))(()(()()))())))()(((())()(()())(()))...

input:

brackets
300
(()()(()))(()()(((())(())()((((((()))())))(())()(((((())()))())(((()()((((((()(()(()(())(((((())()())(((()(((()())((())(())))()()(())))(())))((()(()())(()))()(((()))))))()())(()()))))())))(()())()()()(())()()(()()()((()((()(()(()))(((()())())((())()))(()((()((()))(()(()()))())))()(((())...

output:

UURRRUURUUUUURRUUUUURRUURUUURRRURURRUUURRURURRRRUURRUURURRRRRRRUUURUUUURRUURURRRRRRUURUUURUURRRRURURRRRRRRURRURRURRUURRRRRRUURURUURRRRURRRRURUURRRUURRUUUURURURRUUUURRUUUURRRURRURUURRUUURURRRRUUUUUUURURUURRURUUUUURUUUURRURUURURURURRUURURURRURURURRRURRRURRURRUUURRRRURUURUURRRUURUUURRURRRURRRUUURRURRUR...

result:

ok correct!

Test #67:

score: 100
Accepted
time: 4ms
memory: 3724kb

input:

path
300
RURUUURRURUURURUUURUURRRURRRRRRUURUURRRURUUUURURUUURRRURUURURRRURURUUURRRRRUURRUUUUUURUURURRURURURRRRRRRRRRURURUURURRUUURURRUUUUUUURRURUURRURUURRUURRURRURRUUUUURRRURRUURURURRRRRUURURUUURUURURUURUURUURRRRURRURRRRUURURUUUUUURURURURURUURRRRUURURRRRUUUURRURUURRRURUUURUUURRRRRRUUUURRRUURRUUUUURR...

output:

((()()((((()))(()))(((()()())()((((((())((()(((((()())))()((())()))())()()()((()))))))))))())()((()()))(()(((())))(()))((()(()()()(()(())()()())))(((((((())())))((()()(((()))))(((((((()())(())())(()())))(()))))()))((()()()))()(()((())))(()()))(()())()()))())((()(((((())())((()())))()()))((()())()(((...

input:

brackets
300
((()()((((()))(()))(((()()())()((((((())((()(((((()())))()((())()))())()()()((()))))))))))())()((()()))(()(((())))(()))((()(()()()(()(())()()())))(((((((())())))((()()(((()))))(((((((()())(())())(()())))(()))))()))((()()()))()(()((())))(()()))(()())()()))())((()(((((())())((()())))()())...

output:

RURUUURRURUURURUUURUURRRURRRRRRUURUURRRURUUUURURUUURRRURUURURRRURURUUURRRRRUURRUUUUUURUURURRURURURRRRRRRRRRURURUURURRUUURURRUUUUUUURRURUURRURUURRUURRURRURRUUUUURRRURRUURURURRRRRUURURUUURUURURUURUURUURRRRURRURRRRUURURUUUUUURURURURURUURRRRUURURRRRUUUURRURUURRRURUUURUUURRRRRRUUUURRRUURRUUUUURRURURRRUUR...

result:

ok correct!

Test #68:

score: 100
Accepted
time: 4ms
memory: 3576kb

input:

path
300
RURUURRUUURRURURRRRRRRURRUURRRRRRRURRURURRUURURURURUURUUURRURURURRURUURRURURRUURRRRRRRRRUURURUUURRRRRUURRRRUUUUURURRUURUURUURURRUUURRRUUUUURUURURRRURRRRRRURRRUUURRRRUURRRUURURURUUUUURUUURRURRUUUUUUURUUURRRRRRURURURRRUUUUURURUURRRUUURURUUUUUUURURRRRRRRURRURUURRRRRRURRRURUUURRUUUUUUURUUUURRRU...

output:

((((())(())()(()))((())))()(((())(()))((()))((()((()()()()()))(())(()()))((())))))()((()(())(()((()((((()))(())()((())))(()())((()())(()))(()()((((((()(())((((((()(()()(())()()()())()))(()()()(()())(()()(())((((((((())()()))((((())(((()))))()(())())())()(()))((()))))())()((()(((((()((()))(((())((())...

input:

brackets
300
((((())(())()(()))((())))()(((())(()))((()))((()((()()()()()))(())(()()))((())))))()((()(())(()((()((((()))(())()((())))(()())((()())(()))(()()((((((()(())((((((()(()()(())()()()())()))(()()()(()())(()()(())((((((((())()()))((((())(((()))))()(())())())()(()))((()))))())()((()(((((()((()...

output:

RURUURRUUURRURURRRRRRRURRUURRRRRRRURRURURRUURURURURUURUUURRURURURRURUURRURURRUURRRRRRRRRUURURUUURRRRRUURRRRUUUUURURRUURUURUURURRUUURRRUUUUURUURURRRURRRRRRURRRUUURRRRUURRRUURURURUUUUURUUURRURRUUUUUUURUUURRRRRRURURURRRUUUUURURUURRRUUURURUUUUUUURURRRRRRRURRURUURRRRRRURRRURUUURRUUUUUUURUUUURRRURURRURUUR...

result:

ok correct!

Test #69:

score: 100
Accepted
time: 0ms
memory: 3580kb

input:

path
300
RRRRRRRRRRUURRRRURRURRURUUUURRRUUURUUUURRURRUUURRURRURRUURRURUURRURRRRRRURRUURURRRURURRUUUURURUURRUUUUUUUURUUUURRRRRRRRURURUURUURURURRURRRRRRRRRUUUUURURURUUURRUUUURRRRURRUURURUURRURRRRURUUURUUURRRRRUUURRRRRURRRRURURRUURURURRUURURURRURUUUURRRUUURURRRRURUUUUUUUUURURUUUUUUURRRUURRURUURURRRRURR...

output:

(((((((((())(((()(()(()())))((()))())))(()(()))(()(()(())(()())(()(((((()(())()((()()(())))()())(())))))))())))(((((((()()())())()()(()((((((((()))))()()()))(())))(((()(())()())(()(((()()))()))((((()))((((()(((()()(())()()(())()()(()())))((()))()(((()()))))))))()()))))))((())(()())()(((()(()))))()((...

input:

brackets
300
(((((((((())(((()(()(()())))((()))())))(()(()))(()(()(())(()())(()(((((()(())()((()()(())))()())(())))))))())))(((((((()()())())()()(()((((((((()))))()()()))(())))(((()(())()())(()(((()()))()))((((()))((((()(((()()(())()()(())()()(()())))((()))()(((()()))))))))()()))))))((())(()())()(((...

output:

RRRRRRRRRRUURRRRURRURRURUUUURRRUUURUUUURRURRUUURRURRURRUURRURUURRURRRRRRURRUURURRRURURRUUUURURUURRUUUUUUUURUUUURRRRRRRRURURUURUURURURRURRRRRRRRRUUUUURURURUUURRUUUURRRRURRUURURUURRURRRRURUUURUUURRRRRUUURRRRRURRRRURURRUURURURRUURURURRURUUUURRRUUURURRRRURUUUUUUUUURURUUUUUUURRRUURRURUURURRRRURRUUUUURURR...

result:

ok correct!

Test #70:

score: 100
Accepted
time: 4ms
memory: 3776kb

input:

path
300
RUUUURRRUURRUUURURURRURUUUURRRUURRURUURRURRURURRUURURRRRUURURRURURURURURUURUURRRURRURURUUURRRRUURRRRUURRRURRUUURUUUUURUUUUURRRURRRRUURRURRUURURRRRRUURUUURRUURUURRRURRURURURUURRRRUUURRURRUURRRRUUUURUURUURURUUURURURRRURRURURRURRRRRRUUURUUURUUURURURRUURRRUUURURUURRURURRUUURURRUURUUUUURUURRURUU...

output:

(((()(())((()(((()(()))()())))(())((())()()())())(()))(())()()(()(()()())())()(((())()()(())(((((()(())((()((())(())))((())(()))()()(()())))((())(()())(()(()()(())()(((())()(()()()()()())())((()(()()()))(((())(((())((()(()))()))))()))))((()(((())(()(())()((((())()))(())())((()(()()()())(((()))(()(()...

input:

brackets
300
(((()(())((()(((()(()))()())))(())((())()()())())(()))(())()()(()(()()())())()(((())()()(())(((((()(())((()((())(())))((())(()))()()(()())))((())(()())(()(()()(())()(((())()(()()()()()())())((()(()()()))(((())(((())((()(()))()))))()))))((()(((())(()(())()((((())()))(())())((()(()()()())...

output:

RUUUURRRUURRUUURURURRURUUUURRRUURRURUURRURRURURRUURURRRRUURURRURURURURURUURUURRRURRURURUUURRRRUURRRRUURRRURRUUURUUUUURUUUUURRRURRRRUURRURRUURURRRRRUURUUURRUURUURRRURRURURURUURRRRUUURRURRUURRRRUUUURUURUURURUUURURURRRURRURURRURRRRRRUUURUUURUUURURURRUURRRUUURURUURRURURRUUURURRUURUUUUURUURRURUURRRURRURR...

result:

ok correct!

Test #71:

score: 100
Accepted
time: 4ms
memory: 3724kb

input:

path
300
RRRRRURUUUURRRRUUUUUURUUUURRUURURRRRURRUUURUUUUURRUURURURURUURUUUURRRUURUURUUUURRRRUUURURRRUURUUUUUURUURRRRURURRUUURRUUURRRURURRURRRRRUUURRRRRRRRURRRURRURURUUURRRURUUURRUUURRRRRRRRUUURURRRRRRRRURURRRUURURURURUURUUURUURRURUUUURUUUUUURURRURURRRUUURRRRUURRURRRURUURUUURURUUURURUUUURURURRRRUURRR...

output:

((()()(()))(()))((()()(()((((()))(((((((()((()(()()()))((()()))(()))(((((((()))()(((((((()()((())()()()())()))())(()())))())))))()(()()((()))(((())(()((()())()))()()))()())))()()(((())((((()(()()((()))(((()))((()())))()()))))((((((()()((()()()))())())()))))()))(()()())()()()))))((()((())()))()((())(...

input:

brackets
300
((()()(()))(()))((()()(()((((()))(((((((()((()(()()()))((()()))(()))(((((((()))()(((((((()()((())()()()())()))())(()())))())))))()(()()((()))(((())(()((()())()))()()))()())))()()(((())((((()(()()((()))(((()))((()())))()()))))((((((()()((()()()))())())()))))()))(()()())()()()))))((()((()...

output:

RRRRRURUUUURRRRUUUUUURUUUURRUURURRRRURRUUURUUUUURRUURURURURUURUUUURRRUURUURUUUURRRRUUURURRRUURUUUUUURUURRRRURURRUUURRUUURRRURURRURRRRRUUURRRRRRRRURRRURRURURUUURRRURUUURRUUURRRRRRRRUUURURRRRRRRRURURRRUURURURURUURUUURUURRURUUUURUUUUUURURRURURRRUUURRRRUURRURRRURUURUUURURUUURURUUUURURURRRRUURRRRRURRURUR...

result:

ok correct!