본문 바로가기

Algorithm

C++(씨쁠쁠)(cplusplus)-백준(baekjoon)(BaekJoon)코딩 10768번:특별한 날 답

반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
using namespace std;
int main() {
    int m, d;
    cin >> m >> d;
    if (m < 2)
        cout << "Before" << '\n';
    else if (m == 2)
    {
        if (d == 18)
            cout << "Special" << '\n';
        else if (d < 18)
            cout << "Before" << '\n';
        else
            cout << "After" << '\n';
    }
    else
        cout << "After" << '\n';
}
cs