연결리스트
-
[백준] 1158 요세푸스 #JAVAAlgorithm Solving/BAEKJOON 2021. 1. 29. 20:51
BAEKJOON [1158] 요세푸스 코드 import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st = new StringTokenizer(br.readLine(), " "); int n = Integer.parseInt(st.nextToken()); int..