import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for (int i = 0; i < T; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
System.out.printf("#%d %d %d\n", i+1, a/b, a%b);
}
}
}
'알고리즘 > 문제 풀이' 카테고리의 다른 글
SW Expert Academy 2025 N줄 덧셈 (0) | 2023.05.05 |
---|---|
SW Expert Academy 2027 대각선 출력하기 (0) | 2023.05.05 |
SW Expert Academy 2043 서랍의 비밀번호 (0) | 2023.05.05 |
SW Expert Academy 2046. 스탬프 찍기 (0) | 2023.05.05 |
SW Expert Academy 2047 신문 헤드라인 (0) | 2023.05.04 |