제출 #255352

#제출 시각아이디문제언어결과실행 시간메모리
255352a_playerColors (BOI20_colors)C++14
0 / 100
0 ms256 KiB
#include <bits/stdc++.h> using namespace std; bool check(int t){ cout<<"? 1"<<endl; int h; cin>>h; cout<<"? "<<t<<endl; cin>>h; return !h; } int main(){ int N; cin>>N; int x=0; for(int b=N;b>=1;b/=2){ while(check(x+b))x+=b; } cout<<"= x"<<endl; }
#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...