Beginner Free Contest 10 - BIGGER
View as PDF
Submit solution
Points:
0.11 (partial)
Time limit:
1.0s
Memory limit:
256M
Problem types
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
Comments
include <bits/stdc++.h>
using namespace std; int main() { iosbase::syncwith_stdio(0); cin.tie(0); cout.tie(0); int a,b; cin>>a>>b; int cnt=0; while (a<=b){ a=a3; b=b2; cnt++;
}
arya? nice
while (a<=b){ int m=(b+a)/2; if (m<=b2){ res++; a=a3; b=b*2; } else{ break; } }
trau cung ac