QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#233704#5236. Wersja dla profesjonalistów [A]WhangZjian6 2ms4092kbC++14926b2023-10-31 21:35:552023-10-31 21:35:55

Judging History

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

  • [2023-10-31 21:35:55]
  • 评测
  • 测评结果:6
  • 用时:2ms
  • 内存:4092kb
  • [2023-10-31 21:35:55]
  • 提交

answer

#include<bits/stdc++.h>
#define int long long
using namespace std;
const int r=4;
string prt(string s,int x){
	string res;
	int t=1;
	for(;t<=x;t*=r); 
	for(;t>1;t/=r){
		if(res.size()>0) res="4["+res+"]";
		for(int j=1;j<=x/(t/r)%r;j++){
			res=res+s;
		}
	}
	return res;
}
void solve(int n){
	if(n<=2){
		if(n==1) printf("AE");
		else printf("AEACAEE");
		return;
	}
	int x=(n-1)/2;
	printf("2[");solve(x);printf("]");
	if(n-x*2==1){
		cout<<prt("AC",n-1);
	}
	else{
		cout<<"AE";
		cout<<prt("AC",n-1);
		cout<<prt("E",n-2);
		cout<<"C"<<prt("AC",n-3);
	}
	if(x==1) printf("EC");
	else{
	//	int sum=0; 
	//	sum+=prt(x-1);
	//	printf("%d[",x-1);
		string s;
		s=prt("E",x)+"C"+prt("AC",x-1);
		cout<<prt(s,x);
	/*	printf("C");
		printf("%d[AC]",x-1);
		printf("%d[E]",x);*/
	}
	cout<<prt("A",n-x)<<prt("E",n);
	
}
signed main(){
	int n;cin>>n;solve(n);
	cout<<prt("C",n);
}

详细

Subtask #1:

score: 1
Accepted

Test #1:

score: 1
Accepted
time: 0ms
memory: 3924kb

input:

1

output:

AEC

result:

ok correct (length = 3)

Test #2:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

2

output:

AEACAEECC

result:

ok correct (length = 13)

Test #3:

score: 0
Accepted
time: 0ms
memory: 3628kb

input:

4

output:

2[AE]AEACACACEECACECAAA4[E]4[C]

result:

ok correct (length = 30)

Test #4:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

5

output:

2[AEACAEE]4[AC]EECACEECACAAA4[E]E4[C]C

result:

ok correct (length = 43)

Test #5:

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

input:

6

output:

2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE4[C]CC

result:

ok correct (length = 53)

Test #6:

score: 0
Accepted
time: 0ms
memory: 3924kb

input:

7

output:

2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE4[C]CCC

result:

ok correct (length = 53)

Test #7:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

10

output:

2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE4[CC]CC

result:

ok correct (length = 79)

Test #8:

score: 0
Accepted
time: 0ms
memory: 3748kb

input:

69

output:

2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]AE4[ACACAC]ACACAC4[EEE]EEC4[ACACAC]AC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]A4[4[E]]]AE4[4[ACAC]]AC4[4[EE]]C4[4[AC]ACACAC]ACACAC4[4[4[4[E]]C4[ACACAC]ACACAC]]4[4[A]]AA4[4[EE]]EE]4[4[4[AC]]AC]4[4...

result:

ok correct (length = 277)

Test #9:

score: 0
Accepted
time: 0ms
memory: 3892kb

input:

100

output:

2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]4[ACAC]ACAC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AA4[EE]EEE]AE4[4[AC]AC]ACACAC4[4[E]E]EEC4[4[AC]AC]AC4[4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC]4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[AAA]A4[4[E]EE]]4[4[ACACAC]]4[4[4[4[E]EE]C4[4[AC]AC]ACACAC]4[4...

result:

ok correct (length = 312)

Test #10:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

101

output:

2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]4[ACAC]ACAC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AA4[EE]EEE]AE4[4[AC]AC]ACACAC4[4[E]E]EEC4[4[AC]AC]AC4[4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC]4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[AAA]A4[4[E]EE]]AE4[4[ACACAC]]AC4[4[EEE]]C4[4[ACAC]ACACAC]ACAC...

