QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#756012 | #9550. The Empress | ucup-team3586# | AC ✓ | 0ms | 4116kb | C++23 | 1.6kb | 2024-11-16 18:43:42 | 2024-11-16 18:43:47 |
Judging History
answer
#include<bits/stdc++.h>
// #pragma GCC optimize("Ofast")
// #pragma GCC optimize("unroll-loops")
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
using namespace std;
#define int long long
inline int read(){
int s=0,w=1;
char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();}
while(ch>='0'&&ch<='9') s=s*10+ch-'0',ch=getchar();
return s*w;
}
const int p=998244353;
int qp(int x,int y)
{
int res=1;
for(int t=x; y; y>>=1,t=1ll*t*t%p)
if(y&1) res=1ll*res*t%p;
return res;
}
bool build(int pre,int n)
{
vector<int> vec;
// int pre=31;
n-=pre;
n=(1ll<<31)-1-n;
int m=0;
for(int i=31; i>=1; --i)
if(n>=((1ll<<i)-1))
n-=((1ll<<i)-1),m+=(1ll<<(i-1));
for(int i=30; i>=0; --i) if(((m>>i)&1)&&i>=n) vec.push_back(i+1);
int o=pre-(int)vec.size();
if(o%2!=0) return 0;
int cur=1;
printf("%lld\n",31+pre);
for(int i=1; i<=o; ++i)
printf("POP 100 GOTO %lld; PUSH 100 GOTO %lld\n",cur+1,cur+1),++cur;
int W=vec.back();
vec.pop_back();
for(int i:vec)
printf("POP %lld GOTO %lld; PUSH %lld GOTO %lld\n",i,cur+1,i,cur+1),++cur;
printf("POP %lld GOTO %lld; PUSH %lld GOTO %lld\n",W,cur+1+n,W,cur+1+n),++cur;
int X=cur;
for(int i=1; i<=30; ++i)
printf("POP %lld GOTO %lld; PUSH %lld GOTO %lld\n",i,cur+1,i,X),++cur;
puts("HALT; PUSH 1 GOTO 1");
return 1;
}
signed main()
{
int n=read();
if(n<=60)
{
printf("%lld\n",n);
for(int i=1; i<n; ++i)
printf("POP 1 GOTO %lld; PUSH 1 GOTO %lld\n",i+1,i+1);
puts("HALT; PUSH 1 GOTO 1\n");
return 0;
}
for(int i=31; i<=35; ++i) if(build(i,n)) return 0;
assert(0);
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3744kb
input:
1
output:
1 HALT; PUSH 1 GOTO 1
result:
ok x=1
Test #2:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
5
output:
5 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 POP 1 GOTO 4; PUSH 1 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 5 HALT; PUSH 1 GOTO 1
result:
ok x=5
Test #3:
score: 0
Accepted
time: 0ms
memory: 4024kb
input:
17
output:
17 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 POP 1 GOTO 4; PUSH 1 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 6 POP 1 GOTO 7; PUSH 1 GOTO 7 POP 1 GOTO 8; PUSH 1 GOTO 8 POP 1 GOTO 9; PUSH 1 GOTO 9 POP 1 GOTO 10; PUSH 1 GOTO 10 POP 1 GOTO 11; PUSH 1 GOTO 11 POP 1 GOTO 12...
result:
ok x=17
Test #4:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
19260817
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=19260817
Test #5:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
1145141919
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1145141919
Test #6:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
2147483647
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=2147483647
Test #7:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
1868665701
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1868665701
Test #8:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
2102547599
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=2102547599
Test #9:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
2054530275
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=2054530275
Test #10:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
1953685475
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1953685475
Test #11:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
2119017059
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=2119017059
Test #12:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
1911337379
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1911337379
Test #13:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
887618459
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=887618459
Test #14:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
831117597
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=831117597
Test #15:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
1820253559
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1820253559
Test #16:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
1563399651
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1563399651
Test #17:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
1631350977
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1631350977
Test #18:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
1897574279
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1897574279
Test #19:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
450973351
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=450973351
Test #20:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
1212949423
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1212949423
Test #21:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
1800664165
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1800664165
Test #22:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
2083340735
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=2083340735
Test #23:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
1989353363
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1989353363
Test #24:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
1686030751
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1686030751
Test #25:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
483234157
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=483234157
Test #26:
score: 0
Accepted
time: 0ms
memory: 4112kb
input:
1784967647
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1784967647
Test #27:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
1052131125
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1052131125
Test #28:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
673034421
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=673034421
Test #29:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
1136250939
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1136250939
Test #30:
score: 0
Accepted
time: 0ms
memory: 4024kb
input:
1434678339
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1434678339
Test #31:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
174274079
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=174274079
Test #32:
score: 0
Accepted
time: 0ms
memory: 3996kb
input:
1911998229
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1911998229
Test #33:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
441665295
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=441665295
Test #34:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
1325107907
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1325107907
Test #35:
score: 0
Accepted
time: 0ms
memory: 4028kb
input:
264691101
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=264691101
Test #36:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
1655988757
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1655988757
Test #37:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
1912613857
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1912613857
Test #38:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
471758205
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=471758205
Test #39:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
1295394655
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1295394655
Test #40:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
1734993785
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1734993785
Test #41:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
986893495
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=986893495
Test #42:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
105826293
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=105826293
Test #43:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
3
output:
3 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 HALT; PUSH 1 GOTO 1
result:
ok x=3
Test #44:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
7
output:
7 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 POP 1 GOTO 4; PUSH 1 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 6 POP 1 GOTO 7; PUSH 1 GOTO 7 HALT; PUSH 1 GOTO 1
result:
ok x=7
Test #45:
score: 0
Accepted
time: 0ms
memory: 4116kb
input:
9
output:
9 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 POP 1 GOTO 4; PUSH 1 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 6 POP 1 GOTO 7; PUSH 1 GOTO 7 POP 1 GOTO 8; PUSH 1 GOTO 8 POP 1 GOTO 9; PUSH 1 GOTO 9 HALT; PUSH 1 GOTO 1
result:
ok x=9
Test #46:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
11
output:
11 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 POP 1 GOTO 4; PUSH 1 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 6 POP 1 GOTO 7; PUSH 1 GOTO 7 POP 1 GOTO 8; PUSH 1 GOTO 8 POP 1 GOTO 9; PUSH 1 GOTO 9 POP 1 GOTO 10; PUSH 1 GOTO 10 POP 1 GOTO 11; PUSH 1 GOTO 11 HALT; PUSH 1 ...
result:
ok x=11
Test #47:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
13
output:
13 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 POP 1 GOTO 4; PUSH 1 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 6 POP 1 GOTO 7; PUSH 1 GOTO 7 POP 1 GOTO 8; PUSH 1 GOTO 8 POP 1 GOTO 9; PUSH 1 GOTO 9 POP 1 GOTO 10; PUSH 1 GOTO 10 POP 1 GOTO 11; PUSH 1 GOTO 11 POP 1 GOTO 12...
result:
ok x=13
Test #48:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
15
output:
15 POP 1 GOTO 2; PUSH 1 GOTO 2 POP 1 GOTO 3; PUSH 1 GOTO 3 POP 1 GOTO 4; PUSH 1 GOTO 4 POP 1 GOTO 5; PUSH 1 GOTO 5 POP 1 GOTO 6; PUSH 1 GOTO 6 POP 1 GOTO 7; PUSH 1 GOTO 7 POP 1 GOTO 8; PUSH 1 GOTO 8 POP 1 GOTO 9; PUSH 1 GOTO 9 POP 1 GOTO 10; PUSH 1 GOTO 10 POP 1 GOTO 11; PUSH 1 GOTO 11 POP 1 GOTO 12...
result:
ok x=15
Test #49:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
2147483643
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=2147483643
Test #50:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
2147483645
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=2147483645
Test #51:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
1073741827
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1073741827
Test #52:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
1073741825
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1073741825
Test #53:
score: 0
Accepted
time: 0ms
memory: 4024kb
input:
1073741823
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1073741823
Test #54:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
536870967
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 30 GOTO 10; PUSH 30 GOTO 10 POP 28 GO...
result:
ok x=536870967
Test #55:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
536870965
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=536870965
Test #56:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
1073741881
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 29 GOTO 8; PUSH 29 GOTO 8 POP 28 GOTO 9; PUSH 28 GOTO 9 POP 27 GOTO 10; PUSH 27 GOTO 10 POP 26 GOTO 1...
result:
ok x=1073741881
Test #57:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
1073741879
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 29 GOTO 10; PUSH 29 GOTO 10 POP 28 GO...
result:
ok x=1073741879
Test #58:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
1073741877
output:
62 POP 100 GOTO 2; PUSH 100 GOTO 2 POP 100 GOTO 3; PUSH 100 GOTO 3 POP 100 GOTO 4; PUSH 100 GOTO 4 POP 100 GOTO 5; PUSH 100 GOTO 5 POP 100 GOTO 6; PUSH 100 GOTO 6 POP 100 GOTO 7; PUSH 100 GOTO 7 POP 100 GOTO 8; PUSH 100 GOTO 8 POP 100 GOTO 9; PUSH 100 GOTO 9 POP 100 GOTO 10; PUSH 100 GOTO 10 POP 100...
result:
ok x=1073741877
Extra Test:
score: 0
Extra Test Passed