fork(2) download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double s;
  9. cin >> s;
  10. cout << ceil (log(s / 100 + 1) / log(1.1));
  11. return 0;
  12. }
Success #stdin #stdout 0s 4392KB
stdin
Standard input is empty
stdout
Standard output is empty