백준 1924
▶요일 출력하기 문제 ▶풀이 방법 import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int month = sc.nextInt(); int day = sc.nextInt(); int days[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; String week[] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; for(int i = 0; i < month-1; i++){ day += days[i]; } System.out.println(week[day%7])..
2022. 3. 17.