QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#789030#9550. The EmpressInkyoAC ✓1ms3724kbC++201.2kb2024-11-27 19:06:292024-11-27 19:06:29

Judging History

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

  • [2024-11-27 19:06:29]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3724kb
  • [2024-11-27 19:06:29]
  • 提交

answer

#include<bits/stdc++.h>
#define inf 0x3f3f3f3f
#define llinf 0x3f3f3f3f3f3f3f3f
#define vi vector <int>
#define vvi vector <vi>
#define endl '\n'
#define ll long long
using namespace std;

constexpr int mod = 998244353, N = 2e5 + 5, M = 2e5 + 5;

void print(int a, int x, int b, int y)
{
	if(!a) cout << "HALT; ";
	else cout << "POP " << a << " GOTO " << x << "; ";
	cout << "PUSH " << b << " GOTO " << y << endl;
}

void solve()
{
	int k; cin >> k;
	if(k < 60){
		cout << k << endl;
		for(int i = 1; i < k; i += 2){
			print(100, 1, 1, i + 1);
			print(1, i + 2, 100, 1);
		}
		print(0, 0, 100, 1);
		return;
	}
	k -= 61;
	
	cout << 61 << endl;
	for(int i = 30; i >= 1; i --){
		if(!(k >> i & 1)) print(100, 1, i, 32 - i);
		else print(99, 32 - i, 99, 31 - i);
	}
	print(1, 32, 1, 31);
	for(int i = 2; i <= 30; i ++){
		print(i, 31 + i, i, 31);
	}
	print(0, 0, 100, 1);
}

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0); //cout.tie(0);
	
	int t = 1;
	//cin >> t; 
	while(t --) solve();
	
	return 0;
}
/*
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 100 GOTO 1
 */

这程序好像有点Bug,我给组数据试试?

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3656kb

input:

1

output:

1
HALT; PUSH 100 GOTO 1

result:

ok x=1

Test #2:

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

input:

5

output:

5
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 4
POP 1 GOTO 5; PUSH 100 GOTO 1
HALT; PUSH 100 GOTO 1

result:

ok x=5

Test #3:

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

input:

17

output:

17
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 4
POP 1 GOTO 5; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 6
POP 1 GOTO 7; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 8
POP 1 GOTO 9; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 10
POP 1 GOTO 11; PUSH 100 GO...

result:

ok x=17

Test #4:

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

input:

19260817

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PU...

result:

ok x=19260817

Test #5:

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

input:

1145141919

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH...

result:

ok x=1145141919

Test #6:

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

input:

2147483647

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 GO...

result:

ok x=2147483647

Test #7:

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

input:

1868665701

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 ...

result:

ok x=1868665701

Test #8:

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

input:

2102547599

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH 21 ...

result:

ok x=2102547599

Test #9:

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

input:

2054530275

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99...

result:

ok x=2054530275

Test #10:

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

input:

1953685475

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 9...

result:

ok x=1953685475

Test #11:

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

input:

2119017059

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH 21 ...

result:

ok x=2119017059

Test #12:

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

input:

1911337379

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99...

result:

ok x=1911337379

Test #13:

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

input:

887618459

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 9...

result:

ok x=887618459

Test #14:

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

input:

831117597

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 100 GOTO 1; PUSH ...

result:

ok x=831117597

Test #15:

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

input:

1820253559

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 9...

result:

ok x=1820253559

Test #16:

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

input:

1563399651

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PUSH 9...

result:

ok x=1563399651

Test #17:

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

input:

1631350977

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PUSH...

result:

ok x=1631350977

Test #18:

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

input:

1897574279

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 100 GOTO 1; PUSH ...

result:

ok x=1897574279

Test #19:

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

input:

450973351

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 9...

result:

ok x=450973351

Test #20:

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

input:

1212949423

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH...

result:

ok x=1212949423

Test #21:

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

input:

1800664165

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH 21...

result:

ok x=1800664165

Test #22:

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

input:

2083340735

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PUSH 9...

result:

ok x=2083340735

Test #23:

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

input:

1989353363

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 100 GOTO 1; PUSH 21...

result:

ok x=1989353363

Test #24:

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

input:

1686030751

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH ...

result:

ok x=1686030751

Test #25:

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

input:

483234157

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH 2...

result:

ok x=483234157

Test #26:

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

input:

1784967647

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 9...

result:

ok x=1784967647

Test #27:

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

input:

1052131125

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PUSH 99...

result:

ok x=1052131125

Test #28:

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

input:

673034421

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 100 GOTO 1; PUS...

result:

ok x=673034421

Test #29:

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

input:

1136250939

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PUSH ...

result:

ok x=1136250939

Test #30:

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

input:

1434678339

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 100 GOTO 1; PUSH 2...

result:

ok x=1434678339

