From 5f42276192aa3d7b7e570bf02fe31903d0162dcb Mon Sep 17 00:00:00 2001 From: Kaizo8 Date: Tue, 16 Apr 2024 10:11:38 +0530 Subject: [PATCH] feat: day 21 easy solution --- Easy/Day 21/solution.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Easy/Day 21/solution.cpp b/Easy/Day 21/solution.cpp index 2084d29..dac9aa6 100644 --- a/Easy/Day 21/solution.cpp +++ b/Easy/Day 21/solution.cpp @@ -1 +1,15 @@ -// Write your code here. \ No newline at end of file +// Write your code here. +#include +using namespace std; +int main(){ + int n; + cin >> n; + int sum = 0; + for(int i = 0 ; i< (4*n)-1 ; i++){ + int temp; + cin >> temp; + sum = sum ^ temp; + } + cout << sum; + return 0; +} \ No newline at end of file