Advertisement
Niloy007

165 B

Jun 14th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.96 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #define max 1000000
  3. #define pb push_back
  4. #define pairs pair<int, int>
  5. #define vi vector<int>
  6. #define vb vector<bool>
  7. #define vii vector<pairs>
  8. #define lb lower_bound
  9. #define ub upper_bound
  10. #define lli long long int
  11. #define endl '\n'
  12. #define FastInput ios_base::sync_with_stdio(false), cin.tie(NULL);
  13. #define Cases  cout << "Case " << ++Case << ": ";
  14. #define __test int tt; int Case=0; cin >> tt; while(tt--)
  15. #define read(x) freopen(x, "r", stdin)
  16. #define write(x) freopen(x, "w", stdout)
  17. #define InputArray(a,n) for(int i=0;i<n;i++) cin >> a[i];
  18. #define CopyArray(a,temp,n) for(int i=0;i<n;i++) temp[i]=a[i];
  19. #define PrintArray(a,n) for(int i=0;i<n;i++) cout << a[i] << " "; cout << endl;
  20. using namespace std;
  21.  
  22.  
  23. int main() {
  24. #ifdef Niloy
  25.     read("input.txt");
  26.     write("output.txt");
  27. #endif
  28.  
  29.     lli p = 100, x, step = 0;
  30.     cin >> x;
  31.   while(p < x) {
  32.       p += p / 100;
  33.       step++;
  34.   }
  35.  
  36.   cout << step << endl;
  37.  
  38.   return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement