#include <bits/stdc++.h>
using namespace std;
int T;
int main() {
cin >> T;
while (T--) {
int A;
cin >> A;
assert(A==20||A==200);
if (A==20) {
int ii, ij;
while (ii != 0) {
for (int i = 2; i < 3; i++) {
for (int j = 2; j < 7; j++) {
cout << i << ' ' << j << endl;
cout << flush;
cin >> ii >> ij;
assert(false);
if (ii==0) break;
assert(ii != -1);
}
if (ii==0) break;
}
if (ii==0) break;
}
} else {
int ii, ij;
while (ii != 0) {
for (int i = 2; i < 3; i++) {
for (int j = 2; j < 67; j++) {
cout << i << ' ' << j << endl;
cout << flush;
cin >> ii >> ij;
assert(false);
assert(ii != -1);
if (ii==0) break;
}
if (ii==0) break;
}
if (ii==0) break;
}
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
5 ms |
512 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
5 ms |
512 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |