#include using namespace std; int n = 200; int freee = n * n; int A[500][500]; pair rand_lc() { int t = rand() % freee; for(int i=0; i lc) { int a; cout << lc.first << " " << lc.second << endl; cin >> a; return a; } int main() { srand(time(0)); while(true) { auto p = rand_lc(); int q = query(p); if(q == 0) return 0; if(q > 0) { for(int i=p.first; i