当前位置:网站首页>异或程序
异或程序
2022-07-24 14:32:00 【51CTO】
#include <stdio.h>
int main()
{
int arr[]={1,2,3,4,5,6,7,6,5,4,3,2,1};
int i=0;
int sz=sizeof(arr)/sizeof(arr[0]);
int ret=0;
for (i=0;i<sz;i++)
{
ret=ret^arr[i];
}
printf("%d",ret);
///*for(i=0;i<sz;i++)
//{
// int j=0;
// int count =0;
// for (j=0;j<sz;j++)
// {
// if(arr[i]==arr[j])
// {
// count =count+1;
// }
// }
// if(count==1)
//{
// printf("%d",arr[i]);
// break;
//}
//}*/
//printf("a=%d,b=%d\n",a,b);
return 0;
}
边栏推荐
- Was installer startup error
- Remove the treasure box app with the green logo that cannot be deleted from iPhone
- Where can Huatai Securities open an account? Is it safe to use a mobile phone
- 栈与队列——20. 有效的括号
- Error importing header file to PCH
- Dameng real-time active and standby cluster construction
- 2.4. properties of special profile
- Meaning of 7 parameters of thread pool
- 小熊派 课程导读
- String -- 28. Implement strstr()
猜你喜欢

北京一卡通以35288.8529万元挂牌出让68.45%股权,溢价率为84%

Production environment tidb cluster capacity reduction tikv operation steps
![Rasa 3.x 学习系列-Rasa [3.2.3] - 2022-07-18 新版本发布](/img/fd/c7bff1ce199e8b600761d77828c674.png)
Rasa 3.x 学习系列-Rasa [3.2.3] - 2022-07-18 新版本发布

达梦实时主备集群搭建
![[NLP] next stop, embossed AI](/img/fc/4997309d0d53c5b6eb441ac39e6929.jpg)
[NLP] next stop, embossed AI

Simple understanding and implementation of unity delegate

电赛设计报告模板及历年资源

Must use destructuring props assignmenteslint

Notes on the use of IEEE transaction journal template

Similarities and differences between nor flash and NAND flash
随机推荐
Centos7安装达梦单机数据库
正则表达和绕过案例
C language large and small end mode judgment function
自动化渗透扫描工具
看完这篇文章,才发现我的测试用例写的就是垃圾
Dialog manager Chapter 2: create frame window
AtCoder Beginner Contest 261E // 按位思考 + dp
北京一卡通以35288.8529万元挂牌出让68.45%股权,溢价率为84%
茅台冰淇淋“逆势”走红,跨界之意却并不在“卖雪糕”
Data analysis and mining 2
The spiral matrix of the force buckle rotates together (you can understand it)
字符串——剑指 Offer 58 - II. 左旋转字符串
Complete set of JS array common operations
ISPRS2018/云检测:Cloud/shadow detection based on spectral indices for multi/hyp基于光谱指数的多/高光谱光学遥感成像仪云/影检测
Deep learning 1 perceptron and implementation of simple back propagation network
Native asynchronous network communication executes faster than synchronous instructions
栈与队列——20. 有效的括号
Rest style
字符串——459. 重复的子字符串
Jmmert aggregation test report