You are viewing a single comment's thread. Return to all comments →
that wiki code is helping very much
#include <bits/stdc++.h> using namespace std; int main() { long n; cin>>n; long ans=0; long x; long arr[n]; long count=0; for(long long i=0;i<n;i++) { cin>>arr[i]; ans^=arr[i]; } for(int i=0;i<n;i++) if((ans^arr[i])<arr[i]) count++; cout<<count; }
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate in Box
You are viewing a single comment's thread. Return to all comments →
that wiki code is helping very much