太简单了
#include <bits/stdc++.h>
using namespace std;
int n , a[200] , x , t , j;
int main(){
cin >> n , n = pow(2 , n);
for(int i = 1 ; i <= n ; i++){cin >> a[i]; if(a[i] > x) x = a[i] , t = i;}
if(t <= n / 2) x = n / 2 + 1;
else x = 1 , n /= 2; t = 0;
for(int i = x ; i <= n ; i++) if(a[i] > t) t = a[i] , j = i;
cout << j;
return 0;
}