QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#233700 | #5236. Wersja dla profesjonalistów [A] | WhangZjian | 6 | 2ms | 4048kb | C++14 | 926b | 2023-10-31 21:34:30 | 2023-10-31 21:34:30 |
answer
#include<bits/stdc++.h>
#define int long long
using namespace std;
const int r=9;
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="9["+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: 3644kb
input:
1
output:
AEC
result:
ok correct (length = 3)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3924kb
input:
2
output:
AEACAEECC
result:
ok correct (length = 13)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
4
output:
2[AE]AEACACACEECACECAAAEEEECCCC
result:
ok correct (length = 30)
Test #4:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
5
output:
2[AEACAEE]ACACACACEECACEECACAAAEEEEECCCCC
result:
ok correct (length = 43)
Test #5:
score: 0
Accepted
time: 0ms
memory: 3920kb
input:
6
output:
2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEECCCCCC
result:
ok correct (length = 53)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3924kb
input:
7
output:
2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEECCCCCCC
result:
ok correct (length = 53)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
10
output:
2[2[AE]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E9[C]C
result:
ok correct (length = 79)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
69
output:
2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]AE9[AC]ACACACACACAC9[E]EEEEEC9[AC]ACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACAC9[A]9[E]EEEEEEE]AE9[ACACAC]ACACACACACAC9[EEE]...
result:
ok correct (length = 277)
Test #9:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
100
output:
2[2[2[2[2[AEACAEE]ACACACACEECACEECACAAAEEEEE]9[AC]ACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAA9[E]EE]AE9[ACAC]ACACACACAC9[EE]EEEEC9[ACAC]ACACAC9[9[E]EEC9[AC]AC]9[E]EEC9[AC]AC9[E]EEC9[AC]AC9[A]AAAA9[EE]EEEEEE]9[ACACACACAC]ACACAC9[9[EE]EEEEEEC9[ACAC]ACACACACAC9[EE]EEE...
result:
ok correct (length = 312)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
101
output:
2[2[2[2[2[AEACAEE]ACACACACEECACEECACAAAEEEEE]9[AC]ACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAA9[E]EE]AE9[ACAC]ACACACACAC9[EE]EEEEC9[ACAC]ACACAC9[9[E]EEC9[AC]AC]9[E]EEC9[AC]AC9[E]EEC9[AC]AC9[A]AAAA9[EE]EEEEEE]AE9[ACACACACAC]ACACACAC9[EEEEE]EEEC9[ACACACACAC]ACAC9[9[EE...
result:
ok correct (length = 321)
Test #11:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
250
output:
2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]AE9[ACACAC]ACAC9[EEE]EC9[ACACAC]9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACAC9[E...
result:
ok correct (length = 526)
Test #12:
score: 0
Accepted
time: 0ms
memory: 3936kb
input:
251
output:
2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]AE9[ACACAC]ACAC9[EEE]EC9[ACACAC]9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACAC9[E...
result:
ok correct (length = 456)
Test #13:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
252
output:
2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]AE9[ACACAC]ACAC9[EEE]EC9[ACACAC]9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACAC9[E...
result:
ok correct (length = 479)
Test #14:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
299
output:
2[2[2[2[2[2[2[AE]ACACECAAEEE]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]9[AC]ACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACA...
result:
ok correct (length = 486)
Test #15:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
300
output:
2[2[2[2[2[2[2[AE]ACACECAAEEE]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]9[AC]ACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACA...
result:
ok correct (length = 515)
Subtask #2:
score: 1
Accepted
Test #16:
score: 1
Accepted
time: 0ms
memory: 3776kb
input:
320
output:
2[2[2[2[2[2[2[AE]AEACACACEECACECAAAEEEE]ACACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAA9[E]]9[ACAC]9[9[E]CACACACACACACACAC]9[A]A9[EE]E]9[ACACACAC]ACAC9[9[EE]EC9[ACAC]9[EE]EC9[ACAC]]9[EE]EC9[ACAC]9[AA]AA9[EEEE]EEE]9[ACACACACACACACAC]ACACACACACAC9[9[EEEE]EEEC9[ACACACAC]ACAC9[EEEE]EEE...
result:
ok correct (length = 555)
Test #17:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
321
output:
2[2[2[2[2[2[2[AE]AEACACACEECACECAAAEEEE]ACACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAA9[E]]9[ACAC]9[9[E]CACACACACACACACAC]9[A]A9[EE]E]9[ACACACAC]ACAC9[9[EE]EC9[ACAC]9[EE]EC9[ACAC]]9[EE]EC9[ACAC]9[AA]AA9[EEEE]EEE]9[ACACACACACACACAC]ACACACACACAC9[9[EEEE]EEEC9[ACACACAC]ACAC9[EEEE]EEE...
result:
ok correct (length = 507)
Test #18:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
1000
output:
2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]AE9[ACACAC]ACAC9[EEE]EC9[ACACAC]9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACA...
result:
ok correct (length = 809)
Test #19:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
1024
output:
2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEEC9[AC]ACACACACAC]9...
result:
ok correct (length = 663)
Test #20:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
1235
output:
2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]AE9[AC]ACACACACACACACAC9[E]EEEEEEEC9[AC]ACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEE...
result:
ok correct (length = 934)
Test #21:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
4094
output:
2[2[2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]AE9[ACACAC]ACAC9[EEE]EC9[ACACAC]9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACA...
result:
ok correct (length = 1296)
Test #22:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
4095
output:
2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEEC9[AC]ACACACAC...
result:
ok correct (length = 1027)
Test #23:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
4096
output:
2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEEC9[AC]ACACACAC...
result:
ok correct (length = 1056)
Test #24:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
4097
output:
2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEEC9[AC]ACACACAC...
result:
ok correct (length = 933)
Test #25:
score: 0
Accepted
time: 0ms
memory: 4032kb
input:
4998
output:
2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]AE9[AC]ACACACACACACACAC9[E]EEEEEEEC9[AC]ACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEE...
result:
ok correct (length = 1662)
Test #26:
score: 0
Accepted
time: 0ms
memory: 3960kb
input:
4999
output:
2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]AE9[AC]ACACACACACACACAC9[E]EEEEEEEC9[AC]ACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEE...
result:
ok correct (length = 1391)
Test #27:
score: 0
Accepted
time: 0ms
memory: 3932kb
input:
5000
output:
2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]AE9[AC]ACACACACACACACAC9[E]EEEEEEEC9[AC]ACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEE...
result:
ok correct (length = 1427)
Subtask #3:
score: 1
Accepted
Test #28:
score: 1
Accepted
time: 0ms
memory: 4004kb
input:
1000000
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]9[ACACAC]AC9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACAC...
result:
ok correct (length = 3639)
Test #29:
score: 0
Accepted
time: 0ms
memory: 3960kb
input:
999998
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]9[ACACAC]AC9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACAC...
result:
ok correct (length = 3998)
Test #30:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
524286
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]AE9[ACACAC]ACAC9[EEE]EC9[ACACAC]9[9[E]EEEEEC9[AC]ACACACAC]9[E]...
result:
ok correct (length = 4435)
Test #31:
score: 0
Accepted
time: 0ms
memory: 3952kb
input:
524288
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEE...
result:
ok correct (length = 3385)
Test #32:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
524290
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEE...
result:
ok correct (length = 3262)
Test #33:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
786429
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]AE9[ACAC]ACACAC9[EE]EEC9[ACAC]AC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AAA9[EE]EEEE]AE9[ACACACACAC]9[EEEE]EEEEEEEEC9[ACACACAC]ACACACACACACAC9[9[EE]EEEEC9[ACAC]ACA...
result:
ok correct (length = 4370)
Test #34:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
786431
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]ACACACACEECACEECACAAAEEEEE]9[AC]ACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAA9[E]EE]9[ACAC]ACACACAC9[9[E]EEC9[AC]AC]9[E]EEC9[AC]AC9[E]EEC9[AC]AC9[A]AAA9[EE]EEEEE]9[ACACACACAC]AC9[9[EE]EEEEEC9[ACAC]ACACACAC9[EE]EEEEEC9[ACAC]...
result:
ok correct (length = 3562)
Test #35:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
951557
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]9[AC]ACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAA9[E]EEEE]AE9[ACACAC]9[EE]EEEEEEEEC9[ACAC]ACACACACACACAC9[9[E]EEEEC9[AC]ACACAC]9[E]EEEEC9[AC]...
result:
ok correct (length = 4718)
Test #36:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
838702
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]ACACACACEECACEECACAAAEEEEE]9[AC]ACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAA9[E]EE]AE9[ACAC]ACACACACAC9[EE]EEEEC9[ACAC]ACACAC9[9[E]EEC9[AC]AC]9[E]EEC9[AC]AC9[E]EEC9[AC]AC9[A]AAAA9[EE]EEEEEE]AE9[ACACACACAC]ACACACAC9[EEEEE]E...
result:
ok correct (length = 4235)
Subtask #4:
score: 1
Accepted
Test #37:
score: 1
Accepted
time: 1ms
memory: 3952kb
input:
999999
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]9[ACACAC]AC9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACAC...
result:
ok correct (length = 3585)
Test #38:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
999997
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]9[ACACAC]AC9[9[E]EEEEEC9[AC]ACACACAC]9[E]EEEEEC9[AC]ACACACAC...
result:
ok correct (length = 3895)
Test #39:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
524287
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEE...
result:
ok correct (length = 3337)
Test #40:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
524289
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACECAAEEE]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE]9[ACACAC]ACACAC9[9[E]EEEEEE...
result:
ok correct (length = 3207)
Test #41:
score: 0
Accepted
time: 0ms
memory: 3980kb
input:
786428
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]AE9[ACAC]ACACAC9[EE]EEC9[ACAC]AC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AAA9[EE]EEEE]AE9[ACACACACAC]9[EEEE]EEEEEEEEC9[ACACACAC]ACACACACACACAC9[9[EE]EEEEC9[ACAC]ACA...
result:
ok correct (length = 4475)
Test #42:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
786430
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]AE9[ACAC]ACACAC9[EE]EEC9[ACAC]AC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AAA9[EE]EEEE]AE9[ACACACACAC]9[EEEE]EEEEEEEEC9[ACACACAC]ACACACACACACAC9[9[EE]EEEEC9[ACAC]ACA...
result:
ok correct (length = 4450)
Test #43:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
786432
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]ACACACACEECACEECACAAAEEEEE]9[AC]ACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAA9[E]EE]9[ACAC]ACACACAC9[9[E]EEC9[AC]AC]9[E]EEC9[AC]AC9[E]EEC9[AC]AC9[A]AAA9[EE]EEEEE]9[ACACACACAC]AC9[9[EE]EEEEEC9[ACAC]ACACACAC9[EE]EEEEEC9[ACAC]...
result:
ok correct (length = 3610)
Test #44:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
724171
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]9[ACAC]ACAC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AA9[EE]EEE]9[ACACACAC]ACACACACACAC9[9[EE]EEEC9[ACAC]ACAC9[EE]EEEC9[ACAC]ACAC]9[EE]EEEC9[ACAC]ACAC9[EE]EEEC9[ACAC...
result:
ok correct (length = 3973)
Test #45:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
868406
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AEACAEE]ACACACACEECACEECACAAAEEEEE]AE9[AC]ACAC9[E]EC9[AC]EEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAAA9[E]EEE]9[ACAC]ACACACACACAC9[9[E]EEEC9[AC]ACAC]9[E]EEEC9[AC]ACAC9[E]EEEC9[AC]ACAC9[E]EEEC9[AC]ACAC9[A]AAAA9[EE]EEEEEEE]AE9[ACACACA...
result:
ok correct (length = 3980)
Subtask #5:
score: 1
Accepted
Test #46:
score: 1
Accepted
time: 1ms
memory: 4024kb
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]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]9[AC]ACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACA...
result:
ok correct (length = 13934)
Test #47:
score: 0
Accepted
time: 1ms
memory: 3732kb
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]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]9[AC]ACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACA...
result:
ok correct (length = 15092)
Test #48:
score: 0
Accepted
time: 1ms
memory: 3920kb
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]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]AE9[ACACAC]ACAC9[EEE]EC9[ACACAC]9[...
result:
ok correct (length = 17408)
Test #49:
score: 0
Accepted
time: 1ms
memory: 3816kb
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]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE...
result:
ok correct (length = 13498)
Test #50:
score: 0
Accepted
time: 1ms
memory: 4048kb
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]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE...
result:
ok correct (length = 12997)
Test #51:
score: 0
Accepted
time: 0ms
memory: 3736kb
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]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]AE9[ACAC]ACACAC9[EE]EEC9[ACAC]AC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AAA9[EE]EEEE]AE9[ACACACACAC]9[EEEE]EEEEEEEEC9[ACACACAC]ACACACACAC...
result:
ok correct (length = 15685)
Test #52:
score: 0
Accepted
time: 1ms
memory: 3868kb
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]ACACACACEECACEECACAAAEEEEE]9[AC]ACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAA9[E]EE]9[ACAC]ACACACAC9[9[E]EEC9[AC]AC]9[E]EEC9[AC]AC9[E]EEC9[AC]AC9[A]AAA9[EE]EEEEE]9[ACACACACAC]AC9[9[EE]EEEEEC9[ACAC]...
result:
ok correct (length = 12812)
Test #53:
score: 0
Accepted
time: 1ms
memory: 3916kb
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]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]AE9[AC]ACACACACACAC9[E]EEEEEC9[AC]ACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACA...
result:
ok correct (length = 14047)
Test #54:
score: 0
Accepted
time: 1ms
memory: 3864kb
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]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]AE9[AC]ACACACACACAC9[E]EEEEEC9[AC]ACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACA...
result:
ok correct (length = 15129)
Subtask #6:
score: 1
Accepted
Test #55:
score: 1
Accepted
time: 1ms
memory: 3732kb
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]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]9[AC]ACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACA...
result:
ok correct (length = 13843)
Test #56:
score: 0
Accepted
time: 1ms
memory: 3856kb
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]AEACACACACACACACEEEEEECACACACACACEEECACACEEECACACEEECACACAAAAAEEEEEEEE]9[AC]ACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACACACACACEEEEEEEECACACACA...
result:
ok correct (length = 14941)
Test #57:
score: 0
Accepted
time: 1ms
memory: 3876kb
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]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE...
result:
ok correct (length = 13425)
Test #58:
score: 0
Accepted
time: 1ms
memory: 3820kb
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]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE...
result:
ok correct (length = 12918)
Test #59:
score: 0
Accepted
time: 0ms
memory: 3740kb
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]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]AE9[ACAC]ACACAC9[EE]EEC9[ACAC]AC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AAA9[EE]EEEE]AE9[ACACACACAC]9[EEEE]EEEEEEEEC9[ACACACAC]ACACACACAC...
result:
ok correct (length = 15871)
Test #60:
score: 0
Accepted
time: 1ms
memory: 3732kb
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]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]AE9[ACAC]ACACAC9[EE]EEC9[ACAC]AC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AAA9[EE]EEEE]AE9[ACACACACAC]9[EEEE]EEEEEEEEC9[ACACACAC]ACACACACAC...
result:
ok correct (length = 15881)
Test #61:
score: 0
Accepted
time: 1ms
memory: 4036kb
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]ACACACACEECACEECACAAAEEEEE]9[AC]ACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAA9[E]EE]9[ACAC]ACACACAC9[9[E]EEC9[AC]AC]9[E]EEC9[AC]AC9[E]EEC9[AC]AC9[A]AAA9[EE]EEEEE]9[ACACACACAC]AC9[9[EE]EEEEEC9[ACAC]...
result:
ok correct (length = 12886)
Test #62:
score: 0
Accepted
time: 1ms
memory: 3864kb
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]AEACACACACACEEEECACACACEECACEECACAAAAEEEEEE]AE9[AC]ACACACAC9[E]EEEC9[AC]ACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACEEEEEECACACACACACAAAAAAAA9[E]EEEEE]9[ACACAC]AC9[9[E]EEEEEC9[AC]ACACAC...
result:
ok correct (length = 14636)
Test #63:
score: 0
Accepted
time: 0ms
memory: 3852kb
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]ACACACACACACEEECACACEEECACACEEECACACAAAAEEEEEEE]9[AC]ACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACEEEEEEECACACACACACACAAAAAAAA9[E]EEEEEE...
result:
ok correct (length = 15947)
Subtask #7:
score: 0
Wrong Answer
Test #64:
score: 0
Wrong Answer
time: 1ms
memory: 3932kb
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]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]9[ACAC]ACAC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AA9[EE]EEE]AE9[ACACACAC]ACACACACACACAC9[EEEE]EEEEEEC9[ACAC...
result:
wrong answer the length of your output (240161) exceeds the constraint (150000)
Subtask #8:
score: 0
Wrong Answer
Test #84:
score: 0
Wrong Answer
time: 1ms
memory: 3920kb
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]AEACACACEECACECAAAEEEE]AE9[AC]EEEEEEEECACACACACACACACEEEECACACACEEEECACACACEEEECACACACEEEECACACACAAAAAA9[E]E]9[ACAC]ACAC9[9[E]EC9[AC]]9[E]EC9[AC]9[A]AA9[EE]EEE]AE9[ACACACAC]ACACACACACACAC9[EEEE]EEEEEEC9[ACAC...
result:
wrong answer the length of your output (239901) exceeds the constraint (150000)
Subtask #9:
score: 0
Wrong Answer
Test #103:
score: 0
Wrong Answer
time: 2ms
memory: 3956kb
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]ACACACACEECACEECACAAAEEEEE]AE9[AC]ACAC9[E]EC9[AC]EEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAAA9[E]EEE]AE9[ACAC]ACACACACACACAC9[EE]EEEEEEC9[ACAC]...
result:
wrong answer the length of your output (536871) exceeds the constraint (150000)
Subtask #10:
score: 0
Wrong Answer
Test #128:
score: 0
Wrong Answer
time: 2ms
memory: 3892kb
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]ACACACACEECACEECACAAAEEEEE]AE9[AC]ACAC9[E]EC9[AC]EEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACEEEEECACACACACAAAAAAA9[E]EEE]AE9[ACAC]ACACACACACACAC9[EE]EEEEEEC9[ACAC]...
result:
wrong answer the length of your output (536507) exceeds the constraint (150000)