fork(3) download
  1. #include <bits/stdc++.h>
  2.  
  3. int main()
  4. {
  5. long long pow2_58 = 288230376151711744LL;
  6.  
  7. int ratio = 1000000000000000000LL/pow2_58;
  8. int ans = log(ratio)/log(3);
  9. std::cout << ans;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
1