result:

ok correct (length = 321)

Test #11:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

250

output:

2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]AE4[4[AC]ACACAC]AC4[4[E]EEE]C4[4[AC]ACAC]ACACAC4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC...

result:

ok correct (length = 526)

Test #12:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

251

output:

2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]AE4[4[AC]ACACAC]AC4[4[E]EEE]C4[4[AC]ACAC]ACACAC4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC...

result:

ok correct (length = 456)

Test #13:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

252

output:

2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]AE4[4[AC]ACACAC]AC4[4[E]EEE]C4[4[AC]ACAC]ACACAC4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC...

result:

ok correct (length = 479)

Test #14:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

299

output:

2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]4[4[AC]]4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]A4[4[E]]E]AE4[4[ACAC]]ACACAC4[4[EE]]EEC4[4[ACAC]]AC4[4[4[4[E]]EC4[4[AC]]]]4[4[E]]EC4[4[AC]]4[4[A]]AAA4[4[EE]E]]AE4[4[4[AC]]ACAC]AC4[4[4[E]]EE]C4[4[4[AC]]AC]ACA...

result:

ok correct (length = 486)

Test #15:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

300

output:

2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]4[4[AC]]4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]A4[4[E]]E]AE4[4[ACAC]]ACACAC4[4[EE]]EEC4[4[ACAC]]AC4[4[4[4[E]]EC4[4[AC]]]]4[4[E]]EC4[4[AC]]4[4[A]]AAA4[4[EE]E]]AE4[4[4[AC]]ACAC]AC4[4[4[E]]EE]C4[4[4[AC]]AC]ACA...

result:

ok correct (length = 515)

Subtask #2:

score: 1
Accepted

Test #16:

score: 1
Accepted
time: 0ms
memory: 3996kb

input:

320

output:

2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]4[ACAC]4[4[E]CACACAC]4[A]A4[EE]E]4[4[AC]]ACAC4[4[EE]EC4[ACAC]4[EE]EC4[ACAC]]4[EE]EC4[ACAC]4[AA]AA4[4[E]]EEE]4[4[ACAC]AC]ACAC4[4[4[4[E]]EEEC4[4[AC]]ACAC]]4[4[E]]EEEC4[4[AC]]ACAC4[4[E]]EEEC4[4[AC]]ACAC4[4[E]]EEEC4[4[AC]]ACAC4[4[A]A]4[4[EE]E]EEE]4[4[4[AC]]ACACAC]...

result:

ok correct (length = 555)

Test #17:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

321

output:

2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]4[ACAC]4[4[E]CACACAC]4[A]A4[EE]E]4[4[AC]]ACAC4[4[EE]EC4[ACAC]4[EE]EC4[ACAC]]4[EE]EC4[ACAC]4[AA]AA4[4[E]]EEE]4[4[ACAC]AC]ACAC4[4[4[4[E]]EEEC4[4[AC]]ACAC]]4[4[E]]EEEC4[4[AC]]ACAC4[4[E]]EEEC4[4[AC]]ACAC4[4[E]]EEEC4[4[AC]]ACAC4[4[A]A]4[4[EE]E]EEE]4[4[4[AC]]ACACAC]...

result:

ok correct (length = 507)

Test #18:

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

input:

1000

output:

2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]AE4[4[AC]ACACAC]AC4[4[E]EEE]C4[4[AC]ACAC]ACACAC4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[AC...

result:

ok correct (length = 809)

Test #19:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

1024

output:

2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC...

result:

ok correct (length = 663)

Test #20:

score: 0
Accepted
time: 0ms
memory: 4000kb

input:

1235

output:

2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]AE4[4[AC]]AC4[4[E]]C4[ACACAC]ACACAC4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]AA4[4[E]]EE]4[4[ACAC]AC]4[4[4[4[E]]EEC4[4[AC]]AC]]4[4[E]]EEC4[4[AC]]AC4[4[E]]EEC4[4[AC]]AC4[4[A]]AAA4[4[EE]E]E]AE4[4[4[AC]]ACAC]...

result:

ok correct (length = 934)

Test #21:

score: 0
Accepted
time: 0ms
memory: 3956kb

