我不是要宣传私题
  • 板块灌水区
  • 楼主Piggy343288
  • 当前回复13
  • 已保存回复13
  • 发布时间2023/1/16 17:26
  • 上次更新2023/10/24 03:59:01
查看原帖
我不是要宣传私题
762646
Piggy343288楼主2023/1/16 17:26

但是我自己测我自己出的题,结果是UKE,如下图所示:
请问是为什么?
附题目链接题目 和我使用的代码:

#include <bits/stdc++.h>
using namespace std;
bitset<100000> a;
bitset<100000> b;
int x,n;
int main(){
	cin>>x;
	while(x-->0){
		cin>>n;a.set(n-1,1);
	}
	cin>>x;
	while(x-->0){
		cin>>n;b.set(n-1,1);
	}
	cout<<(a&b)<<endl;
	cout<<(a|b)<<endl;
	cout<<(~a)<<endl;
	cout<<(a&~b)<<endl;
	cout<<(a^b)<<endl;		

}
2023/1/16 17:26
加载中...