https://www.acmicpc.net/problem/9655
#include <bits/stdc++.h>
#define endl "\n"
using namespace std;
/******** 함 수 ********/
int main(void) {
/******** C++ INIT ********/
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
/******** 변 수 ********/
int input;
/******** 구 현 ********/
cin >> input;
// 입력된 수가 짝수면
if (input % 2 == 0) cout << "CY";
// 홀수면
else cout << "SK";
}
'알고리즘' 카테고리의 다른 글
C++ 알고리즘 - 15650 N과 M (2) (백트래킹) (0) | 2025.01.20 |
---|---|
C++ 알고리즘 - 15649 N과 M (1) (백트래킹) (0) | 2025.01.20 |
C++ 알고리즘 - 1049 막대기 (0) | 2025.01.20 |
C++ 알고리즘 - 1789 수들의 합 (0) | 2025.01.20 |
C++ 알고리즘 - 1475 방 번호 (0) | 2025.01.19 |