input:

4094

output:

2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]AE4[4[AC]ACACAC]AC4[4[E]EEE]C4[4[AC]ACAC]ACACAC4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC...

result:

ok correct (length = 1296)

Test #22:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

4095

output:

2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACACAC]ACAC4[EEE]...

result:

ok correct (length = 1027)

Test #23:

score: 0
Accepted
time: 0ms
memory: 3936kb

input:

4096

output:

2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACACAC]ACAC4[EEE]...

result:

ok correct (length = 1056)

Test #24:

score: 0
Accepted
time: 0ms
memory: 3956kb

input:

4097

output:

2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACACAC]ACAC4[EEE]...

result:

ok correct (length = 933)

Test #25:

score: 0
Accepted
time: 0ms
memory: 3916kb

input:

4998

output:

2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]AE4[4[AC]]AC4[4[E]]C4[ACACAC]ACACAC4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]AA4[4[E]]EE]AE4[4[ACAC]AC]AC4[4[EE]E]C4[4[ACAC]]ACACAC4[4[4[4[E]]EEC4[4[AC]]AC]]4[4[E]]EEC4[4[AC]]AC4[4[E]]EEC4[4[AC]]AC4[4[...

result:

ok correct (length = 1662)

Test #26:

score: 0
Accepted
time: 0ms
memory: 3780kb

input:

4999

output:

2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]AE4[4[AC]]AC4[4[E]]C4[ACACAC]ACACAC4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]AA4[4[E]]EE]AE4[4[ACAC]AC]AC4[4[EE]E]C4[4[ACAC]]ACACAC4[4[4[4[E]]EEC4[4[AC]]AC]]4[4[E]]EEC4[4[AC]]AC4[4[E]]EEC4[4[AC]]AC4[4[...

result:

ok correct (length = 1391)

Test #27:

score: 0
Accepted
time: 0ms
memory: 3940kb

input:

5000

output:

2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]AE4[4[AC]]AC4[4[E]]C4[ACACAC]ACACAC4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]AA4[4[E]]EE]AE4[4[ACAC]AC]AC4[4[EE]E]C4[4[ACAC]]ACACAC4[4[4[4[E]]EEC4[4[AC]]AC]]4[4[E]]EEC4[4[AC]]AC4[4[E]]EEC4[4[AC]]AC4[4[...

result:

ok correct (length = 1427)

Subtask #3:

score: 1
Accepted

Test #28:

score: 1
Accepted
time: 1ms
memory: 3976kb

input:

1000000

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]4[4[AC]ACACAC]4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[AAA]...

result:

ok correct (length = 3639)

Test #29:

score: 0
Accepted
time: 1ms
memory: 3948kb

input:

999998

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]4[4[AC]ACACAC]4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[AAA]...

result:

ok correct (length = 3998)

Test #30:

score: 0
Accepted
time: 1ms
memory: 3704kb

input:

524286

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]AE4[4[AC]ACACAC]AC4[4[E]EEE]C4[4[AC]ACAC]ACACAC4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACAC...

result:

ok correct (length = 4435)

Test #31:

score: 0
Accepted
time: 0ms
memory: 3860kb

input:

524288

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACA...

result:

ok correct (length = 3385)

Test #32:

score: 0
Accepted
time: 1ms
memory: 3680kb

input:

524290

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACA...

result:

ok correct (length = 3262)

Test #33:

score: 0
Accepted
time: 0ms
memory: 3764kb

input:

