문제 출처 : https://www.acmicpc.net/
#10250: ACM 호텔 (언어 : Java11)

제출 답안
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int interval = sc.nextInt();
for(int i=0; i<interval; i++) {
int h = sc.nextInt();
int w = sc.nextInt();
int n = sc.nextInt();
System.out.printf("%d%02d\n", (n%h==0?h:n%h), (n%h==0?n/h:n/h+1));
}
}
}
comment
-
'Study📚 > 백준' 카테고리의 다른 글
[백준] - #2441: 별 찍기 - 4 (0) | 2024.06.15 |
---|---|
[백준] - #1920: 수 찾기 (1) | 2024.06.14 |
[백준] - #5597: 과제 안 내신 분..? (0) | 2024.06.12 |
[백준] - #10817: 세 수 (0) | 2024.06.11 |
[백준] - #2743: 단어 길이 재기 (0) | 2024.06.10 |