Advertisement
a53

Log

a53
Dec 27th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n,m,sol=0;
  7. cin>>n>>m;
  8. while(m/n)
  9. m/=n,++sol;
  10. cout<<sol;
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement