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

[백준/Java] 17256번 달달함이 넘쳐흘러

by 현장 2022. 4. 14.

-Code

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int ax = scanner.nextInt();
        int ay = scanner.nextInt();
        int az = scanner.nextInt();

        int cx = scanner.nextInt();
        int cy = scanner.nextInt();
        int cz = scanner.nextInt();

        System.out.println(String.format("%d %d %d", cx - az, cy / ay, cz - ax));
    }
}