func_code_string: #include <bits/stdc++.h>   using namespace std;   double EPS = 1e-9;   int INF = 1000000005;   long long INFF = 1000000000000000005ll;   double PI = acos(-1);   int dirx[8] = {-1, 0, 0, 1, -1, -1, 1, 1};   int diry[8] = {0, 1, -1, 0, -1, 1, -1, 1};   long long MOD = 1000000007;   template <typename T_vector>   void output_vector(const T_vector &v, bool line_break = false,                      bool add_one = false, int start = -1, int end = -1) {     if (start < 0) start = 0;     if (end < 0) end = int(v.size());     for (int i = start; i < end; i++) {       cout << v[i] + (add_one ? 1 : 0)            << (line_break    ?   n                 : i < end - 1 ?                                  :   n );     }   }   void solve() {     int n;     cin >> n;     vector<int> a(n);     for (auto &(z) : a) cin >> z;     ;     int ans = 0;     for (int(i) = (0); (i) < (n); ++(i)) {       int j = i;       while (j + 1 < n && a[j + 1] <= a[j] * 2) j++;       ans = max(ans, j - i + 1);       i = j;     }     cout << ans << endl;   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     solve();     return 0;   }   