LINK ĐỀ
using namespace std; long long x=2,y=3,n; int main() { cin>>n; while(x<=n) {x=x2;} x=x/2; while(y<=9) {y=y2;} y=y/2; long long a=max(x,y); long long d=n-a; cout<<d; return 0; }
Comments
include<bits/stdc++.h>
using namespace std; long long x=2,y=3,n; int main() { cin>>n; while(x<=n) {x=x2;} x=x/2; while(y<=9) {y=y2;} y=y/2; long long a=max(x,y); long long d=n-a; cout<<d; return 0; }