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