Test #31:

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

input:

174274079

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH...

result:

ok x=174274079

Test #32:

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

input:

1911998229

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99...

result:

ok x=1911998229

Test #33:

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

input:

441665295

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH ...

result:

ok x=441665295

Test #34:

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

input:

1325107907

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99...

result:

ok x=1325107907

Test #35:

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

input:

264691101

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH 21...

result:

ok x=264691101

Test #36:

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

input:

1655988757

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PUSH ...

result:

ok x=1655988757

Test #37:

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

input:

1912613857

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 100 GOTO 1; PUSH ...

result:

ok x=1912613857

Test #38:

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

input:

471758205

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 100 GOTO 1; PUSH...

result:

ok x=471758205

Test #39:

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

input:

1295394655

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 100 GOTO 1; PUSH 25 GOTO 7
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 100 GOTO 1; PUSH 22 GOTO 10
POP 99 GOTO 11; PUSH ...

result:

ok x=1295394655

Test #40:

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

input:

1734993785

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99...

result:

ok x=1734993785

Test #41:

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

input:

986893495

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 100 GOTO 1; PUSH 26 GOTO 6
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH 21...

result:

ok x=986893495

Test #42:

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

input:

105826293

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 100 GOTO 1; PUSH 28 GOTO 4
POP 100 GOTO 1; PUSH 27 GOTO 5
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 100 GOTO 1; PUSH 24 GOTO 8
POP 100 GOTO 1; PUSH 23 GOTO 9
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 100 GOTO 1; PUSH...

result:

ok x=105826293

Test #43:

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

input:

3

output:

3
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
HALT; PUSH 100 GOTO 1

result:

ok x=3

Test #44:

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

input:

7

output:

7
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 4
POP 1 GOTO 5; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 6
POP 1 GOTO 7; PUSH 100 GOTO 1
HALT; PUSH 100 GOTO 1

result:

ok x=7

Test #45:

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

input:

9

output:

9
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 4
POP 1 GOTO 5; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 6
POP 1 GOTO 7; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 8
POP 1 GOTO 9; PUSH 100 GOTO 1
HALT; PUSH 100 GOTO 1

result:

ok x=9

Test #46:

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

input:

11

output:

11
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 4
POP 1 GOTO 5; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 6
POP 1 GOTO 7; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 8
POP 1 GOTO 9; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 10
POP 1 GOTO 11; PUSH 100 GO...

result:

ok x=11

Test #47:

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

input:

13

output:

13
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 4
POP 1 GOTO 5; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 6
POP 1 GOTO 7; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 8
POP 1 GOTO 9; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 10
POP 1 GOTO 11; PUSH 100 GO...

result:

ok x=13

Test #48:

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

input:

15

output:

15
POP 100 GOTO 1; PUSH 1 GOTO 2
POP 1 GOTO 3; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 4
POP 1 GOTO 5; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 6
POP 1 GOTO 7; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 8
POP 1 GOTO 9; PUSH 100 GOTO 1
POP 100 GOTO 1; PUSH 1 GOTO 10
POP 1 GOTO 11; PUSH 100 GO...

result:

ok x=15

Test #49:

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

input:

2147483643

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 GO...

result:

ok x=2147483643

Test #50:

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

input:

2147483645

output:

61
POP 99 GOTO 2; PUSH 99 GOTO 1
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 GO...

result:

ok x=2147483645

Test #51:

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

input:

1073741827

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 G...

result:

ok x=1073741827

Test #52:

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

input:

1073741825

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 G...

result:

ok x=1073741825

Test #53:

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

input:

1073741823

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 G...

result:

ok x=1073741823

Test #54:

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

input:

536870967

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 ...

result:

ok x=536870967

Test #55:

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

input:

536870965

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 100 GOTO 1; PUSH 29 GOTO 3
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 ...

result:

ok x=536870965

Test #56:

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

input:

1073741881

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 G...

result:

ok x=1073741881

Test #57:

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

input:

1073741879

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 G...

result:

ok x=1073741879

Test #58:

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

input:

1073741877

output:

61
POP 100 GOTO 1; PUSH 30 GOTO 2
POP 99 GOTO 3; PUSH 99 GOTO 2
POP 99 GOTO 4; PUSH 99 GOTO 3
POP 99 GOTO 5; PUSH 99 GOTO 4
POP 99 GOTO 6; PUSH 99 GOTO 5
POP 99 GOTO 7; PUSH 99 GOTO 6
POP 99 GOTO 8; PUSH 99 GOTO 7
POP 99 GOTO 9; PUSH 99 GOTO 8
POP 99 GOTO 10; PUSH 99 GOTO 9
POP 99 GOTO 11; PUSH 99 G...

result:

ok x=1073741877

Extra Test:

score: 0
Extra Test Passed