QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#756128 | #9550. The Empress | ucup-team3510# | AC ✓ | 0ms | 4104kb | C++20 | 1.3kb | 2024-11-16 19:07:06 | 2024-11-16 19:07:07 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int k;
vector<int> v;
struct code
{
int typ,a,x,b,y;
};
struct prog
{
vector<code> v;
int halt,nn;
};
prog gen2k3(prog v)
{
prog nw;
int x=v.nn+1,y=v.nn+2;
nw.v.push_back({1,x,v.halt+2,x,2});
for(int i=0;i<v.v.size();++i)
{
nw.v.push_back(v.v[i]);
++nw.v.back().x;
++nw.v.back().y;
if(i+1==v.halt)
{
nw.v.back()=code({1,y,1,y,2});
}
}
nw.v.push_back({2,0,0,128,1});
nw.halt=nw.v.size();
nw.nn=v.nn+2;
return nw;
}
prog gen2k1(prog v)
{
prog nw;
int x=v.nn+1;
for(int i=0;i<v.v.size();++i)
{
nw.v.push_back(v.v[i]);
if(i+1==v.halt)
{
nw.v.back()=code({1,x,v.v.size()+1,x,1});
}
}
nw.v.push_back({2,0,0,128,1});
nw.nn=v.nn+1;
nw.halt=nw.v.size();
return nw;
}
prog gen(int k)
{
if(k==1)
{
prog p;
p.v.push_back({2,0,0,128,1});
p.nn=0;
p.halt=1;
return p;
}
if(k>>1&1)return gen2k1(gen(k>>1));
else return gen2k3(gen((k>>1)-1));
}
int main()
{
scanf("%d",&k);
prog p=gen(k);
printf("%d\n",(int)p.v.size());
for(int i=0;i<p.v.size();++i)
{
if(p.v[i].typ==1)
{
printf("POP %d GOTO %d; PUSH %d GOTO %d\n",p.v[i].a,p.v[i].x,p.v[i].b,p.v[i].y);
}
else
{
printf("HALT; PUSH %d GOTO %d\n",p.v[i].b,p.v[i].y);
}
}
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3792kb
input:
1
output:
1 HALT; PUSH 128 GOTO 1
result:
ok x=1
Test #2:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
5
output:
3 POP 1 GOTO 3; PUSH 1 GOTO 2 POP 2 GOTO 1; PUSH 2 GOTO 2 HALT; PUSH 128 GOTO 1
result:
ok x=5
Test #3:
score: 0
Accepted
time: 0ms
memory: 4056kb
input:
17
output:
5 POP 3 GOTO 5; PUSH 3 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 2 POP 2 GOTO 4; PUSH 2 GOTO 2 POP 4 GOTO 1; PUSH 4 GOTO 2 HALT; PUSH 128 GOTO 1
result:
ok x=17
Test #4:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
19260817
output:
35 POP 33 GOTO 35; PUSH 33 GOTO 2 POP 29 GOTO 32; PUSH 29 GOTO 3 POP 25 GOTO 29; PUSH 25 GOTO 4 POP 23 GOTO 28; PUSH 23 GOTO 5 POP 20 GOTO 26; PUSH 20 GOTO 6 POP 16 GOTO 23; PUSH 16 GOTO 7 POP 14 GOTO 22; PUSH 14 GOTO 8 POP 12 GOTO 21; PUSH 12 GOTO 9 POP 10 GOTO 20; PUSH 10 GOTO 10 POP 7 GOTO 18; PU...
result:
ok x=19260817
Test #5:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1145141919
output:
40 POP 34 GOTO 36; PUSH 34 GOTO 2 POP 31 GOTO 34; PUSH 31 GOTO 3 POP 28 GOTO 32; PUSH 28 GOTO 4 POP 25 GOTO 30; PUSH 25 GOTO 5 POP 23 GOTO 29; PUSH 23 GOTO 6 POP 21 GOTO 28; PUSH 21 GOTO 7 POP 19 GOTO 27; PUSH 19 GOTO 8 POP 16 GOTO 25; PUSH 16 GOTO 9 POP 9 GOTO 19; PUSH 9 GOTO 10 POP 4 GOTO 15; PUSH...
result:
ok x=1145141919
Test #6:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
2147483647
output:
31 POP 1 GOTO 2; PUSH 1 GOTO 1 POP 2 GOTO 3; PUSH 2 GOTO 1 POP 3 GOTO 4; PUSH 3 GOTO 1 POP 4 GOTO 5; PUSH 4 GOTO 1 POP 5 GOTO 6; PUSH 5 GOTO 1 POP 6 GOTO 7; PUSH 6 GOTO 1 POP 7 GOTO 8; PUSH 7 GOTO 1 POP 8 GOTO 9; PUSH 8 GOTO 1 POP 9 GOTO 10; PUSH 9 GOTO 1 POP 10 GOTO 11; PUSH 10 GOTO 1 POP 11 GOTO 1...
result:
ok x=2147483647
Test #7:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1868665701
output:
46 POP 44 GOTO 46; PUSH 44 GOTO 2 POP 42 GOTO 45; PUSH 42 GOTO 3 POP 38 GOTO 42; PUSH 38 GOTO 4 POP 36 GOTO 41; PUSH 36 GOTO 5 POP 33 GOTO 39; PUSH 33 GOTO 6 POP 31 GOTO 38; PUSH 31 GOTO 7 POP 27 GOTO 35; PUSH 27 GOTO 8 POP 23 GOTO 32; PUSH 23 GOTO 9 POP 21 GOTO 31; PUSH 21 GOTO 10 POP 15 GOTO 26; P...
result:
ok x=1868665701
Test #8:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2102547599
output:
43 POP 38 GOTO 40; PUSH 38 GOTO 2 POP 34 GOTO 37; PUSH 34 GOTO 3 POP 30 GOTO 34; PUSH 30 GOTO 4 POP 27 GOTO 32; PUSH 27 GOTO 5 POP 24 GOTO 30; PUSH 24 GOTO 6 POP 20 GOTO 27; PUSH 20 GOTO 7 POP 16 GOTO 24; PUSH 16 GOTO 8 POP 13 GOTO 22; PUSH 13 GOTO 9 POP 10 GOTO 20; PUSH 10 GOTO 10 POP 7 GOTO 18; PU...
result:
ok x=2102547599
Test #9:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2054530275
output:
46 POP 43 GOTO 45; PUSH 43 GOTO 2 POP 39 GOTO 42; PUSH 39 GOTO 3 POP 37 GOTO 41; PUSH 37 GOTO 4 POP 35 GOTO 40; PUSH 35 GOTO 5 POP 31 GOTO 37; PUSH 31 GOTO 6 POP 27 GOTO 34; PUSH 27 GOTO 7 POP 24 GOTO 32; PUSH 24 GOTO 8 POP 22 GOTO 31; PUSH 22 GOTO 9 POP 19 GOTO 29; PUSH 19 GOTO 10 POP 16 GOTO 27; P...
result:
ok x=2054530275
Test #10:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
1953685475
output:
48 POP 45 GOTO 47; PUSH 45 GOTO 2 POP 41 GOTO 44; PUSH 41 GOTO 3 POP 39 GOTO 43; PUSH 39 GOTO 4 POP 37 GOTO 42; PUSH 37 GOTO 5 POP 35 GOTO 41; PUSH 35 GOTO 6 POP 33 GOTO 40; PUSH 33 GOTO 7 POP 31 GOTO 39; PUSH 31 GOTO 8 POP 29 GOTO 38; PUSH 29 GOTO 9 POP 27 GOTO 37; PUSH 27 GOTO 10 POP 24 GOTO 35; P...
result:
ok x=1953685475
Test #11:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
2119017059
output:
45 POP 42 GOTO 44; PUSH 42 GOTO 2 POP 38 GOTO 41; PUSH 38 GOTO 3 POP 36 GOTO 40; PUSH 36 GOTO 4 POP 32 GOTO 37; PUSH 32 GOTO 5 POP 27 GOTO 33; PUSH 27 GOTO 6 POP 24 GOTO 31; PUSH 24 GOTO 7 POP 22 GOTO 30; PUSH 22 GOTO 8 POP 19 GOTO 28; PUSH 19 GOTO 9 POP 17 GOTO 27; PUSH 17 GOTO 10 POP 13 GOTO 24; P...
result:
ok x=2119017059
Test #12:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
1911337379
output:
45 POP 42 GOTO 44; PUSH 42 GOTO 2 POP 38 GOTO 41; PUSH 38 GOTO 3 POP 35 GOTO 39; PUSH 35 GOTO 4 POP 33 GOTO 38; PUSH 33 GOTO 5 POP 28 GOTO 34; PUSH 28 GOTO 6 POP 26 GOTO 33; PUSH 26 GOTO 7 POP 23 GOTO 31; PUSH 23 GOTO 8 POP 19 GOTO 28; PUSH 19 GOTO 9 POP 17 GOTO 27; PUSH 17 GOTO 10 POP 14 GOTO 25; P...
result:
ok x=1911337379
Test #13:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
887618459
output:
48 POP 45 GOTO 47; PUSH 45 GOTO 2 POP 43 GOTO 46; PUSH 43 GOTO 3 POP 41 GOTO 45; PUSH 41 GOTO 4 POP 37 GOTO 42; PUSH 37 GOTO 5 POP 35 GOTO 41; PUSH 35 GOTO 6 POP 33 GOTO 40; PUSH 33 GOTO 7 POP 30 GOTO 38; PUSH 30 GOTO 8 POP 28 GOTO 37; PUSH 28 GOTO 9 POP 26 GOTO 36; PUSH 26 GOTO 10 POP 24 GOTO 35; P...
result:
ok x=887618459
Test #14:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
831117597
output:
43 POP 41 GOTO 43; PUSH 41 GOTO 2 POP 39 GOTO 42; PUSH 39 GOTO 3 POP 37 GOTO 41; PUSH 37 GOTO 4 POP 35 GOTO 40; PUSH 35 GOTO 5 POP 30 GOTO 36; PUSH 30 GOTO 6 POP 26 GOTO 33; PUSH 26 GOTO 7 POP 24 GOTO 32; PUSH 24 GOTO 8 POP 21 GOTO 30; PUSH 21 GOTO 9 POP 19 GOTO 29; PUSH 19 GOTO 10 POP 17 GOTO 28; P...
result:
ok x=831117597
Test #15:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1820253559
output:
49 POP 45 GOTO 47; PUSH 45 GOTO 2 POP 43 GOTO 46; PUSH 43 GOTO 3 POP 41 GOTO 45; PUSH 41 GOTO 4 POP 39 GOTO 44; PUSH 39 GOTO 5 POP 36 GOTO 42; PUSH 36 GOTO 6 POP 33 GOTO 40; PUSH 33 GOTO 7 POP 31 GOTO 39; PUSH 31 GOTO 8 POP 29 GOTO 38; PUSH 29 GOTO 9 POP 26 GOTO 36; PUSH 26 GOTO 10 POP 24 GOTO 35; P...
result:
ok x=1820253559
Test #16:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1563399651
output:
47 POP 44 GOTO 46; PUSH 44 GOTO 2 POP 40 GOTO 43; PUSH 40 GOTO 3 POP 38 GOTO 42; PUSH 38 GOTO 4 POP 36 GOTO 41; PUSH 36 GOTO 5 POP 34 GOTO 40; PUSH 34 GOTO 6 POP 31 GOTO 38; PUSH 31 GOTO 7 POP 28 GOTO 36; PUSH 28 GOTO 8 POP 24 GOTO 33; PUSH 24 GOTO 9 POP 22 GOTO 32; PUSH 22 GOTO 10 POP 20 GOTO 31; P...
result:
ok x=1563399651
Test #17:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1631350977
output:
42 POP 40 GOTO 42; PUSH 40 GOTO 2 POP 34 GOTO 37; PUSH 34 GOTO 3 POP 32 GOTO 36; PUSH 32 GOTO 4 POP 26 GOTO 31; PUSH 26 GOTO 5 POP 24 GOTO 30; PUSH 24 GOTO 6 POP 22 GOTO 29; PUSH 22 GOTO 7 POP 17 GOTO 25; PUSH 17 GOTO 8 POP 15 GOTO 24; PUSH 15 GOTO 9 POP 13 GOTO 23; PUSH 13 GOTO 10 POP 11 GOTO 22; P...
result:
ok x=1631350977
Test #18:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1897574279
output:
44 POP 40 GOTO 42; PUSH 40 GOTO 2 POP 35 GOTO 38; PUSH 35 GOTO 3 POP 33 GOTO 37; PUSH 33 GOTO 4 POP 31 GOTO 36; PUSH 31 GOTO 5 POP 29 GOTO 35; PUSH 29 GOTO 6 POP 27 GOTO 34; PUSH 27 GOTO 7 POP 24 GOTO 32; PUSH 24 GOTO 8 POP 21 GOTO 30; PUSH 21 GOTO 9 POP 18 GOTO 28; PUSH 18 GOTO 10 POP 15 GOTO 26; P...
result:
ok x=1897574279
Test #19:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
450973351
output:
41 POP 37 GOTO 39; PUSH 37 GOTO 2 POP 34 GOTO 37; PUSH 34 GOTO 3 POP 31 GOTO 35; PUSH 31 GOTO 4 POP 28 GOTO 33; PUSH 28 GOTO 5 POP 26 GOTO 32; PUSH 26 GOTO 6 POP 24 GOTO 31; PUSH 24 GOTO 7 POP 20 GOTO 28; PUSH 20 GOTO 8 POP 17 GOTO 26; PUSH 17 GOTO 9 POP 11 GOTO 21; PUSH 11 GOTO 10 POP 9 GOTO 20; PU...
result:
ok x=450973351
Test #20:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
1212949423
output:
40 POP 35 GOTO 37; PUSH 35 GOTO 2 POP 33 GOTO 36; PUSH 33 GOTO 3 POP 30 GOTO 34; PUSH 30 GOTO 4 POP 28 GOTO 33; PUSH 28 GOTO 5 POP 26 GOTO 32; PUSH 26 GOTO 6 POP 21 GOTO 28; PUSH 21 GOTO 7 POP 15 GOTO 23; PUSH 15 GOTO 8 POP 13 GOTO 22; PUSH 13 GOTO 9 POP 9 GOTO 19; PUSH 9 GOTO 10 POP 3 GOTO 14; PUSH...
result:
ok x=1212949423
Test #21:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
1800664165
output:
47 POP 45 GOTO 47; PUSH 45 GOTO 2 POP 43 GOTO 46; PUSH 43 GOTO 3 POP 39 GOTO 43; PUSH 39 GOTO 4 POP 37 GOTO 42; PUSH 37 GOTO 5 POP 32 GOTO 38; PUSH 32 GOTO 6 POP 29 GOTO 36; PUSH 29 GOTO 7 POP 27 GOTO 35; PUSH 27 GOTO 8 POP 25 GOTO 34; PUSH 25 GOTO 9 POP 23 GOTO 33; PUSH 23 GOTO 10 POP 21 GOTO 32; P...
result:
ok x=1800664165
Test #22:
score: 0
Accepted
time: 0ms
memory: 4092kb
input:
2083340735
output:
42 POP 35 GOTO 37; PUSH 35 GOTO 2 POP 33 GOTO 36; PUSH 33 GOTO 3 POP 31 GOTO 35; PUSH 31 GOTO 4 POP 24 GOTO 29; PUSH 24 GOTO 5 POP 21 GOTO 27; PUSH 21 GOTO 6 POP 18 GOTO 25; PUSH 18 GOTO 7 POP 16 GOTO 24; PUSH 16 GOTO 8 POP 13 GOTO 22; PUSH 13 GOTO 9 POP 7 GOTO 17; PUSH 7 GOTO 10 POP 5 GOTO 16; PUSH...
result:
ok x=2083340735
Test #23:
score: 0
Accepted
time: 0ms
memory: 4092kb
input:
1989353363
output:
46 POP 43 GOTO 45; PUSH 43 GOTO 2 POP 40 GOTO 43; PUSH 40 GOTO 3 POP 36 GOTO 40; PUSH 36 GOTO 4 POP 34 GOTO 39; PUSH 34 GOTO 5 POP 32 GOTO 38; PUSH 32 GOTO 6 POP 30 GOTO 37; PUSH 30 GOTO 7 POP 28 GOTO 36; PUSH 28 GOTO 8 POP 26 GOTO 35; PUSH 26 GOTO 9 POP 21 GOTO 31; PUSH 21 GOTO 10 POP 19 GOTO 30; P...
result:
ok x=1989353363
Test #24:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1686030751
output:
44 POP 38 GOTO 40; PUSH 38 GOTO 2 POP 35 GOTO 38; PUSH 35 GOTO 3 POP 33 GOTO 37; PUSH 33 GOTO 4 POP 29 GOTO 34; PUSH 29 GOTO 5 POP 25 GOTO 31; PUSH 25 GOTO 6 POP 23 GOTO 30; PUSH 23 GOTO 7 POP 20 GOTO 28; PUSH 20 GOTO 8 POP 18 GOTO 27; PUSH 18 GOTO 9 POP 16 GOTO 26; PUSH 16 GOTO 10 POP 14 GOTO 25; P...
result:
ok x=1686030751
Test #25:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
483234157
output:
43 POP 41 GOTO 43; PUSH 41 GOTO 2 POP 39 GOTO 42; PUSH 39 GOTO 3 POP 37 GOTO 41; PUSH 37 GOTO 4 POP 34 GOTO 39; PUSH 34 GOTO 5 POP 32 GOTO 38; PUSH 32 GOTO 6 POP 29 GOTO 36; PUSH 29 GOTO 7 POP 24 GOTO 32; PUSH 24 GOTO 8 POP 20 GOTO 29; PUSH 20 GOTO 9 POP 18 GOTO 28; PUSH 18 GOTO 10 POP 15 GOTO 26; P...
result:
ok x=483234157
Test #26:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
1784967647
output:
43 POP 37 GOTO 39; PUSH 37 GOTO 2 POP 35 GOTO 38; PUSH 35 GOTO 3 POP 33 GOTO 37; PUSH 33 GOTO 4 POP 31 GOTO 36; PUSH 31 GOTO 5 POP 26 GOTO 32; PUSH 26 GOTO 6 POP 24 GOTO 31; PUSH 24 GOTO 7 POP 22 GOTO 30; PUSH 22 GOTO 8 POP 17 GOTO 26; PUSH 17 GOTO 9 POP 13 GOTO 23; PUSH 13 GOTO 10 POP 11 GOTO 22; P...
result:
ok x=1784967647
Test #27:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
1052131125
output:
48 POP 46 GOTO 48; PUSH 46 GOTO 2 POP 44 GOTO 47; PUSH 44 GOTO 3 POP 41 GOTO 45; PUSH 41 GOTO 4 POP 39 GOTO 44; PUSH 39 GOTO 5 POP 35 GOTO 41; PUSH 35 GOTO 6 POP 33 GOTO 40; PUSH 33 GOTO 7 POP 31 GOTO 39; PUSH 31 GOTO 8 POP 29 GOTO 38; PUSH 29 GOTO 9 POP 27 GOTO 37; PUSH 27 GOTO 10 POP 25 GOTO 36; P...
result:
ok x=1052131125
Test #28:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
673034421
output:
42 POP 40 GOTO 42; PUSH 40 GOTO 2 POP 38 GOTO 41; PUSH 38 GOTO 3 POP 35 GOTO 39; PUSH 35 GOTO 4 POP 33 GOTO 38; PUSH 33 GOTO 5 POP 30 GOTO 36; PUSH 30 GOTO 6 POP 24 GOTO 31; PUSH 24 GOTO 7 POP 22 GOTO 30; PUSH 22 GOTO 8 POP 19 GOTO 28; PUSH 19 GOTO 9 POP 17 GOTO 27; PUSH 17 GOTO 10 POP 14 GOTO 25; P...
result:
ok x=673034421
Test #29:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
1136250939
output:
44 POP 41 GOTO 43; PUSH 41 GOTO 2 POP 39 GOTO 42; PUSH 39 GOTO 3 POP 37 GOTO 41; PUSH 37 GOTO 4 POP 35 GOTO 40; PUSH 35 GOTO 5 POP 27 GOTO 33; PUSH 27 GOTO 6 POP 24 GOTO 31; PUSH 24 GOTO 7 POP 22 GOTO 30; PUSH 22 GOTO 8 POP 20 GOTO 29; PUSH 20 GOTO 9 POP 16 GOTO 26; PUSH 16 GOTO 10 POP 14 GOTO 25; P...
result:
ok x=1136250939
Test #30:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
1434678339
output:
42 POP 39 GOTO 41; PUSH 39 GOTO 2 POP 34 GOTO 37; PUSH 34 GOTO 3 POP 29 GOTO 33; PUSH 29 GOTO 4 POP 26 GOTO 31; PUSH 26 GOTO 5 POP 24 GOTO 30; PUSH 24 GOTO 6 POP 22 GOTO 29; PUSH 22 GOTO 7 POP 19 GOTO 27; PUSH 19 GOTO 8 POP 17 GOTO 26; PUSH 17 GOTO 9 POP 10 GOTO 20; PUSH 10 GOTO 10 POP 8 GOTO 19; PU...
result:
ok x=1434678339
Test #31:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
174274079
output:
37 POP 31 GOTO 33; PUSH 31 GOTO 2 POP 26 GOTO 29; PUSH 26 GOTO 3 POP 24 GOTO 28; PUSH 24 GOTO 4 POP 21 GOTO 26; PUSH 21 GOTO 5 POP 19 GOTO 25; PUSH 19 GOTO 6 POP 15 GOTO 22; PUSH 15 GOTO 7 POP 13 GOTO 21; PUSH 13 GOTO 8 POP 8 GOTO 17; PUSH 8 GOTO 9 POP 6 GOTO 16; PUSH 6 GOTO 10 POP 2 GOTO 13; PUSH 2...
result:
ok x=174274079
Test #32:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
1911998229
output:
47 POP 45 GOTO 47; PUSH 45 GOTO 2 POP 43 GOTO 46; PUSH 43 GOTO 3 POP 40 GOTO 44; PUSH 40 GOTO 4 POP 35 GOTO 40; PUSH 35 GOTO 5 POP 33 GOTO 39; PUSH 33 GOTO 6 POP 31 GOTO 38; PUSH 31 GOTO 7 POP 26 GOTO 34; PUSH 26 GOTO 8 POP 24 GOTO 33; PUSH 24 GOTO 9 POP 21 GOTO 31; PUSH 21 GOTO 10 POP 19 GOTO 30; P...
result:
ok x=1911998229
Test #33:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
441665295
output:
39 POP 34 GOTO 36; PUSH 34 GOTO 2 POP 29 GOTO 32; PUSH 29 GOTO 3 POP 27 GOTO 31; PUSH 27 GOTO 4 POP 25 GOTO 30; PUSH 25 GOTO 5 POP 20 GOTO 26; PUSH 20 GOTO 6 POP 17 GOTO 24; PUSH 17 GOTO 7 POP 15 GOTO 23; PUSH 15 GOTO 8 POP 11 GOTO 20; PUSH 11 GOTO 9 POP 8 GOTO 18; PUSH 8 GOTO 10 POP 4 GOTO 15; PUSH...
result:
ok x=441665295
Test #34:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
1325107907
output:
46 POP 43 GOTO 45; PUSH 43 GOTO 2 POP 38 GOTO 41; PUSH 38 GOTO 3 POP 36 GOTO 40; PUSH 36 GOTO 4 POP 33 GOTO 38; PUSH 33 GOTO 5 POP 30 GOTO 36; PUSH 30 GOTO 6 POP 25 GOTO 32; PUSH 25 GOTO 7 POP 23 GOTO 31; PUSH 23 GOTO 8 POP 21 GOTO 30; PUSH 21 GOTO 9 POP 18 GOTO 28; PUSH 18 GOTO 10 POP 16 GOTO 27; P...
result:
ok x=1325107907
Test #35:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
264691101
output:
45 POP 43 GOTO 45; PUSH 43 GOTO 2 POP 41 GOTO 44; PUSH 41 GOTO 3 POP 39 GOTO 43; PUSH 39 GOTO 4 POP 37 GOTO 42; PUSH 37 GOTO 5 POP 33 GOTO 39; PUSH 33 GOTO 6 POP 31 GOTO 38; PUSH 31 GOTO 7 POP 28 GOTO 36; PUSH 28 GOTO 8 POP 26 GOTO 35; PUSH 26 GOTO 9 POP 24 GOTO 34; PUSH 24 GOTO 10 POP 21 GOTO 32; P...
result:
ok x=264691101
Test #36:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1655988757
output:
42 POP 40 GOTO 42; PUSH 40 GOTO 2 POP 38 GOTO 41; PUSH 38 GOTO 3 POP 35 GOTO 39; PUSH 35 GOTO 4 POP 29 GOTO 34; PUSH 29 GOTO 5 POP 24 GOTO 30; PUSH 24 GOTO 6 POP 22 GOTO 29; PUSH 22 GOTO 7 POP 17 GOTO 25; PUSH 17 GOTO 8 POP 14 GOTO 23; PUSH 14 GOTO 9 POP 12 GOTO 22; PUSH 12 GOTO 10 POP 9 GOTO 20; PU...
result:
ok x=1655988757
Test #37:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
1912613857
output:
41 POP 39 GOTO 41; PUSH 39 GOTO 2 POP 34 GOTO 37; PUSH 34 GOTO 3 POP 32 GOTO 36; PUSH 32 GOTO 4 POP 30 GOTO 35; PUSH 30 GOTO 5 POP 28 GOTO 34; PUSH 28 GOTO 6 POP 26 GOTO 33; PUSH 26 GOTO 7 POP 23 GOTO 31; PUSH 23 GOTO 8 POP 20 GOTO 29; PUSH 20 GOTO 9 POP 7 GOTO 17; PUSH 7 GOTO 10 POP 3 GOTO 14; PUSH...
result:
ok x=1912613857
Test #38:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
471758205
output:
45 POP 43 GOTO 45; PUSH 43 GOTO 2 POP 41 GOTO 44; PUSH 41 GOTO 3 POP 39 GOTO 43; PUSH 39 GOTO 4 POP 37 GOTO 42; PUSH 37 GOTO 5 POP 35 GOTO 41; PUSH 35 GOTO 6 POP 33 GOTO 40; PUSH 33 GOTO 7 POP 30 GOTO 38; PUSH 30 GOTO 8 POP 27 GOTO 36; PUSH 27 GOTO 9 POP 24 GOTO 34; PUSH 24 GOTO 10 POP 22 GOTO 33; P...
result:
ok x=471758205
Test #39:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1295394655
output:
43 POP 37 GOTO 39; PUSH 37 GOTO 2 POP 35 GOTO 38; PUSH 35 GOTO 3 POP 32 GOTO 36; PUSH 32 GOTO 4 POP 30 GOTO 35; PUSH 30 GOTO 5 POP 28 GOTO 34; PUSH 28 GOTO 6 POP 24 GOTO 31; PUSH 24 GOTO 7 POP 19 GOTO 27; PUSH 19 GOTO 8 POP 17 GOTO 26; PUSH 17 GOTO 9 POP 14 GOTO 24; PUSH 14 GOTO 10 POP 12 GOTO 23; P...
result:
ok x=1295394655
Test #40:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
1734993785
output:
49 POP 47 GOTO 49; PUSH 47 GOTO 2 POP 44 GOTO 47; PUSH 44 GOTO 3 POP 42 GOTO 46; PUSH 42 GOTO 4 POP 40 GOTO 45; PUSH 40 GOTO 5 POP 38 GOTO 44; PUSH 38 GOTO 6 POP 35 GOTO 42; PUSH 35 GOTO 7 POP 33 GOTO 41; PUSH 33 GOTO 8 POP 31 GOTO 40; PUSH 31 GOTO 9 POP 27 GOTO 37; PUSH 27 GOTO 10 POP 25 GOTO 36; P...
result:
ok x=1734993785
Test #41:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
986893495
output:
44 POP 40 GOTO 42; PUSH 40 GOTO 2 POP 38 GOTO 41; PUSH 38 GOTO 3 POP 36 GOTO 40; PUSH 36 GOTO 4 POP 33 GOTO 38; PUSH 33 GOTO 5 POP 29 GOTO 35; PUSH 29 GOTO 6 POP 27 GOTO 34; PUSH 27 GOTO 7 POP 23 GOTO 31; PUSH 23 GOTO 8 POP 21 GOTO 30; PUSH 21 GOTO 9 POP 18 GOTO 28; PUSH 18 GOTO 10 POP 14 GOTO 25; P...
result:
ok x=986893495
Test #42:
score: 0
Accepted
time: 0ms
memory: 4104kb
input:
105826293
output:
42 POP 40 GOTO 42; PUSH 40 GOTO 2 POP 38 GOTO 41; PUSH 38 GOTO 3 POP 35 GOTO 39; PUSH 35 GOTO 4 POP 33 GOTO 38; PUSH 33 GOTO 5 POP 31 GOTO 37; PUSH 31 GOTO 6 POP 29 GOTO 36; PUSH 29 GOTO 7 POP 27 GOTO 35; PUSH 27 GOTO 8 POP 25 GOTO 34; PUSH 25 GOTO 9 POP 23 GOTO 33; PUSH 23 GOTO 10 POP 18 GOTO 29; P...
result:
ok x=105826293
Test #43:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
3
output:
2 POP 1 GOTO 2; PUSH 1 GOTO 1 HALT; PUSH 128 GOTO 1
result:
ok x=3
Test #44:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
7
output:
3 POP 1 GOTO 2; PUSH 1 GOTO 1 POP 2 GOTO 3; PUSH 2 GOTO 1 HALT; PUSH 128 GOTO 1
result:
ok x=7
Test #45:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
9
output:
4 POP 2 GOTO 4; PUSH 2 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 2 POP 3 GOTO 1; PUSH 3 GOTO 2 HALT; PUSH 128 GOTO 1
result:
ok x=9
Test #46:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
11
output:
4 POP 1 GOTO 3; PUSH 1 GOTO 2 POP 2 GOTO 1; PUSH 2 GOTO 2 POP 3 GOTO 4; PUSH 3 GOTO 1 HALT; PUSH 128 GOTO 1
result:
ok x=11
Test #47:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
13
output:
5 POP 3 GOTO 5; PUSH 3 GOTO 2 POP 1 GOTO 4; PUSH 1 GOTO 3 POP 2 GOTO 2; PUSH 2 GOTO 3 POP 4 GOTO 1; PUSH 4 GOTO 2 HALT; PUSH 128 GOTO 1
result:
ok x=13
Test #48:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
15
output:
4 POP 1 GOTO 2; PUSH 1 GOTO 1 POP 2 GOTO 3; PUSH 2 GOTO 1 POP 3 GOTO 4; PUSH 3 GOTO 1 HALT; PUSH 128 GOTO 1
result:
ok x=15
Test #49:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
2147483643
output:
58 POP 55 GOTO 57; PUSH 55 GOTO 2 POP 53 GOTO 56; PUSH 53 GOTO 3 POP 51 GOTO 55; PUSH 51 GOTO 4 POP 49 GOTO 54; PUSH 49 GOTO 5 POP 47 GOTO 53; PUSH 47 GOTO 6 POP 45 GOTO 52; PUSH 45 GOTO 7 POP 43 GOTO 51; PUSH 43 GOTO 8 POP 41 GOTO 50; PUSH 41 GOTO 9 POP 39 GOTO 49; PUSH 39 GOTO 10 POP 37 GOTO 48; P...
result:
ok x=2147483643
Test #50:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
2147483645
output:
59 POP 57 GOTO 59; PUSH 57 GOTO 2 POP 55 GOTO 58; PUSH 55 GOTO 3 POP 53 GOTO 57; PUSH 53 GOTO 4 POP 51 GOTO 56; PUSH 51 GOTO 5 POP 49 GOTO 55; PUSH 49 GOTO 6 POP 47 GOTO 54; PUSH 47 GOTO 7 POP 45 GOTO 53; PUSH 45 GOTO 8 POP 43 GOTO 52; PUSH 43 GOTO 9 POP 41 GOTO 51; PUSH 41 GOTO 10 POP 39 GOTO 50; P...
result:
ok x=2147483645
Test #51:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
1073741827
output:
31 POP 28 GOTO 30; PUSH 28 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 2 POP 2 GOTO 4; PUSH 2 GOTO 2 POP 3 GOTO 5; PUSH 3 GOTO 2 POP 4 GOTO 6; PUSH 4 GOTO 2 POP 5 GOTO 7; PUSH 5 GOTO 2 POP 6 GOTO 8; PUSH 6 GOTO 2 POP 7 GOTO 9; PUSH 7 GOTO 2 POP 8 GOTO 10; PUSH 8 GOTO 2 POP 9 GOTO 11; PUSH 9 GOTO 2 POP 10 GOTO ...
result:
ok x=1073741827
Test #52:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1073741825
output:
31 POP 29 GOTO 31; PUSH 29 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 2 POP 2 GOTO 4; PUSH 2 GOTO 2 POP 3 GOTO 5; PUSH 3 GOTO 2 POP 4 GOTO 6; PUSH 4 GOTO 2 POP 5 GOTO 7; PUSH 5 GOTO 2 POP 6 GOTO 8; PUSH 6 GOTO 2 POP 7 GOTO 9; PUSH 7 GOTO 2 POP 8 GOTO 10; PUSH 8 GOTO 2 POP 9 GOTO 11; PUSH 9 GOTO 2 POP 10 GOTO ...
result:
ok x=1073741825
Test #53:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
1073741823
output:
30 POP 1 GOTO 2; PUSH 1 GOTO 1 POP 2 GOTO 3; PUSH 2 GOTO 1 POP 3 GOTO 4; PUSH 3 GOTO 1 POP 4 GOTO 5; PUSH 4 GOTO 1 POP 5 GOTO 6; PUSH 5 GOTO 1 POP 6 GOTO 7; PUSH 6 GOTO 1 POP 7 GOTO 8; PUSH 7 GOTO 1 POP 8 GOTO 9; PUSH 8 GOTO 1 POP 9 GOTO 10; PUSH 9 GOTO 1 POP 10 GOTO 11; PUSH 10 GOTO 1 POP 11 GOTO 1...
result:
ok x=1073741823
Test #54:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
536870967
output:
32 POP 28 GOTO 30; PUSH 28 GOTO 2 POP 26 GOTO 29; PUSH 26 GOTO 3 POP 24 GOTO 28; PUSH 24 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 4 POP 2 GOTO 6; PUSH 2 GOTO 4 POP 3 GOTO 7; PUSH 3 GOTO 4 POP 4 GOTO 8; PUSH 4 GOTO 4 POP 5 GOTO 9; PUSH 5 GOTO 4 POP 6 GOTO 10; PUSH 6 GOTO 4 POP 7 GOTO 11; PUSH 7 GOTO 4 POP 8 ...
result:
ok x=536870967
Test #55:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
536870965
output:
33 POP 31 GOTO 33; PUSH 31 GOTO 2 POP 29 GOTO 32; PUSH 29 GOTO 3 POP 26 GOTO 30; PUSH 26 GOTO 4 POP 24 GOTO 29; PUSH 24 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 5 POP 2 GOTO 7; PUSH 2 GOTO 5 POP 3 GOTO 8; PUSH 3 GOTO 5 POP 4 GOTO 9; PUSH 4 GOTO 5 POP 5 GOTO 10; PUSH 5 GOTO 5 POP 6 GOTO 11; PUSH 6 GOTO 5 POP...
result:
ok x=536870965
Test #56:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
1073741881
output:
34 POP 32 GOTO 34; PUSH 32 GOTO 2 POP 29 GOTO 32; PUSH 29 GOTO 3 POP 27 GOTO 31; PUSH 27 GOTO 4 POP 25 GOTO 30; PUSH 25 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 5 POP 2 GOTO 7; PUSH 2 GOTO 5 POP 3 GOTO 8; PUSH 3 GOTO 5 POP 4 GOTO 9; PUSH 4 GOTO 5 POP 5 GOTO 10; PUSH 5 GOTO 5 POP 6 GOTO 11; PUSH 6 GOTO 5 POP...
result:
ok x=1073741881
Test #57:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1073741879
output:
33 POP 29 GOTO 31; PUSH 29 GOTO 2 POP 27 GOTO 30; PUSH 27 GOTO 3 POP 25 GOTO 29; PUSH 25 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 4 POP 2 GOTO 6; PUSH 2 GOTO 4 POP 3 GOTO 7; PUSH 3 GOTO 4 POP 4 GOTO 8; PUSH 4 GOTO 4 POP 5 GOTO 9; PUSH 5 GOTO 4 POP 6 GOTO 10; PUSH 6 GOTO 4 POP 7 GOTO 11; PUSH 7 GOTO 4 POP 8 ...
result:
ok x=1073741879
Test #58:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1073741877
output:
34 POP 32 GOTO 34; PUSH 32 GOTO 2 POP 30 GOTO 33; PUSH 30 GOTO 3 POP 27 GOTO 31; PUSH 27 GOTO 4 POP 25 GOTO 30; PUSH 25 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 5 POP 2 GOTO 7; PUSH 2 GOTO 5 POP 3 GOTO 8; PUSH 3 GOTO 5 POP 4 GOTO 9; PUSH 4 GOTO 5 POP 5 GOTO 10; PUSH 5 GOTO 5 POP 6 GOTO 11; PUSH 6 GOTO 5 POP...
result:
ok x=1073741877
Extra Test:
score: 0
Extra Test Passed