1235.Single Number

通过数:133提交数:421学校:北京邮电大学考研机试真题 题目列表 标签
Given an array with $ N $ integers where all elements appear three times except for one. Find out the one which appears only once. 输入格式 Several test cases are given, terminated by EOF. Each test case consists of two lines. The first line gives the length of array $ N $ ($ 1 \leq N \leq 10^5 $), and the other line describes the $ N $ elements. All elements are ranged in $ [0, 2^{63} - 1] $. 输出格式 Output the answer for each test case, one per line. 输入样例 4 1 1 1 3 10 1 2 3 1 2 3 1 2 3 4 输出样例 3 4
C
补全
点击调试按钮即可调试代码。

点击提交按钮即可提交代码。