Advertisement
rengetsu

ProcedurProgramavimas_2.20

Apr 5th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4. using namespace std;
  5. int main()
  6. {
  7. long long int z,d,s;
  8. cin>>z>>d;
  9. s=trunc(d*log10(z))+1;
  10. cout<<s;
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement