当前位置:网站首页>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
边栏推荐
- Grafana 9 is officially released, which is easier to use and more cool!
- Spark accumulator and broadcast variables and beginners of sparksql
- 历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱
- There is a gap in traditional home decoration. VR panoramic home decoration allows you to experience the completion effect of your new house
- Pytest learning ----- pytest confitest of interface automation test Py file details
- [introduction to MySQL] the first sentence · first time in the "database" Mainland
- 学 SQL 必须了解的 10 个高级概念
- The most complete tcpdump and Wireshark packet capturing practice in the whole network
- C # nanoframework lighting and key esp32
- 2022年大厂Android面试题汇总(一)(含答案)
猜你喜欢
[rapid environment construction] openharmony 10 minute tutorial (cub pie)
The solution that flutterweb browser cannot be rolled back after refreshing
Olivetin can safely run shell commands on Web pages (Part 1)
Interview shock 62: what are the precautions for group by?
【MySQL入门】第三话 · MySQL中常见的数据类型
TCP connection is more than communicating with TCP protocol
开源与安全的“冰与火之歌”
2022年大厂Android面试题汇总(二)(含答案)
基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
C语言指针*p++、*(p++)、*++p、*(++p)、(*p)++、++(*p)对比实例
随机推荐
VR panoramic wedding helps couples record romantic and beautiful scenes
The art of Engineering (1): try to package things that do not need to be exposed
BearPi-HM_ Nano development board "flower protector" case
Pytorch extract middle layer features?
kivy教程之在 Kivy 中支持中文以构建跨平台应用程序(教程含源码)
Wechat applet obtains mobile number
What is the reason why the video cannot be played normally after the easycvr access device turns on the audio?
The art of Engineering (3): do not rely on each other between functions of code robustness
Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first
Flet教程之 13 ListView最常用的滚动控件 基础入门(教程含源码)
Unity tips - draw aiming Center
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
ASEMI整流桥DB207的导通时间与参数选择
RepPoints:可形变卷积的进阶
Interview shock 62: what are the precautions for group by?
开源与安全的“冰与火之歌”
[introduction to MySQL] the first sentence · first time in the "database" Mainland
一体化实时 HTAP 数据库 StoneDB,如何替换 MySQL 并实现近百倍性能提升
Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
MarkDown语法——更好地写博客