786429

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]AE4[4[AC]AC]AC4[4[E]E]C4[4[AC]]ACACAC4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AAA]4[4[E]E]EE]AE4[4[ACAC]ACACAC]AC4[4[EE]EEE]C4[4[ACAC]ACAC]ACACAC4[4[4...

result:

ok correct (length = 4370)

Test #34:

score: 0
Accepted
time: 1ms
memory: 3648kb

input:

786431

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]4[ACAC]ACAC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AA4[EE]EEE]4[4[AC]AC]ACAC4[4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC]4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[AAA]4[4[E]E]EEE]4[4[ACAC]ACACAC]ACAC4[4[4[4[E]E]EEEC4[4[AC]AC]...

result:

ok correct (length = 3562)

Test #35:

score: 0
Accepted
time: 0ms
memory: 3784kb

input:

951557

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]4[ACACAC]4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[A]AAA4[EEE]E]AE4[4[AC]ACAC]ACACAC4[4[E]EE]EEC4[4[AC]ACAC]AC4[4[EEE]EC4[ACACAC]4[EEE]EC4[ACACAC]4[EEE]EC4[ACACAC]]4[EEE]EC4[ACACAC]4[AAA]AAA4[4[E]EEE]]4[4[ACACA...

result:

ok correct (length = 4718)

Test #36:

score: 0
Accepted
time: 0ms
memory: 3748kb

input:

838702

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]4[ACAC]ACAC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AA4[EE]EEE]AE4[4[AC]AC]ACACAC4[4[E]E]EEC4[4[AC]AC]AC4[4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC]4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[AAA]A4[4[E]EE]]AE4[4[ACACAC]]AC4[4[...

result:

ok correct (length = 4235)

Subtask #4:

score: 1
Accepted

Test #37:

score: 1
Accepted
time: 0ms
memory: 3692kb

input:

999999

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]4[4[AC]ACACAC]4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[AAA]...

result:

ok correct (length = 3585)

Test #38:

score: 0
Accepted
time: 0ms
memory: 4052kb

input:

999997

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]4[4[AC]ACACAC]4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[AAA]...

result:

ok correct (length = 3895)

Test #39:

score: 0
Accepted
time: 1ms
memory: 3824kb

input:

524287

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACA...

result:

ok correct (length = 3337)

Test #40:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

524289

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC]4[EEE]EEEC4[ACA...

result:

ok correct (length = 3207)

Test #41:

score: 0
Accepted
time: 0ms
memory: 3696kb

input:

786428

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]AE4[4[AC]AC]AC4[4[E]E]C4[4[AC]]ACACAC4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AAA]4[4[E]E]EE]AE4[4[ACAC]ACACAC]AC4[4[EE]EEE]C4[4[ACAC]ACAC]ACACAC4[4[4...

result:

ok correct (length = 4475)

Test #42:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

786430

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]AE4[4[AC]AC]AC4[4[E]E]C4[4[AC]]ACACAC4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AAA]4[4[E]E]EE]AE4[4[ACAC]ACACAC]AC4[4[EE]EEE]C4[4[ACAC]ACAC]ACACAC4[4[4...

result:

ok correct (length = 4450)

Test #43:

score: 0
Accepted
time: 0ms
memory: 3988kb

input:

786432

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]4[ACAC]ACAC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AA4[EE]EEE]4[4[AC]AC]ACAC4[4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC]4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[AAA]4[4[E]E]EEE]4[4[ACAC]ACACAC]ACAC4[4[4[4[E]E]EEEC4[4[AC]AC]...

result:

ok correct (length = 3610)

Test #44:

score: 0
Accepted
time: 0ms
memory: 3968kb

input:

724171

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]4[4[AC]AC]4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AA]AAA4[4[E]E]E]4[4[ACAC]ACAC]ACAC4[4[4[4[E]E]EC4[4[AC]AC]]4[4[E]E]EC4[4[AC]AC]]4[4[E]E]EC4[4[AC]AC...

result:

ok correct (length = 3973)

Test #45:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

868406

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]AE4[ACAC]ACACAC4[EE]EEC4[ACAC]AC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AAA4[EEE]]4[4[AC]ACAC]4[4[EEE]C4[ACAC]ACACAC4[EEE]C4[ACAC]ACACAC4[EEE]C4[ACAC]ACACAC]4[AAA]A4[4[E]EE]E]AE4[4[ACACAC]]ACACAC4[4[EEE]]EEC4[4[ACACAC]]AC4[4[4[4[E]EE]EC4[4[AC]...

result:

ok correct (length = 3980)

Subtask #5:

score: 1
Accepted

Test #46:

score: 1
Accepted
time: 1ms
memory: 3840kb

input:

10000000000

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]4[4[AC]]4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]A4[4[E]]E]AE4[4[ACAC]]ACACAC4[4[EE]]EEC4[4[ACAC]]AC4[4[4[4[E]]EC4[4[AC]]]]4[4[E]]EC4[4[AC]]4[4[A]]AAA4[4[EE]E...

result:

ok correct (length = 13934)

Test #47:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

9999999998

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]4[4[AC]]4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]A4[4[E]]E]AE4[4[ACAC]]ACACAC4[4[EE]]EEC4[4[ACAC]]AC4[4[4[4[E]]EC4[4[AC]]]]4[4[E]]EC4[4[AC]]4[4[A]]AAA4[4[EE]E...

result:

ok correct (length = 15092)

Test #48:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

8589934590

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]AE4[4[AC]ACACAC]AC4[4[E]EEE]C4[4[AC]ACAC]ACACAC4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EE...

