Algorithm
[BOJ] 9655번 : 돌 게임
rudgh99_algo
2024. 9. 5. 07:49
1. problem :
https://www.acmicpc.net/problem/9655
2. solution 1 :
#include <bits/stdc++.h>
using namespace std;
int n;
string d[1005];
int main(void) {
ios::sync_with_stdio(0);
cin.tie(0);
for (int i = 1; i <= 1000; i++) {
if (i % 2 == 0) d[i] = "CY";
else d[i] = "SK";
}
cin >> n;
cout << d[n] << '\n';
}