LINK ĐỀ
using namespace std; long long N,X,Y; int main() { cin>>N; X=1; while(X<=N) { X=2; } X=X/2; Y=3; while(Y<=N) { Y=2; } Y=Y/2; cout<<max(X,Y); return 0; }
Comments
include<bits/stdc++.h>
using namespace std; long long N,X,Y; int main() { cin>>N; X=1; while(X<=N) { X=2; } X=X/2; Y=3; while(Y<=N) { Y=2; } Y=Y/2; cout<<max(X,Y); return 0; }