백준 10768

Oak_Cassia·2022년 1월 25일
0

백준 10768
날짜가 2월18일, 이전, 이후에 따라 출력값 변경

#include<iostream>

int main()
{
    int month, day;
    std::cin>> month;
    std::cin>> day;
    if(month<2)
        std::cout<<"Before";
    if(month>2)
        std::cout<<"After";
    if(month==2)
        if(day<18)
            std::cout<<"Before";
        else if (day>18)
            std::cout<<"After";
        else
            std::cout<<"Special";
}
profile
rust로 뭐할까

0개의 댓글