λ¬Έμ
https://www.acmicpc.net/problem/10430
10430λ²: λλ¨Έμ§
첫째 μ€μ A, B, Cκ° μμλλ‘ μ£Όμ΄μ§λ€. (2 ≤ A, B, C ≤ 10000)
www.acmicpc.net
λ¬Έμ μ€λͺ
λ¬Έμ νμ΄
Scannerλ₯Ό μ¬μ©νμ¬ κ΅¬ννμλ€.
μ½λ
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.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);
sc.close();
}
}