牛人的题目(位运算一)
来源:互联网 发布:苹果电脑画图软件 编辑:程序博客网 时间:2024/06/05 07:59
Description
In the new year party, everybody will get a "special present".
Now it's your turn to get your special present, a lot of presents now putting on the desk,
and only one of them will be yours.Each present has a card number on it,
and your present's card number will be the one that different from all the others,
and you can assume that only one number appear odd times.For example, there are 5 present,
and their card numbers are 1, 2, 3, 2, 1.so your present will be the one with the card number of 3,
because 3 is the number that different from all the others.
Input
The input file will consist of several cases. Each case will be presented by an integer n (1 <= n <= 1000000, and n is odd) at first.
Following that, n positive integers will be given in a line,
all integers will smaller than 2^31.
These numbers indicate the card numbers of the presents.n = 0 ends the input.
Output
For each case, output an integer in a line, which is the card number of your present.
Sample Input
51 1 3 2 231 2 10
Sample Output
32
0 0
- 牛人的题目(位运算一)
- 牛人的题目(位运算一)
- 牛人题目(位运算二)
- 牛人题目(位运算二)
- 位运算题目的程序
- 关于位运算的一个题目
- 位运算的常见操作和题目
- 笔试面试中涉及位运算的题目总结(一)
- 位运算相关题目
- 位运算相关题目
- 位运算相关题目
- 位运算 题目
- 常用位运算算法题目
- NYOJ 题目1069 生活的难题(位运算,技巧)
- 位运算符可能会出现的笔试题目
- Android中的位运算的例子(一)
- 位运算艺术(一)
- 位运算艺术(一)
- find the nth digit(数论)
- synchronized详解(三)
- 国外人对Qt的评价
- Android 中Webview 自适应屏幕
- unity实现鼠标框选
- 牛人的题目(位运算一)
- 调用COM组件服务器正在运行中解决方法
- GIT & REPO & GERRIT (二)
- C#网络编程(订立协议和发送文件) - Part.4
- MFC 视图分栏,分割窗口,在一个窗口设置对话框
- GIT & REPO & GERRIT (一)
- WINDOWS后台服务程序编写
- C++ 经典线程同步 事件Event示例解析(十)
- opencv2.4.8