From 51d4b229f5734323ba45bced5f328a00b991e990 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Fri, 19 Sep 2025 15:46:57 +0900 Subject: [PATCH] 20250919 baekjoon --- code_study/Baekjoon/java/_1002.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 code_study/Baekjoon/java/_1002.java diff --git a/code_study/Baekjoon/java/_1002.java b/code_study/Baekjoon/java/_1002.java new file mode 100644 index 0000000..57f2471 --- /dev/null +++ b/code_study/Baekjoon/java/_1002.java @@ -0,0 +1,27 @@ +import java.util.Scanner; + +public class _1002 { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + int N = sc.nextInt(); + int result; + + for(int i=0; i dist && dist > subDist) result = 2; + else result = 0; + + System.out.println(result); + } + + sc.close(); + } +}