QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#311100 | #5236. Wersja dla profesjonalistów [A] | czc | 6 | 3ms | 5612kb | C++23 | 894b | 2024-01-21 21:42:07 | 2024-01-21 21:42:07 |
answer
#include<bits/stdc++.h>
using namespace std;
#define ll long long
inline string solve1(ll n,string op){//复制 op n 遍
string ret;
if(n==1){
ret+=op;
return ret;
}
for(ll i=9;i>=2;i--){
if(i<=n){
ret+=(i+'0');
ret+='[';
ret+=solve1(n/i,op);
ret+=']';
for(int j=1;j<=n%i;j++) ret+=op;
break;
}
}
return ret;
}
inline string solve(ll n){
string ret;
if(n==1){
ret+="AE";
return ret;
}
if(n&1ll){
ret+=solve1(2ll,solve(n/2ll));
ret+=solve1(n/2ll,"AC");
ret+="A";
string now;
now+="C";
now+=solve1(n/2ll,"EC");
now+=solve1(n/2ll+1,"A");
ret+=solve1(n/2ll,now);
ret+=solve1(n,"E");
}
else{
ret+=solve1(n,"A");
ret+=solve1(n-1,"EC");
ret+="E";
ret+=solve(n-1);
}
return ret;
}
ll n;
int main(){
cin>>n;
string ans=solve(n);
ans+=solve1(n,"C");
cout<<ans;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 1
Accepted
Test #1:
score: 1
Accepted
time: 1ms
memory: 3580kb
input:
1
output:
AEC
result:
ok correct (length = 3)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3512kb
input:
2
output:
2[A]ECEAE2[C]
result:
ok correct (length = 13)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
4
output:
4[A]3[EC]E2[AE]ACACEC2[A]3[E]4[C]
result:
ok correct (length = 30)
Test #4:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
5
output:
2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]5[C]
result:
ok correct (length = 43)
Test #5:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
6
output:
6[A]5[EC]E2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]6[C]
result:
ok correct (length = 53)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
7
output:
2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]7[C]
result:
ok correct (length = 53)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
10
output:
9[A]A9[EC]E2[4[A]3[EC]E2[AE]ACACEC2[A]3[E]]4[AC]A4[C4[EC]5[A]]9[E]9[C]C
result:
ok correct (length = 79)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
69
output:
2[9[3[A]]AAAAAAA9[3[EC]]ECECECECECECE2[9[A]AAAAAAA9[EC]ECECECECECECE2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACACA9[C9[EC]ECECECECECECEC9[A]AAAAAAAA]C9[EC]ECECECECECECEC9[A]AAAAAAAAC9[EC]ECECECECECECEC9[A]AAAAAAAAC9[EC]ECECECECECECEC9[A]AAAAAAAAC9[...
result:
ok correct (length = 277)
Test #9:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
100
output:
9[9[A]AA]A9[9[EC]ECEC]E2[2[9[2[A]]AAAAAA9[2[EC]]ECECECECECE2[2[2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]5[AC]A5[C5[EC]6[A]]9[E]EE]9[AC]ACACA9[C9[EC]ECEC9[A]AAA]C9[EC]ECEC9[A]AAAC9[EC]ECEC9[A]AAA9[2[E]]EEEEE]9[2[AC]]ACACACACACACA9[2[C9[2[EC]]ECECECECECEC9[2[A]]AAAAAAA]]C9[2[EC]]ECECECECECEC9[2[A]]AAAAAAAC...
result:
ok correct (length = 312)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
101
output:
2[9[5[A]]AAAAA9[5[EC]]ECECECECE2[9[2[A]]AAAAAA9[2[EC]]ECECECECECE2[2[2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]5[AC]A5[C5[EC]6[A]]9[E]EE]9[AC]ACACA9[C9[EC]ECEC9[A]AAA]C9[EC]ECEC9[A]AAAC9[EC]ECEC9[A]AAA9[2[E]]EEEEE]9[2[AC]]ACACACACACACA9[2[C9[2[EC]]ECECECECECEC9[2[A]]AAAAAAA]]C9[2[EC]]ECECECECECEC9[2[A]]AA...
result:
ok correct (length = 321)
Test #11:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
250
output:
9[9[3[A]]]AAAAAAA9[9[3[EC]]]ECECECECECECE2[9[9[A]AAAA]AAAAAAA9[9[EC]ECECECEC]ECECECECECECE2[2[9[3[A]]AAA9[3[EC]]ECECE2[9[A]AAAAA9[EC]ECECECECE2[6[A]5[EC]E2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]6[AC]A6[C6[EC]7[A]]9[E]EEEE]9[AC]ACACACACACA9[C9[EC]ECECECECEC9[A]AAAAAA]C9[EC]ECECECECEC9[A]AAAAAAC9[EC]ECECE...
result:
ok correct (length = 526)
Test #12:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
251
output:
2[2[9[6[A]]AAAAAAAA9[6[EC]]ECECECECECECECE2[9[3[A]]AAA9[3[EC]]ECECE2[9[A]AAAAA9[EC]ECECECECE2[6[A]5[EC]E2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]6[AC]A6[C6[EC]7[A]]9[E]EEEE]9[AC]ACACACACACA9[C9[EC]ECECECECEC9[A]AAAAAA]C9[EC]ECECECECEC9[A]AAAAAAC9[EC]ECECECECEC9[A]AAAAAAC9[EC]ECECECECEC9[A]AAAAAAC9[EC]ECE...
result:
ok correct (length = 456)
Test #13:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
252
output:
9[9[3[A]]A]9[9[3[EC]]]ECECECECECECECECE2[2[9[6[A]]AAAAAAAA9[6[EC]]ECECECECECECECE2[9[3[A]]AAA9[3[EC]]ECECE2[9[A]AAAAA9[EC]ECECECECE2[6[A]5[EC]E2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]6[AC]A6[C6[EC]7[A]]9[E]EEEE]9[AC]ACACACACACA9[C9[EC]ECECECECEC9[A]AAAAAA]C9[EC]ECECECECEC9[A]AAAAAAC9[EC]ECECECECEC9[A]AA...
result:
ok correct (length = 479)
Test #14:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
299
output:
2[2[9[8[A]]AA9[8[EC]]ECE2[9[4[A]]9[3[EC]]ECECECECECECECECE2[2[8[A]7[EC]E2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]8[AC]A8[C8[EC]9[A]]9[E]EEEEEEEE]9[AC]ACACACACACACACACA9[C9[EC]ECECECECECECECEC9[2[A]]]C9[EC]ECECECECECECECEC9[2[A]]C9[EC]ECECECECECECECEC9[2[A]]C9[EC]ECECECECECECECEC9[2[A]]C9[EC]ECE...
result:
ok correct (length = 486)
Test #15:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
300
output:
9[9[3[A]]AAAAAA]AAA9[9[3[EC]]ECECECECECEC]ECECE2[2[9[8[A]]AA9[8[EC]]ECE2[9[4[A]]9[3[EC]]ECECECECECECECECE2[2[8[A]7[EC]E2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]8[AC]A8[C8[EC]9[A]]9[E]EEEEEEEE]9[AC]ACACACACACACACACA9[C9[EC]ECECECECECECECEC9[2[A]]]C9[EC]ECECECECECECECEC9[2[A]]C9[EC]ECECECECECECEC...
result:
ok correct (length = 515)
Subtask #2:
score: 1
Accepted
Test #16:
score: 1
Accepted
time: 0ms
memory: 3616kb
input:
320
output:
9[9[3[A]]AAAAAAAA]AAAAA9[9[3[EC]]ECECECECECECECEC]ECECECECE2[2[2[2[2[2[4[A]3[EC]E2[AE]ACACEC2[A]3[E]]4[AC]A4[C4[EC]5[A]]9[E]]9[AC]A9[C9[EC]9[A]A]9[2[E]]E]9[2[AC]]ACA9[2[C9[2[EC]]EC9[2[A]]AA]]C9[2[EC]]EC9[2[A]]AA9[4[E]]EEE]9[4[AC]]ACACACA9[4[C9[4[EC]]ECECEC9[4[A]]AAAA]]C9[4[EC]]ECECEC9[4[A]]AAAAC9[4[...
result:
ok correct (length = 555)
Test #17:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
321
output:
2[9[9[A]AAAAAAAA]AAAAAAA9[9[EC]ECECECECECECECEC]ECECECECECECE2[2[2[2[2[4[A]3[EC]E2[AE]ACACEC2[A]3[E]]4[AC]A4[C4[EC]5[A]]9[E]]9[AC]A9[C9[EC]9[A]A]9[2[E]]E]9[2[AC]]ACA9[2[C9[2[EC]]EC9[2[A]]AA]]C9[2[EC]]EC9[2[A]]AA9[4[E]]EEE]9[4[AC]]ACACACA9[4[C9[4[EC]]ECECEC9[4[A]]AAAA]]C9[4[EC]]ECECEC9[4[A]]AAAAC9[4[...
result:
ok correct (length = 507)
Test #18:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1000
output:
9[9[9[A]AAA]AAA]A9[9[9[EC]ECECEC]ECECEC]E2[2[2[9[9[A]AAAA]AAAAAAA9[9[EC]ECECECEC]ECECECECECECE2[2[9[3[A]]AAA9[3[EC]]ECECE2[9[A]AAAAA9[EC]ECECECECE2[6[A]5[EC]E2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]6[AC]A6[C6[EC]7[A]]9[E]EEEE]9[AC]ACACACACACA9[C9[EC]ECECECECEC9[A]AAAAAA]C9[EC]ECECECECEC9[A]AAAAAAC9[EC]E...
result:
ok correct (length = 809)
Test #19:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
1024
output:
9[9[9[A]AAA]AAAAA]AAAAAAA9[9[9[EC]ECECEC]ECECECECEC]ECECECECECECE2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]EC...
result:
ok correct (length = 663)
Test #20:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
1235
output:
2[2[9[9[3[A]]AAAAAAA]AA9[9[3[EC]]ECECECECECECEC]ECE2[2[9[8[A]]AAAA9[8[EC]]ECECECE2[2[9[2[A]]9[EC]ECECECECECECECECE2[8[A]7[EC]E2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]8[AC]A8[C8[EC]9[A]]9[E]EEEEEEEE]9[2[AC]]A9[2[C9[2[EC]]9[2[A]]A]]9[4[E]]E]9[4[AC]]ACA9[4[C9[4[EC]]EC9[4[A]]AA]]C9[4[EC]]EC9[4[A]]...
result:
ok correct (length = 934)
Test #21:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
4094
output:
9[9[9[5[A]]AAAAA]AAAA]AAAAAAAA9[9[9[5[EC]]ECECECECEC]ECECECEC]ECECECECECECECE2[9[9[9[2[A]]AAAAAAA]AA]AAA9[9[9[2[EC]]ECECECECECECEC]ECEC]ECECE2[9[9[9[A]AAA]AAAAA]AAAAA9[9[9[EC]ECECEC]ECECECECEC]ECECECECE2[9[9[6[A]]AA]AAAAAA9[9[6[EC]]ECEC]ECECECECECE2[9[9[3[A]]A]AA9[9[3[EC]]EC]ECE2[9[9[A]AAAAA]9[9[EC]...
result:
ok correct (length = 1296)
Test #22:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
4095
output:
2[2[2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECE...
result:
ok correct (length = 1027)
Test #23:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
4096
output:
9[9[9[5[A]]AAAAA]AAAAA]A9[9[9[5[EC]]ECECECECEC]ECECECECEC]E2[2[2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECEC...
result:
ok correct (length = 1056)
Test #24:
score: 0
Accepted
time: 1ms
memory: 3504kb
input:
4097
output:
2[9[9[9[2[A]]AAAAAAA]AA]AAAAA9[9[9[2[EC]]ECECECECECECEC]ECEC]ECECECECE2[2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC...
result:
ok correct (length = 933)
Test #25:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
4998
output:
9[9[9[6[A]]AAAAAAA]AAAAAA]AAA9[9[9[6[EC]]ECECECECECECEC]ECECECECECEC]ECECE2[9[9[9[3[A]]AAA]AAAAAAA]AAAAA9[9[9[3[EC]]ECECEC]ECECECECECECEC]ECECECECE2[9[9[9[A]AAAAAA]AAA]AAAAAA9[9[9[EC]ECECECECECEC]ECECEC]ECECECECECE2[2[2[2[2[9[4[A]]AA9[4[EC]]ECE2[9[2[A]]9[EC]ECECECECECECECECE2[8[A]7[EC]E2[2[AE]ACACEC...
result:
ok correct (length = 1662)
Test #26:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
4999
output:
2[2[2[9[9[7[A]]AAAAAA]AAA9[9[7[EC]]ECECECECECEC]ECECE2[2[2[2[9[4[A]]AA9[4[EC]]ECE2[9[2[A]]9[EC]ECECECECECECECECE2[8[A]7[EC]E2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]8[AC]A8[C8[EC]9[A]]9[E]EEEEEEEE]9[2[AC]]A9[2[C9[2[EC]]9[2[A]]A]]9[4[E]]E]9[4[AC]]ACACA9[4[C9[4[EC]]ECEC9[4[A]]AAA]]C9[4[EC]]ECEC9[...
result:
ok correct (length = 1391)
Test #27:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
5000
output:
9[9[9[6[A]]AAAAAAA]AAAAAA]AAAAA9[9[9[6[EC]]ECECECECECECEC]ECECECECECEC]ECECECECE2[2[2[9[9[7[A]]AAAAAA]AAA9[9[7[EC]]ECECECECECEC]ECECE2[2[2[2[9[4[A]]AA9[4[EC]]ECE2[9[2[A]]9[EC]ECECECECECECECECE2[8[A]7[EC]E2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]8[AC]A8[C8[EC]9[A]]9[E]EEEEEEEE]9[2[AC]]A9[2[C9[2[...
result:
ok correct (length = 1427)
Subtask #3:
score: 1
Accepted
Test #28:
score: 1
Accepted
time: 1ms
memory: 3832kb
input:
1000000
output:
9[9[9[9[9[9[A]AAAAAAA]AAAAAAAA]AAA]AAAAAA]AAAAAA]A9[9[9[9[9[9[EC]ECECECECECECEC]ECECECECECECECEC]ECECEC]ECECECECECEC]ECECECECECEC]E2[2[2[2[2[2[9[9[9[9[2[A]]AAA]AAA]AAAAAAAA]9[9[9[9[2[EC]]ECECEC]ECECEC]ECECECECECECEC]ECECECECECECECECE2[2[2[9[9[9[2[A]]AAAAAA]]AAAAAAAA9[9[9[2[EC]]ECECECECECEC]]ECECECEC...
result:
ok correct (length = 3639)
Test #29:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
999998
output:
9[9[9[9[9[9[A]AAAAAAA]AAAAAAAA]AAA]AAAAAA]AAAAA]AAAAAAAA9[9[9[9[9[9[EC]ECECECECECECEC]ECECECECECECECEC]ECECEC]ECECECECECEC]ECECECECEC]ECECECECECECECE2[9[9[9[9[9[8[A]]AAAA]A]AAAAAAA]AAAAAAA]AAA9[9[9[9[9[8[EC]]ECECECEC]EC]ECECECECECECEC]ECECECECECECEC]ECECE2[9[9[9[9[9[4[A]]AA]]AAAAAAAA]AAA]AAAAA9[9[9[...
result:
ok correct (length = 3998)
Test #30:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
524286
output:
9[9[9[9[9[8[A]]AAAAAAA]AAAAAAAA]A]AAAAAA]9[9[9[9[9[8[EC]]ECECECECECECEC]ECECECECECECECEC]EC]ECECECECEC]ECECECECECECECECE2[9[9[9[9[9[4[A]]AAA]AAAAAAAA]AAAAA]AA]AAAAAAAA9[9[9[9[9[4[EC]]ECECEC]ECECECECECECECEC]ECECECECEC]ECEC]ECECECECECECECE2[9[9[9[9[9[2[A]]A]AAAAAAAA]AAAAAAA]A]AAA9[9[9[9[9[2[EC]]EC]EC...
result:
ok correct (length = 4435)
Test #31:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
524288
output:
9[9[9[9[9[8[A]]AAAAAAA]AAAAAAAA]A]AAAAAA]AA9[9[9[9[9[8[EC]]ECECECECECECEC]ECECECECECECECEC]EC]ECECECECECEC]ECE2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[...
result:
ok correct (length = 3385)
Test #32:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
524290
output:
9[9[9[9[9[8[A]]AAAAAAA]AAAAAAAA]A]AAAAAA]AAAA9[9[9[9[9[8[EC]]ECECECECECECEC]ECECECECECECECEC]EC]ECECECECECEC]ECECECE2[9[9[9[9[9[4[A]]AAA]AAAAAAAA]AAAAA]AAA]A9[9[9[9[9[4[EC]]ECECEC]ECECECECECECECEC]ECECECECEC]ECECEC]E2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[...
result:
ok correct (length = 3262)
Test #33:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
786429
output:
2[9[9[9[9[9[6[A]]AAAAA]AAAAAAAA]AAA]AAAA]AAAA9[9[9[9[9[6[EC]]ECECECECEC]ECECECECECECECEC]ECECEC]ECECECEC]ECECECE2[9[9[9[9[9[3[A]]AA]AAAAAAAA]AAAAAA]AA]A9[9[9[9[9[3[EC]]ECEC]ECECECECECECECEC]ECECECECECEC]ECEC]E2[9[9[9[9[9[A]AAAAA]AAAAAAAA]AAAAAAA]AAAAA]AAAA9[9[9[9[9[EC]ECECECECEC]ECECECECECECECEC]ECE...
result:
ok correct (length = 4370)
Test #34:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
786431
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]5[AC]A5[C5[EC]6[A]]9[E]EE]9[AC]ACACA9[C9[EC]ECEC9[A]AAA]C9[EC]ECEC9[A]AAAC9[EC]ECEC9[A]AAA9[2[E]]EEEEE]9[2[AC]]ACACACACACA9[2[C9[2[EC]]ECECECECEC9[2[A]]AAAAAA]]C9[2[EC]]ECECECECEC9[2[A]]AAAAAAC9[2[EC]]ECECECECEC9[2[A]]AAAAAAC9[2[E...
result:
ok correct (length = 3562)
Test #35:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
951557
output:
2[9[9[9[9[9[8[A]]]AAAA]AAAAA]AAAAAAA]AA9[9[9[9[9[8[EC]]]ECECECEC]ECECECECEC]ECECECECECECEC]ECE2[9[9[9[9[9[4[A]]]AA]AA]AAAAAAAA]9[9[9[9[9[4[EC]]]ECEC]ECEC]ECECECECECECEC]ECECECECECECECECE2[2[2[2[2[2[9[9[9[5[A]]]AAAAAAA]AAAAAAAA9[9[9[5[EC]]]ECECECECECECEC]ECECECECECECECE2[2[9[9[9[A]AA]AAAA]A9[9[9[EC]E...
result:
ok correct (length = 4718)
Test #36:
score: 0
Accepted
time: 1ms
memory: 3948kb
input:
838702
output:
9[9[9[9[9[9[A]AAAAA]A]AAAAAAA]AAAA]AAA]A9[9[9[9[9[9[EC]ECECECECEC]EC]ECECECECECECEC]ECECECEC]ECECEC]E2[9[9[9[9[9[7[A]]]AAAAAAAA]AA]A]AAAA9[9[9[9[9[7[EC]]]ECECECECECECECEC]ECEC]EC]ECECECE2[9[9[9[9[9[3[A]]AAAA]AAAAAAAA]AAAAA]AAAAA]A9[9[9[9[9[3[EC]]ECECECEC]ECECECECECECECEC]ECECECECEC]ECECECECEC]E2[9[9...
result:
ok correct (length = 4235)
Subtask #4:
score: 1
Accepted
Test #37:
score: 1
Accepted
time: 1ms
memory: 3592kb
input:
999999
output:
2[2[2[2[2[2[9[9[9[9[2[A]]AAA]AAA]AAAAAAAA]9[9[9[9[2[EC]]ECECEC]ECECEC]ECECECECECECEC]ECECECECECECECECE2[2[2[9[9[9[2[A]]AAAAAA]]AAAAAAAA9[9[9[2[EC]]ECECECECECEC]]ECECECECECECECE2[2[2[2[2[9[6[A]]AAAAAA9[6[EC]]ECECECECECE2[2[9[A]AAAAA9[EC]ECECECECE2[6[A]5[EC]E2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]6[AC]A6...
result:
ok correct (length = 3585)
Test #38:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
999997
output:
2[9[9[9[9[9[8[A]]AAAA]A]AAAAAAA]AAAAAAA]AAA9[9[9[9[9[8[EC]]ECECECEC]EC]ECECECECECECEC]ECECECECECECEC]ECECE2[9[9[9[9[9[4[A]]AA]]AAAAAAAA]AAA]AAAAA9[9[9[9[9[4[EC]]ECEC]]ECECECECECECECEC]ECECEC]ECECECECE2[9[9[9[9[9[2[A]]A]]AAAA]A]AAAAAA9[9[9[9[9[2[EC]]EC]]ECECECEC]EC]ECECECECECE2[9[9[9[9[9[A]]AAAA]AAAA...
result:
ok correct (length = 3895)
Test #39:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
524287
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAA...
result:
ok correct (length = 3337)
Test #40:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
524289
output:
2[9[9[9[9[9[4[A]]AAA]AAAAAAAA]AAAAA]AAA]A9[9[9[9[9[4[EC]]ECECEC]ECECECECECECECEC]ECECECECEC]ECECEC]E2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[AE]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECE...
result:
ok correct (length = 3207)
Test #41:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
786428
output:
9[9[9[9[9[9[A]AAAA]AA]AAAAAAA]AAAAAA]AAAAAAAA]AAAAAAAA9[9[9[9[9[9[EC]ECECECEC]ECEC]ECECECECECECEC]ECECECECECEC]ECECECECECECECEC]ECECECECECECECE2[2[9[9[9[9[9[3[A]]AA]AAAAAAAA]AAAAAA]AA]A9[9[9[9[9[3[EC]]ECEC]ECECECECECECECEC]ECECECECECEC]ECEC]E2[9[9[9[9[9[A]AAAAA]AAAAAAAA]AAAAAAA]AAAAA]AAAA9[9[9[9[9[E...
result:
ok correct (length = 4475)
Test #42:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
786430
output:
9[9[9[9[9[9[A]AAAA]AA]AAAAAAA]AAAAAAA]]A9[9[9[9[9[9[EC]ECECECEC]ECEC]ECECECECECECEC]ECECECECECECEC]]E2[9[9[9[9[9[6[A]]AAAAA]AAAAAAAA]AAA]AAAA]AAAA9[9[9[9[9[6[EC]]ECECECECEC]ECECECECECECECEC]ECECEC]ECECECEC]ECECECE2[9[9[9[9[9[3[A]]AA]AAAAAAAA]AAAAAA]AA]A9[9[9[9[9[3[EC]]ECEC]ECECECECECECECEC]ECECECECE...
result:
ok correct (length = 4450)
Test #43:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
786432
output:
9[9[9[9[9[9[A]AAAA]AA]AAAAAAA]AAAAAAA]]AAA9[9[9[9[9[9[EC]ECECECEC]ECEC]ECECECECECECEC]ECECECECECECEC]]ECECE2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]5[AC]A5[C5[EC]6[A]]9[E]EE]9[AC]ACACA9[C9[EC]ECEC9[A]AAA]C9[EC]ECEC9[A]AAAC9[EC]ECEC9[A]AAA9[2[E]]EEEEE]9[2[AC]]ACACACACACA9...
result:
ok correct (length = 3610)
Test #44:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
724171
output:
2[2[9[9[9[9[9[3[A]]]AAAAA]AAA]]AAAAAAA9[9[9[9[9[3[EC]]]ECECECECEC]ECECEC]]ECECECECECECE2[9[9[9[9[9[A]AAAA]AAAAAAA]A]AAAA]AAAAAAA9[9[9[9[9[EC]ECECECEC]ECECECECECECEC]EC]ECECECEC]ECECECECECECE2[2[2[9[9[9[9[A]AAAAAA]AAAA]AAAAAA]A9[9[9[9[EC]ECECECECECEC]ECECECEC]ECECECECECEC]E2[9[9[9[7[A]]AAAAAA]AAAAAAA...
result:
ok correct (length = 3973)
Test #45:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
868406
output:
9[9[9[9[9[9[A]AAAAA]AAAAAA]AAA]AA]]AAAAA9[9[9[9[9[9[EC]ECECECECEC]ECECECECECEC]ECECEC]ECEC]]ECECECECE2[9[9[9[9[9[7[A]]AAA]A]AAAAA]AAAA]AAAAAA9[9[9[9[9[7[EC]]ECECEC]EC]ECECECECEC]ECECECEC]ECECECECECE2[9[9[9[9[9[3[A]]AAAAAA]]AAAAAAA]AA]AA9[9[9[9[9[3[EC]]ECECECECECEC]]ECECECECECECEC]ECEC]ECE2[2[9[9[9[9...
result:
ok correct (length = 3980)
Subtask #5:
score: 1
Accepted
Test #46:
score: 1
Accepted
time: 1ms
memory: 4084kb
input:
10000000000
output:
9[9[9[9[9[9[9[9[9[9[2[A]]AAAAAAA]AAAAAAA]AA]AAAAAA]AAAAAA]AAAAAAA]AAAAAAAA]A]A]A9[9[9[9[9[9[9[9[9[9[2[EC]]ECECECECECECEC]ECECECECECECEC]ECEC]ECECECECECEC]ECECECECECEC]ECECECECECECEC]ECECECECECECECEC]EC]EC]E2[2[2[2[2[2[2[2[2[2[9[9[9[9[9[9[9[2[A]]]AAA]AAA]AAA]AAAAAAAA]AA]AAA9[9[9[9[9[9[9[2[EC]]]ECECEC...
result:
ok correct (length = 13934)
Test #47:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
9999999998
output:
9[9[9[9[9[9[9[9[9[9[2[A]]AAAAAAA]AAAAAAA]AA]AAAAAA]AAAAAA]AAAAAAA]AAAAAAAA]A]]AAAAAAAA9[9[9[9[9[9[9[9[9[9[2[EC]]ECECECECECECEC]ECECECECECECEC]ECEC]ECECECECECEC]ECECECECECEC]ECECECECECECEC]ECECECECECECECEC]EC]]ECECECECECECECE2[9[9[9[9[9[9[9[9[9[9[A]AAA]AAAAAAAA]A]AAA]AAA]AAA]AAAAAAAA]AAAAA]]AAA9[9[9[...
result:
ok correct (length = 15092)
Test #48:
score: 0
Accepted
time: 1ms
memory: 3780kb
input:
8589934590
output:
9[9[9[9[9[9[9[9[9[9[2[A]]AAAA]A]AAAA]AAAAAAAA]AAAA]AA]AAAAAA]]A]AAAAAA9[9[9[9[9[9[9[9[9[9[2[EC]]ECECECEC]EC]ECECECEC]ECECECECECECECEC]ECECECEC]ECEC]ECECECECECEC]]EC]ECECECECECE2[9[9[9[9[9[9[9[9[9[9[A]AA]]AAAAAA]AAAAAAAA]AAAAAA]AAAAA]AAAAAAA]AAAA]AAAAA]AA9[9[9[9[9[9[9[9[9[9[EC]ECEC]]ECECECECECEC]ECEC...
result:
ok correct (length = 17408)
Test #49:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
8589934592
output:
9[9[9[9[9[9[9[9[9[9[2[A]]AAAA]A]AAAA]AAAAAAAA]AAAA]AA]AAAAAA]]A]AAAAAAAA9[9[9[9[9[9[9[9[9[9[2[EC]]ECECECEC]EC]ECECECEC]ECECECECECECECEC]ECECECEC]ECEC]ECECECECECEC]]EC]ECECECECECECECE2[2[2[2[2[2[2[2[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]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[E...
result:
ok correct (length = 13498)
Test #50:
score: 0
Accepted
time: 1ms
memory: 3792kb
input:
8589934594
output:
9[9[9[9[9[9[9[9[9[9[2[A]]AAAA]A]AAAA]AAAAAAAA]AAAA]AA]AAAAAA]]AA]A9[9[9[9[9[9[9[9[9[9[2[EC]]ECECECEC]EC]ECECECEC]ECECECECECECECEC]ECECECEC]ECEC]ECECECECECEC]]ECEC]E2[9[9[9[9[9[9[9[9[9[9[A]AA]]AAAAAA]AAAAAAAA]AAAAAA]AAAAA]AAAAAAA]AAAA]AAAAA]AAAA9[9[9[9[9[9[9[9[9[9[EC]ECEC]]ECECECECECEC]ECECECECECECEC...
result:
ok correct (length = 12997)
Test #51:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
6442450941
output:
2[9[9[9[9[9[9[9[9[9[8[A]]AA]AAAAAAA]AAAA]AA]AAAAAA]AAAAA]AAAAA]AAAAAA]A9[9[9[9[9[9[9[9[9[8[EC]]ECEC]ECECECECECECEC]ECECECEC]ECEC]ECECECECECEC]ECECECECEC]ECECECECEC]ECECECECECEC]E2[9[9[9[9[9[9[9[9[9[4[A]]A]AAA]AAAAAA]AAAAA]AAAAAAA]AAAAAAA]AA]AAAAAAA]AAAA9[9[9[9[9[9[9[9[9[4[EC]]EC]ECECEC]ECECECECECEC]...
result:
ok correct (length = 15685)
Test #52:
score: 0
Accepted
time: 0ms
memory: 3872kb
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[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]5[AC]A5[C5[EC]6[A]]9[E]EE]9[AC]ACACA9[C9[EC]ECEC9[A]AAA]C9[EC]ECEC9[A]AAAC9[EC]ECEC9[A]AAA9[2[E]]EEEEE]9[2[AC]]ACACACACACA9[2[C9[2[EC]]ECECECECEC9[2[A]]AAAAAA]]C9[2[EC]]ECECECECEC9[2[A]]AAAAAAC9[2[EC]]ECE...
result:
ok correct (length = 12812)
Test #53:
score: 0
Accepted
time: 1ms
memory: 3892kb
input:
9220943225
output:
2[9[9[9[9[9[9[9[9[9[9[A]AA]AAAAAAAA]]AAAAAAAA]AAA]AAAAAA]AAAAAA]]AAAAA]AAAAA9[9[9[9[9[9[9[9[9[9[EC]ECEC]ECECECECECECECEC]]ECECECECECECECEC]ECECEC]ECECECECECEC]ECECECECECEC]]ECECECECEC]ECECECECE2[2[9[9[9[9[9[9[9[9[9[2[A]]AAAAAAAA]AAAAAA]AAAAAAAA]AAAAAAA]AAAAAA]A]AAAA]AAAAA]AAAAAAA9[9[9[9[9[9[9[9[9[2[...
result:
ok correct (length = 14047)
Test #54:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
9147465533
output:
2[9[9[9[9[9[9[9[9[9[9[A]AA]AAAAAAA]AA]AA]AA]AAAAA]]AAAAAAA]AAAAA]AAAAA9[9[9[9[9[9[9[9[9[9[EC]ECEC]ECECECECECECEC]ECEC]ECEC]ECEC]ECECECECEC]]ECECECECECECEC]ECECECECEC]ECECECECE2[9[9[9[9[9[9[9[9[9[5[A]]AAAAAAAA]A]A]A]AA]AAAA]AAAAAAAA]AA]AAAAAA9[9[9[9[9[9[9[9[9[5[EC]]ECECECECECECECEC]EC]EC]EC]ECEC]ECEC...
result:
ok correct (length = 15129)
Subtask #6:
score: 1
Accepted
Test #55:
score: 1
Accepted
time: 1ms
memory: 3904kb
input:
9999999999
output:
2[2[2[2[2[2[2[2[2[2[9[9[9[9[9[9[9[2[A]]]AAA]AAA]AAA]AAAAAAAA]AA]AAA9[9[9[9[9[9[9[2[EC]]]ECECEC]ECECEC]ECECEC]ECECECECECECECEC]ECEC]ECECE2[2[2[9[9[9[9[9[9[2[A]]AA]AAAAAA]]AAAA]AAA]AAAAA9[9[9[9[9[9[2[EC]]ECEC]ECECECECECEC]]ECECECEC]ECECEC]ECECECECE2[9[9[9[9[9[9[A]A]AAA]]AA]A]AAAAAA9[9[9[9[9[9[EC]EC]EC...
result:
ok correct (length = 13843)
Test #56:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
9999999997
output:
2[9[9[9[9[9[9[9[9[9[9[A]AAA]AAAAAAAA]A]AAA]AAA]AAA]AAAAAAAA]AAAAA]]AAA9[9[9[9[9[9[9[9[9[9[EC]ECECEC]ECECECECECECECEC]EC]ECECEC]ECECEC]ECECEC]ECECECECECECECEC]ECECECECEC]]ECECE2[9[9[9[9[9[9[9[9[9[6[A]]AAAA]]AAAAAA]A]AAAAAA]AAAA]AA]AAAA]AAAAA9[9[9[9[9[9[9[9[9[6[EC]]ECECECEC]]ECECECECECEC]EC]ECECECECEC...
result:
ok correct (length = 14941)
Test #57:
score: 0
Accepted
time: 1ms
memory: 3768kb
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]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4[A]]7[E]]7[AC]A7[C7[EC]8[A]]9[E]EEEEEE]9[AC]ACACACACACACA9[C9[EC]ECECECECECEC9[A]AAAAAAA]C9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAAAAC9[EC]ECECECECECEC9[A]AAAAA...
result:
ok correct (length = 13425)
Test #58:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
8589934593
output:
2[9[9[9[9[9[9[9[9[9[9[A]AA]]AAAAAA]AAAAAAAA]AAAAAA]AAAAA]AAAAAAA]AAAA]AAAAA]AAAA9[9[9[9[9[9[9[9[9[9[EC]ECEC]]ECECECECECEC]ECECECECECECECEC]ECECECECECEC]ECECECECEC]ECECECECECECEC]ECECECEC]ECECECECEC]ECECECE2[2[2[2[2[2[2[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]ACACEC2[A]3[E]]3[AC]A3[C3[EC]4...
result:
ok correct (length = 12918)
Test #59:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
6442450940
output:
9[9[9[9[9[9[9[9[9[9[A]AAAAAAA]AAAAA]AAAAA]AAAAAAAA]AAAAA]AAAA]AA]AA]AAA]AA9[9[9[9[9[9[9[9[9[9[EC]ECECECECECECEC]ECECECECEC]ECECECECEC]ECECECECECECECEC]ECECECECEC]ECECECEC]ECEC]ECEC]ECECEC]ECE2[2[9[9[9[9[9[9[9[9[9[4[A]]A]AAA]AAAAAA]AAAAA]AAAAAAA]AAAAAAA]AA]AAAAAAA]AAAA9[9[9[9[9[9[9[9[9[4[EC]]EC]ECECE...
result:
ok correct (length = 15871)
Test #60:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
6442450942
output:
9[9[9[9[9[9[9[9[9[9[A]AAAAAAA]AAAAA]AAAAA]AAAAAAAA]AAAAA]AAAA]AA]AA]AAA]AAAA9[9[9[9[9[9[9[9[9[9[EC]ECECECECECECEC]ECECECECEC]ECECECECEC]ECECECECECECECEC]ECECECECEC]ECECECEC]ECEC]ECEC]ECECEC]ECECECE2[9[9[9[9[9[9[9[9[9[8[A]]AA]AAAAAAA]AAAA]AA]AAAAAA]AAAAA]AAAAA]AAAAAA]A9[9[9[9[9[9[9[9[9[8[EC]]ECEC]ECE...
result:
ok correct (length = 15881)
Test #61:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
6442450944
output:
9[9[9[9[9[9[9[9[9[9[A]AAAAAAA]AAAAA]AAAAA]AAAAAAAA]AAAAA]AAAA]AA]AA]AAA]AAAAAA9[9[9[9[9[9[9[9[9[9[EC]ECECECECECECEC]ECECECECEC]ECECECECEC]ECECECECECECECEC]ECECECECEC]ECECECEC]ECEC]ECEC]ECECEC]ECECECECECE2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[A]ECEAE]2[AC]A2[C2[EC]3[A]]5[E]]5...
result:
ok correct (length = 12886)
Test #62:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
8108001050
output:
9[9[9[9[9[9[9[9[9[9[2[A]]AA]AAAAAAAA]AAA]A]AAAAA]AAAAAA]AAA]AAAA]AAA]AAAAA9[9[9[9[9[9[9[9[9[9[2[EC]]ECEC]ECECECECECECECEC]ECECEC]EC]ECECECECEC]ECECECECECEC]ECECEC]ECECECEC]ECECEC]ECECECECE2[9[9[9[9[9[9[9[9[9[9[A]A]AAAA]A]AAAAA]AA]AAAAAAA]AAAAAA]AA]A]AAAAAA9[9[9[9[9[9[9[9[9[9[EC]EC]ECECECEC]EC]ECECEC...
result:
ok correct (length = 14636)
Test #63:
score: 0
Accepted
time: 1ms
memory: 3784kb
input:
8970049853
output:
2[9[9[9[9[9[9[9[9[9[9[A]AA]AAAAA]A]AAAAAA]AAA]AA]AAAAA]AAAAA]]AAAAAAAA9[9[9[9[9[9[9[9[9[9[EC]ECEC]ECECECECEC]EC]ECECECECECEC]ECECEC]ECEC]ECECECECEC]ECECECECEC]]ECECECECECECECE2[9[9[9[9[9[9[9[9[9[5[A]]AAAAAAA]]AAAAAAA]AAAAAA]A]AA]AAAAAAA]]AAA9[9[9[9[9[9[9[9[9[5[EC]]ECECECECECECEC]]ECECECECECECEC]ECEC...
result:
ok correct (length = 15947)
Subtask #7:
score: 0
Wrong Answer
Test #64:
score: 0
Wrong Answer
time: 3ms
memory: 4364kb
input:
100000000000000
output:
9[9[9[9[9[9[9[9[9[9[9[9[9[9[4[A]]AAA]AAA]]AAAAA]AAAAAA]AAAA]AA]AAAAAAA]AA]AAAAAAA]AAAAA]AA]AAAAA]A9[9[9[9[9[9[9[9[9[9[9[9[9[9[4[EC]]ECECEC]ECECEC]]ECECECECEC]ECECECECECEC]ECECECEC]ECEC]ECECECECECECEC]ECEC]ECECECECECECEC]ECECECECEC]ECEC]ECECECECEC]E2[2[2[2[2[2[2[2[2[2[2[2[2[2[9[9[9[9[9[9[9[9[9[9[A]AA...
result:
wrong answer the length of your output (223163) exceeds the constraint (150000)
Subtask #8:
score: 0
Wrong Answer
Test #84:
score: 0
Wrong Answer
time: 3ms
memory: 4344kb
input:
99999999999999
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[9[9[9[9[9[9[9[9[9[9[A]AAAAAA]AAAAAA]AAAAAAA]]AAAAAAA]AAAAA]A]AAA]AAAAAA]AAAAAA9[9[9[9[9[9[9[9[9[9[EC]ECECECECECEC]ECECECECECEC]ECECECECECECEC]]ECECECECECECEC]ECECECECEC]EC]ECECEC]ECECECECECEC]ECECECECECE2[2[2[9[9[9[9[9[9[9[9[9[A]AAAAAAAA]AAAAAA]AAAA]AAAAA]AAAA]]A]AAAAA]AA...
result:
wrong answer the length of your output (222914) exceeds the constraint (150000)
Subtask #9:
score: 0
Wrong Answer
Test #103:
score: 0
Wrong Answer
time: 3ms
memory: 5612kb
input:
1000000000000000000
output:
9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[6[A]]AAAAA]AAAAAAAA]AAAAA]AAAAAAAA]AAA]AAAAAAA]A]AAAA]]AAAAAA]AAA]AAAAAA]AAAAAAAA]AA]AAAAA]AA]]A9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[6[EC]]ECECECECEC]ECECECECECECECEC]ECECECECEC]ECECECECECECECEC]ECECEC]ECECECECECECEC]EC]ECECECEC]]ECECECECECEC]ECECEC]ECECECECECEC]EC...
result:
wrong answer the length of your output (503959) exceeds the constraint (150000)
Subtask #10:
score: 0
Wrong Answer
Test #128:
score: 0
Wrong Answer
time: 3ms
memory: 5596kb
input:
999999999999999999
output:
2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[2[9[9[9[9[9[9[9[9[9[9[9[9[9[A]AAAA]AAAA]AAAAA]]AAA]AAAAA]AAA]AAAAAAAA]A]AAA]AAAAA]AAAAAA]9[9[9[9[9[9[9[9[9[9[9[9[9[EC]ECECECEC]ECECECEC]ECECECECEC]]ECECEC]ECECECECEC]ECECEC]ECECECECECECECEC]EC]ECECEC]ECECECECEC]ECECECECEC]ECECECECECECECECE2[2[2[9[9[9[9[9[9[9[9[9[9[9...
result:
wrong answer the length of your output (503620) exceeds the constraint (150000)