当前位置:网站首页>[51nod] 2106 an odd number times
[51nod] 2106 an odd number times
2022-06-24 02:49:00 【SSL_ GYX】
An odd number of times

Their thinking
If a number is also or twice , Then it is equivalent to no or .
There is only one odd number in the data , So all the numbers or one time , The result is an odd number of times .
code
#include<iostream>
#include<cstdio>
using namespace std;
int n,ans;
int main()
{
cin>>n;
for(int i=1;i<=n;i++)
{
int t;
scanf("%d",&t);
ans^=t;
}
printf("%d\n",ans);
}
边栏推荐
- Which is a good human voice synthesis platform? What are the human voice synthesis application scenarios
- Using the database middleware MYCAT to realize read-write separation (dual master and dual slave)
- How to understand EDI requirements of trading partners
- How to bind EIP to access public network in tke cluster fixed IP mode pod
- How to apply for top-level domain names? What are the types of top-level domain names?
- Learning and life -- Talking about my learning methods
- The 2021 Tencent digital ecology conference is coming
- Iranian gas station paralyzed by cyber attack, babuk blackmail software source code leaked | global network security hotspot
- Afnetworking server client
- SAP retail characteristic profile I
猜你喜欢

2022-2028 global medical modified polypropylene industry research and trend analysis report

2022-2028 global marine wet exhaust hose industry research and trend analysis report

2022-2028 global portable two-way radio equipment industry research and trend analysis report

2022-2028 global aircraft front wheel steering system industry research and trend analysis report

IOS development - multithreading - thread safety (3)
Cloudpods golang practice

What is etcd and its application scenarios

2022-2028 global third-party data platform industry research and trend analysis report

2022-2028 global medical coating materials industry research and trend analysis report

2022-2028 global anti counterfeiting label industry research and trend analysis report
随机推荐
How to recover the garbled words in the software?
What are the performance characteristics of cloud desktop? How to choose the most cost-effective cloud desktop server?
How to view the speech synthesis platform how to use the speech synthesis platform
Learning and life -- Talking about my learning methods
How does easydss handle the problem that the sharing page cannot be opened due to cache problems?
Create and mount large files
How to access easynvr management platform through web pages without data?
Echo framework: add API logging Middleware
How to install an application publisher
How to use nsfilemanager
Start tcapulusdb process
What is the performance improvement after upgrading the 4800h to the 5800h?
VNC enters the password and goes around for a long time before entering the desktop. Use procmon to locate the reason
Optimization of Clickhouse ConnectionPool link pool
Opengl: how to use shader to convert RGBA to nv21 image format? (open source for the first time in the whole network)
How to build your own cloud game server and what are the building steps
Gin framework: RPC error code design
Compile blender source code
Engineer culture: why doesn't bat call the boss
Deep and shallow copy