Advertisement
askarulytarlan

#62 Клетки

Apr 9th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cmath>
  4. #include <vector>
  5. #include <algorithm>
  6. #include <cstdio>
  7. #include <math.h>
  8. #include <string>
  9. #include <stdio.h>
  10. #include <string.h>
  11. #include <string>
  12. #include <stdlib.h>
  13. #include <cmath>
  14. #include <iomanip>
  15. #include <queue>
  16. #include <utility>
  17. #include <vector>
  18. #include <stack>
  19. #include <list>
  20. #include <iterator>
  21.  
  22. using namespace std;
  23.  
  24. int main(int argc, const char * argv[]) {
  25. string TextMsg;
  26. cin>>TextMsg;
  27. int ia = (int)TextMsg[0];
  28. int ib = (int)TextMsg[1];
  29.  
  30. if (ia % 2 ==1){
  31. if (ib % 2 ==1){
  32. cout<<"BLACK"<<endl;
  33. }
  34. else {
  35. cout<<"WHITE"<<endl;
  36. }
  37. }
  38. else {
  39. if (ib % 2 ==1){
  40. cout<<"WHITE"<<endl;
  41. }
  42. else {
  43. cout<<"BLACK"<<endl;
  44. }
  45. }
  46. return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement