Advertisement
rengetsu

Timus_1924

Jul 21st, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. //Timus 1924
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int n, z=0, rez;
  7.     cin >> n;
  8.     for(int i=1;i<n+1;i++)
  9.     {
  10.         if(z==0){z++;rez=1;}
  11.         else if(z==1){z++;rez=1;}
  12.         else if(z==2){z++;rez=2;}
  13.         else if(z==3){z=0;rez=2;}
  14.     }
  15.         if(rez==1){cout << "grimy";}
  16.         else if(rez==2){cout << "black";}
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement