본문 바로가기
Beakjoon&프로그래머스/Java

[백준/Java] 14652번 나는 행복합니다~

by 현장 2022. 4. 13.

-Code

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int k = scanner.nextInt();

        System.out.println(String.format("%d %d", k / m, k % m));
    }
}