제출 #712072

#제출 시각아이디문제언어결과실행 시간메모리
712072wenqiWorm Worries (BOI18_worm)C++17
10 / 100
1 ms328 KiB
// trans rights #include <bits/extc++.h> using namespace std; using ll = long long; int N, M, K, Q; int H(int x, int y = 1, int z = 1) { cout << "? " << x << ' ' << y << ' ' << z << endl; int h; cin >> h; return h; } int main(int argc, const char *argv[]) { ios::sync_with_stdio(false); cin.tie(0); cin >> N >> M >> K >> Q; int a = 1, b = N + 1; while (b - a > 1) { int m = (a + b) / 2; if (H(m) > H(m - 1)) a = m; else b = m; } cout << "! " << a << ' ' << 1 << ' ' << 1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...