8000 Create 9655_1.cpp · sms3025/basic-algo-lecture@494d4c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 494d4c1

Browse files
Create 9655_1.cpp
규칙찾기 풀이
1 parent 8b26bd8 commit 494d4c1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

0x10/solutions/9655_1.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Authored by : 0000000000
2+
// Co-authored by : -
3+
// http://boj.kr/97ae59164b45494fa916d3a4fe2511bc
4+
#include <bits/stdc++.h>
5+
using namespace std;
6+
7+
int main(void) {
8+
ios::sync_with_stdio(0);
9+
cin.tie(0);
10+
11+
int n; cin >> n;
12+
13+
cout << (n % 2 ? "SK" : "CY");
14+
}
15+
16+
/*
17+
손으로 직접 써 가면서 해 보면 규칙이 나옵니다. 물론 수학적으로도 증명이 가능합니다.
18+
*/

0 commit comments

Comments
 (0)
0