Skip to content

Commit 7b8e785

Browse files
authored
Unique Number - I Solution Added
1 parent 81da1b7 commit 7b8e785

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Hacker Blocks/Unique Number - I.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Hacker Blocks */
2+
/* Title - Unique Number - I */
3+
/* Created By - Akash Modak */
4+
/* Date 7/1/2020 */
5+
6+
#include<iostream>
7+
using namespace std;
8+
int main() {
9+
int n;
10+
cin>>n;
11+
int x = 0;
12+
for(int i=1;i<=n;i++){
13+
int m;
14+
cin>>m;
15+
x^=m;
16+
}
17+
cout<<x<<endl;
18+
return 0;
19+
}

0 commit comments

Comments
 (0)