알고리즘

C++ 알고리즘 - 9655 돌 게임

마루설아 2025. 1. 20. 18:39

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";
}