[JAVA] 백준 #10250 - ACM 호텔
·
💡 Algorithm/백준
10250번: ACM 호텔 프로그램은 표준 입력에서 입력 데이터를 받는다. 프로그램의 입력은 T 개의 테스트 데이터로 이루어져 있는데 T 는 입력의 맨 첫 줄에 주어진다. 각 테스트 데이터는 한 행으로서 H, W, N, 세 정수 www.acmicpc.net public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int testCnt = sc.nextInt(); for (int i = 0; i < testCnt; i++) { int floor = sc.nextInt(); // 층수 입력 int room = sc.nextInt(); // 방 수 입력 int customer = sc.next..