#include<bits/stdc++.h> #define LL long long using namespace std; struct Tree{ int a[50]={0, 1, 2, 3, 4, -1, 8, 7, -1, -1, -1, -1, -1, -1, -1, -1}; void BT(int u=1){ cout<<a[u]<<endl; if(a[u*2]!=-1){ BT(u*2); } if(a[u*2+1]!=-1){ ...