-Code
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
System.out.println(n % 21);
}
}
'Beakjoon&프로그래머스 > Java' 카테고리의 다른 글
[백준/Java] 24086번 身長 (Height) (0) | 2022.04.15 |
---|---|
[백준/Java] 24082번立方体 (Cube) (0) | 2022.04.15 |
[백준/Java] 23234번 The World Responds (0) | 2022.04.14 |
[백준/Java] 22193번 Multiply (0) | 2022.04.14 |
[백준/Java] 21300번 Bottle Return (0) | 2022.04.14 |