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.
- All Contests
- HourRank 28
- Xorry Queries
- Discussions
Xorry Queries
Xorry Queries
Sort by
recency
|
8 Discussions
|
Please Login in order to post a comment
The definition of the problem is wrong.
Definition says,
But the implementation works when,
Here the interval
[l,r)
is left-closed,right-opened.what is wrong with this??
include
using namespace std; int main() { int n,i,m,l,k,j,p,x,sum=0; cin>>n>>m>>p; int a[n];
for(i=1;i<=n;i++) { cin>>a[i]; } for(i=1;i<=m;i++) { cin>>j>>k>>l; if(j==1) { a[k]=a[k]^l;
}
cout<
}
whats wrong here ???
Can you tell if there are any pre-requisites to the problem?
The contest has ended! I am unable to debug my code, to where it is going wrong. I am getting 2 testcases correct. Can someone post sample test cases?