当前位置:网站首页>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
边栏推荐
- OliveTin能在网页上安全运行shell命令(上)
- 李書福為何要親自掛帥造手機?
- 【Elastic】Elastic缺少xpack无法创建模板 unknown setting index.lifecycle.name index.lifecycle.rollover_alias
- MarkDown语法——更好地写博客
- Cool Lehman has a variety of AI digital human images to create a vr virtual exhibition hall with a sense of technology
- There is a gap in traditional home decoration. VR panoramic home decoration allows you to experience the completion effect of your new house
- Debug and run the first xv6 program
- Unity tips - draw aiming Center
- Smart street lamp based on stm32+ Huawei cloud IOT design
- F200——搭载基于模型设计的国产开源飞控系统无人机
猜你喜欢

基本磁盘与动态磁盘 RAID磁盘冗余阵列区分

JMeter interface test response data garbled

Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices

8位MCU跑RTOS有没有意义?

It doesn't make sense without a distributed gateway

基于STM32+华为云IOT设计的智能路灯

2022年大厂Android面试题汇总(一)(含答案)

Getting started with pytest ----- test case pre post, firmware

2022年大厂Android面试题汇总(二)(含答案)

The easycvr platform reports an error "ID cannot be empty" through the interface editing channel. What is the reason?
随机推荐
The art of Engineering (3): do not rely on each other between functions of code robustness
Guidelines for preparing for the 2022 soft exam information security engineer exam
[elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱
RepPoints:可形变卷积的进阶
C语言通过指针交换两个数
Shell input a string of numbers to determine whether it is a mobile phone number
编译原理——预测表C语言实现
偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
The NTFS format converter (convert.exe) is missing from the current system
C语言指针*p++、*(p++)、*++p、*(++p)、(*p)++、++(*p)对比实例
[introduction to MySQL] third, common data types in MySQL
基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
Xin'an Second Edition; Chapter 11 learning notes on the principle and application of network physical isolation technology
Single responsibility principle
The most complete tcpdump and Wireshark packet capturing practice in the whole network
Binary search strategy
李書福為何要親自掛帥造手機?
[translation] principle analysis of X Window Manager (I)
分布式不来点网关都说不过去