BOJ10430

    [백준,BOJ 10430] 나머지 (JAVA 구현)

    -해법 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int A = in.nextInt(); int B = in.nextInt(); int C = in.nextInt(); System.out.println((A+B)%C); System.out.println( ((A%C) + (B%C))%C); System.out.println( (A*B)%C); System.out.println( ((A%C) * (B%C))%C); in.close(); } } 문제에서 제공하는 수식을 C&W 하면 된다.