result:

ok correct (length = 17408)

Test #49:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

8589934592

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4...

result:

ok correct (length = 13498)

Test #50:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

8589934594

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4...

result:

ok correct (length = 12997)

Test #51:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

6442450941

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]AE4[4[AC]AC]AC4[4[E]E]C4[4[AC]]ACACAC4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AAA]4[4[E]E]EE]AE4[4[ACAC]ACACAC]AC4[4[EE]EEE]...

result:

ok correct (length = 15685)

Test #52:

score: 0
Accepted
time: 1ms
memory: 4052kb

input:

6442450943

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]4[ACAC]ACAC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AA4[EE]EEE]4[4[AC]AC]ACAC4[4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC]4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[AAA]4[4[E]E]EEE]4[4[ACAC]ACACAC]ACAC...

result:

ok correct (length = 12812)

Test #53:

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

input:

9220943225

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]AE4[ACACAC]ACACAC4[EEE]EEC4[ACACAC]AC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]A4[4[E]]]4[4[ACAC]]4[4[4[4[E]]C4[ACACAC]ACACAC]]4[4[A]]A4[4[EE]...

result:

ok correct (length = 14047)

Test #54:

score: 0
Accepted
time: 1ms
memory: 4016kb

input:

9147465533

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]AE4[ACACAC]ACACAC4[EEE]EEC4[ACACAC]AC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]A4[4[E]]]4[4[ACAC]]4[4[4[4[E]]C4[ACACAC]ACACAC]]4[4[A]]A4[4[EE]...

result:

ok correct (length = 15129)

Subtask #6:

score: 1
Accepted

Test #55:

score: 1
Accepted
time: 1ms
memory: 3724kb

input:

9999999999

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]4[4[AC]]4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]A4[4[E]]E]AE4[4[ACAC]]ACACAC4[4[EE]]EEC4[4[ACAC]]AC4[4[4[4[E]]EC4[4[AC]]]]4[4[E]]EC4[4[AC]]4[4[A]]AAA4[4[EE]E...

result:

ok correct (length = 13843)

Test #56:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

9999999997

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AE4[AC]ACACAC4[E]EEC4[AC]ACEEECACACEEECACACEEECACAC4[A]A4[EE]]4[4[AC]]4[4[EE]C4[AC]ACACAC4[EE]C4[AC]ACACAC]4[AA]A4[4[E]]E]AE4[4[ACAC]]ACACAC4[4[EE]]EEC4[4[ACAC]]AC4[4[4[4[E]]EC4[4[AC]]]]4[4[E]]EC4[4[AC]]4[4[A]]AAA4[4[EE]E...

result:

ok correct (length = 14941)

Test #57:

score: 0
Accepted
time: 1ms
memory: 3708kb

input:

8589934591

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4...

result:

ok correct (length = 13425)

Test #58:

score: 0
Accepted
time: 1ms
memory: 3912kb

input:

8589934593

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]4[4[AC]ACACAC]ACAC4[4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4[ACACAC]ACAC4[EEE]EEEC4...

result:

ok correct (length = 12918)

Test #59:

score: 0
Accepted
time: 1ms
memory: 3876kb

input:

6442450940

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]AE4[4[AC]AC]AC4[4[E]E]C4[4[AC]]ACACAC4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AAA]4[4[E]E]EE]AE4[4[ACAC]ACACAC]AC4[4[EE]EEE]...

