Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool d[1001];
- int main(){
- int n;
- scanf("%d", &n);
- d[1] = true;
- for (int i = 3; i <= 1000; i++){
- d[i] = false;
- if (d[i - 1] == false) d[i] = true;
- if (d[i - 3] == false) d[i] = true;
- }
- if (d[n]) printf("CY\n");
- else printf("SK");
- return 0;
- }
Add Comment
Please, Sign In to add comment