fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. double a = 20, n = 0;
  6. while (true){
  7. a /= 2;
  8. n++;
  9. if (a == 2.5) break;
  10. }
  11. n *= 1600;
  12. cout << n << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
4800