Advertisement
a53

ncif

a53
May 9th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <fstream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n,a,b;
  8. ifstream f("ncif.in");
  9. f>>n;
  10. ofstream g("ncif.out");
  11. while(n--)
  12. {
  13. f>>a>>b;
  14. g<<(int)(b*log10(a))+1<<'\n';
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement