1021
-
[백준] 1021 회전하는 큐 #JAVAAlgorithm Solving/BAEKJOON 2021. 1. 31. 14:34
BAEKJOON [1021] 회전하는 큐? 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n,m; int target, targetIdx; int moveCnt=0; StringTokenizer..