- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int tc;
- cin>>tc;
- for(int p = 0; p < tc; ++p){
- int n;
- cin>>n;
- int ans = 0;
- vector<int>v1, v2;
- for(int i =0; i <n; i++){
- int a;
- cin>>a;
- v1.push_back(a);
- }
- for(int i =0; i <n; i++){
- int a;
- cin>>a;
- v2.push_back(a);
- }
- for(int i = 0; i <n;i++){
- ans^= (v2[i]-v1[i]-1);
- }
- if(ans) cout<<"Case "<<(p+1)<<": "<<"white wins"<<endl;
- else cout<<"Case "<<(p+1)<<": "<<"black wins"<<endl;
- }
- return 0;
- }
Thursday, 27 July 2017
Lightoj 1186 - Incredible Chess
Subscribe to:
Post Comments (Atom)
Most Featured Post
Lightoj 1159 - Batman
http://lightoj.com/volume_showproblem.php?problem=1159 problem analysis: First i thought of this as if s1, s2 and s3 are those three str...
-
http://lightoj.com/volume_showproblem.php?problem=1382 Problem analysis: This is a rare problem i wrote about so far. After much strugg...
-
http://lightoj.com/volume_showproblem.php?problem=1159 problem analysis: First i thought of this as if s1, s2 and s3 are those three str...
No comments:
Post a Comment