Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <vector>
- #include <algorithm>
- #include <cstdio>
- #include <math.h>
- #include <string>
- #include <stdio.h>
- #include <string.h>
- #include <string>
- #include <stdlib.h>
- #include <cmath>
- #include <iomanip>
- #include <queue>
- #include <utility>
- #include <vector>
- #include <stack>
- #include <list>
- #include <iterator>
- using namespace std;
- int main(int argc, const char * argv[]) {
- string TextMsg;
- cin>>TextMsg;
- int ia = (int)TextMsg[0];
- int ib = (int)TextMsg[1];
- if (ia % 2 ==1){
- if (ib % 2 ==1){
- cout<<"BLACK"<<endl;
- }
- else {
- cout<<"WHITE"<<endl;
- }
- }
- else {
- if (ib % 2 ==1){
- cout<<"WHITE"<<endl;
- }
- else {
- cout<<"BLACK"<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement