Submission #231879

# Submission time Handle Problem Language Result Execution time Memory
231879 2020-05-15T08:25:32 Z palpatinezw Go, Gopher! (GCJ18Q_gogopher) C++14
0 / 30
10000 ms 384 KB
#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 < 5; i++) {
					for (int j = 2; j < 9; j++) {
						cout << i << ' ' << j << endl;
						cout << flush;
						cin >> ii >> ij;
						if (ii==0) break;
					}
					if (ii==0) break;
				}
			}
		} else {
			int ii, ij;
			while (ii != 0) {
				for (int i = 2; i < 5; i++) {
					for (int j = 2; j < 69; j++) {
						cout << i << ' ' << j << endl;
						cout << flush;
						cin >> ii >> ij;
						if (ii==0) break;
					}
					if (ii==0) break;
				}
			}
		}
	}
}
# Verdict Execution time Memory Grader output
1 Execution timed out 6 ms 384 KB Time limit exceeded (wall clock)
# Verdict Execution time Memory Grader output
1 Execution timed out 10003 ms 384 KB Time limit exceeded