测试点 6
#include<bits/stdc++.h>
using namespace std;
namespace test6 {
int cnt = 0;
void op(int x) {
if (cnt == 2383)
return;
cout << "STAR 1 " << x << '\n';
++cnt;
}
void op2(int x) {
op(x + 1), op(x + 2 * 1), op(x);
}
void op3(int x) {
op2(x + 1), op2(x + 2 * 1), op(x);
}
void op4(int x) {
op3(x + 1), op3(x + 2 * 1), op(x);
}
void op5(int x) {
op4(x + 1), op4(x + 2 * 1), op(x);
}
void op6(int x) {
op5(x + 1), op5(x + 2 * 1), op(x);
}
void op7(int x) {
op6(x + 1), op6(x + 2 * 1), op(x);
}
void op8(int x) {
op7(x + 1), op7(x + 2 * 1), op(x);
}
void op9(int x) {
op8(x + 1), op8(x + 2 * 1), op(x);
}
void main() {
freopen("tritown6.out", "w", stdout);
op9(1), op9(2), op9(3), op9(4);
op8(5), op8(6);
op7(7), op7(8);
op6(9), op6(10);
op5(11), op5(12);
op4(13), op4(14);
op3(15), op3(16);
op2(17), op2(18);
op(19), op(20);
cout << "END\n";
}
}
signed main() {
test6::main();
}