Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Timus 1924
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, z=0, rez;
- cin >> n;
- for(int i=1;i<n+1;i++)
- {
- if(z==0){z++;rez=1;}
- else if(z==1){z++;rez=1;}
- else if(z==2){z++;rez=2;}
- else if(z==3){z=0;rez=2;}
- }
- if(rez==1){cout << "grimy";}
- else if(rez==2){cout << "black";}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement