暴力检测是否对称的代码卡掉了?
满二叉树,切权值都是 1。
#include<bits/stdc++.h>
using namespace std;
int n,tot;
signed main(){
cout<<(n=524287);
for(int i=1;i<=n;i++)
cout<<1<<" \n"[i==n];
for(int i=1;i<=n;i++){
if((i<<1|1)<=n)
cout<<(i<<1)<<' '<<(i<<1|1)<<'\n';
else
cout<<"-1 -1\n";
}
return 0;
}