当前位置:网站首页>Codeforces Round #803 (Div. 2)
Codeforces Round #803 (Div. 2)
2022-07-06 10:01:00 【Stellaris_L】
A - XOR Mixup
题目大意:
给一个有 n 个数的数组,其中有 1 个数是另外 n-1 个数的异或和,求出这个数。
做法:
因为必然有解,所以整个数组的异或和为 0,只需要随意选择一个就可以了。
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=2e5+10;
int T,n;
void slove(){
int n;
cin>>n;
int ans;
for(int i=0;i<n;i++){
cin>>ans;
}
cout<<ans<<endl;
}
int main(){
cin>>T;while(T--)
slove();
return 0;
}
B - Rising Sand
边栏推荐
- Sqoop I have everything you want
- Binary search strategy
- Unity粒子特效系列-闪星星的宝箱
- OliveTin能在网页上安全运行shell命令(上)
- kivy教程之在 Kivy 中支持中文以构建跨平台应用程序(教程含源码)
- Zen integration nails, bugs, needs, etc. are reminded by nails
- Xin'an Second Edition: Chapter 25 mobile application security requirements analysis and security protection engineering learning notes
- [translation] principle analysis of X Window Manager (I)
- Pytest learning ----- detailed explanation of the request for interface automation test
- Concept and basic knowledge of network layering
猜你喜欢
面试突击62:group by 有哪些注意事项?
Scratch epidemic isolation and nucleic acid detection Analog Electronics Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
Olivetin can safely run shell commands on Web pages (Part 1)
FlutterWeb瀏覽器刷新後無法回退的解决方案
What is the reason why the video cannot be played normally after the easycvr access device turns on the audio?
Distinguish between basic disk and dynamic disk RAID disk redundant array
Cool Lehman has a variety of AI digital human images to create a vr virtual exhibition hall with a sense of technology
The NTFS format converter (convert.exe) is missing from the current system
趣-关于undefined的问题
【ASM】字节码操作 ClassWriter 类介绍与使用
随机推荐
李书福为何要亲自挂帅造手机?
Olivetin can safely run shell commands on Web pages (Part 1)
EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
Wechat applet obtains mobile number
Shell input a string of numbers to determine whether it is a mobile phone number
【MySQL入门】第四话 · 和kiko一起探索MySQL中的运算符
The art of Engineering
趣-关于undefined的问题
C# NanoFramework 点灯和按键 之 ESP32
Pourquoi Li shufu a - t - il construit son téléphone portable?
Solid principle
Grafana 9 is officially released, which is easier to use and more cool!
How to output special symbols in shell
中移动、蚂蚁、顺丰、兴盛优选技术专家,带你了解架构稳定性保障
Distinguish between basic disk and dynamic disk RAID disk redundant array
Chrome prompts the solution of "your company management" (the startup page is bound to the company's official website and cannot be modified)
偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
10 advanced concepts that must be understood in learning SQL
Manifest of SAP ui5 framework json
Debug xv6