From 23a580cc9021b7540ef1e14223c0714630f10245 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Tue, 12 Aug 2025 22:21:22 +0900 Subject: [PATCH] 20250812 baekjoon --- code_study/Baekjoon/java/_5430.java | 58 +++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 code_study/Baekjoon/java/_5430.java diff --git a/code_study/Baekjoon/java/_5430.java b/code_study/Baekjoon/java/_5430.java new file mode 100644 index 0000000..e4980ba --- /dev/null +++ b/code_study/Baekjoon/java/_5430.java @@ -0,0 +1,58 @@ +import java.util.*; + +public class _5430 { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + int T = Integer.parseInt(sc.nextLine()); + + for(int t = 0; t arr = new LinkedList<>(); + for(String s : line){ + if(s.isEmpty()) break; + arr.add(Integer.parseInt(s)); + } + + for(int i=0; i