本文主要是介绍hdu-2095-find your present (2)//1563-find your present,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
#include<stdio.h>int main()
{
int n,i,t,m;
while(scanf("%d",&n)&&n)
{
scanf("%d",&t);
for(m=t,i=1;i<n;i++)
{
scanf("%d",&t);
m^=t;
}
printf("%d\n",m);
}
return 0;
}
这篇关于hdu-2095-find your present (2)//1563-find your present的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!