result:

ok correct (length = 15871)

Test #60:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

6442450942

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]AE4[4[AC]AC]AC4[4[E]E]C4[4[AC]]ACACAC4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AAA]4[4[E]E]EE]AE4[4[ACAC]ACACAC]AC4[4[EE]EEE]...

result:

ok correct (length = 15881)

Test #61:

score: 0
Accepted
time: 1ms
memory: 3760kb

input:

6442450944

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]4[ACAC]ACAC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AA4[EE]EEE]4[4[AC]AC]ACAC4[4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC]4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[EE]EEEC4[ACAC]ACAC4[AAA]4[4[E]E]EEE]4[4[ACAC]ACACAC]ACAC...

result:

ok correct (length = 12886)

Test #62:

score: 0
Accepted
time: 1ms
memory: 4012kb

input:

8108001050

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AE4[AC]AC4[E]CACACACEECACEECAC4[A]4[E]EE]AE4[ACACAC]AC4[EEE]C4[ACAC]ACACAC4[4[E]EEC4[AC]AC]4[E]EEC4[AC]AC4[E]EEC4[AC]AC4[AA]4[EEE]EE]4[4[AC]ACACAC]4[4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC4[EEE]EEC4[ACACAC]AC]4[EEE]EEC4[ACACAC]AC...

result:

ok correct (length = 14636)

Test #63:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

8970049853

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]4[AC]ACACEEECACACEEECACACEEECACAC4[A]4[E]EEE]4[ACACAC]ACAC4[4[E]EEEC4[AC]ACAC]4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[E]EEEC4[AC]ACAC4[AA]4[EEE]EEE]AE4[4[AC]ACACAC]ACACAC4[4[E]EEE]EEC4[4[AC]ACACAC]AC4[4[EEE]EEEC4[ACACAC]ACAC4...

result:

ok correct (length = 15947)

Subtask #7:

score: 0
Wrong Answer

Test #64:

score: 0
Wrong Answer
time: 1ms
memory: 4032kb

input:

100000000000000

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]4[4[AC]AC]4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AA]AAA4[4[E]E]E]AE4[4[ACAC]ACAC]ACACAC4[4[EE]...

result:

wrong answer the length of your output (163159) exceeds the constraint (150000)

Subtask #8:

score: 0
Wrong Answer

Test #84:

score: 0
Wrong Answer
time: 0ms
memory: 3888kb

input:

99999999999999

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAA4[E]]AE4[ACAC]AC4[EE]C4[AC]ACACAC4[4[E]CACACAC]4[A]AA4[EE]EE]4[4[AC]AC]4[4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC]4[EE]EEC4[ACAC]AC4[EE]EEC4[ACAC]AC4[AA]AAA4[4[E]E]E]AE4[4[ACAC]ACAC]ACACAC4[4[EE]...

result:

wrong answer the length of your output (162925) exceeds the constraint (150000)

Subtask #9:

score: 0
Wrong Answer

Test #103:

score: 0
Wrong Answer
time: 2ms
memory: 4088kb

input:

1000000000000000000

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]AE4[ACAC]ACACAC4[EE]EEC4[ACAC]AC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AAA4[EEE]]AE4[4[AC]ACAC]AC4[4[E]EE]C4[4[AC]AC]ACACAC4[4[EEE]C4[ACAC]ACACAC4[EEE]C4[ACAC]ACA...

result:

wrong answer the length of your output (374843) exceeds the constraint (150000)

Subtask #10:

score: 0
Wrong Answer

Test #128:

score: 0
Wrong Answer
time: 2ms
memory: 4092kb

input:

999999999999999999

output:

2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]4[AC]EECACEECACAAA4[E]E]AE4[ACAC]ACACAC4[EE]EEC4[ACAC]AC4[4[E]EC4[AC]]4[E]EC4[AC]4[A]AAA4[EEE]]AE4[4[AC]ACAC]AC4[4[E]EE]C4[4[AC]AC]ACACAC4[4[EEE]C4[ACAC]ACACAC4[EEE]C4[ACAC]ACA...

result:

wrong answer the length of your output (374531) exceeds the constraint (150000)