We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Will you send your code so that I may find the bug? Does your code pass all test cases except testcase#3 ?
Here is my code hope it may help you out.
int main() {
int t;
cin>>t;
while(t--)
{
unsigned long n,a=0;
cin>>n;
unsigned long arr[n];
for(unsigned long i= 0 ; i< n ; i++)
cin>>arr[i];
if(n%2==0)
cout<<'0'<
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sansa and XOR
You are viewing a single comment's thread. Return to all comments →
Will you send your code so that I may find the bug? Does your code pass all test cases except testcase#3 ?
Here is my code hope it may help you out.
int main() { int t; cin>>t; while(t--) { unsigned long n,a=0; cin>>n; unsigned long arr[n]; for(unsigned long i= 0 ; i< n ; i++) cin>>arr[i]; if(n%2==0) cout<<'0'<