What a question,i thought i was so close to the solution but then i thought to give a read to the editorial because i was not so sure and when i saw the question i waas far away from the real solution.Great Question ! Learnt new things from this question.
someone help me please im still new in this C programing #include <stdio.h>
int main()
{
int a = 0, b = 0 ,c = 1;
int n = 0;
scanf("%d",&n);
for(int i = 1; i <= n; i++){
scanf("%d",&a);
}
for(int j = 1; j <= a;j++){
scanf("%d %d",&b,&c);
b ^= c;
printf("%d",b);
I didn’t saw problem title when I started solving this problem, and I thought what kind of joke is this?
Then after submitting when I was saving problem link in my solved problems list and saw the problem code and then title. Literally, what a Good Joke!