疑似 HACK?
查看原帖
疑似 HACK?
743014
_H17_楼主2024/9/16 22:27

暴力检测是否对称的代码卡掉了?

满二叉树,切权值都是 11

#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;
}
2024/9/16 22:27
加载中...