1924번 c++ (1) 썸네일형 리스트형 백준 1924번: 2007년 c++ 코드(구현) #include using namespace std; int main(){ int x, y; int days = 0; scanf("%d %d", &x, &y); days += y; x -= 1; while(x > 0){ if(x == 1 | x == 3 | x == 5 | x == 7 | x == 8 | x == 10 | x == 12){ days += 31; x -= 1; }else if(x == 2){ days += 28; x -= 1; }else if(x == 4 | x == 6 | x == 9 | x == 11){ days += 30; x -= 1; } } if(days%7 == 1){ printf("MON"); }else if(days%7 == 2){ printf("TUE"); }else if(.. 이전 1 다음