Skip to content

Commit 321b9d0

Browse files
authored
Unique Number - I
1 parent 4769645 commit 321b9d0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Unique Number - I.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
int main()
4+
{
5+
//vector< int > vi;
6+
int n;
7+
cin>>n;
8+
int res=0;
9+
for(int i = 0; i<n ; i++)
10+
{
11+
int tmp;
12+
cin>>tmp;
13+
res = res^tmp;
14+
//vi.push_back(tmp);
15+
16+
}
17+
cout<<res<<endl;
18+
19+
20+
21+
22+
}

0 commit comments

Comments
 (0)