daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. bool d[1001];
  4. int main(){
  5.     int n;
  6.     scanf("%d", &n);
  7.     d[1] = true;
  8.     for (int i = 3; i <= 1000; i++){
  9.         d[i] = false;
  10.         if (d[i - 1] == false) d[i] = true;
  11.         if (d[i - 3] == false) d[i] = true;
  12.     }
  13.     if (d[n]) printf("CY\n");
  14.     else printf("SK");
  15.     return 0;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top