알고리즘/큐 (3) 썸네일형 리스트형 10866번 큐 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class Main { static int queue[]=new int[10001]; static int index=0; public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw.. 1158번 요세푸스 문제 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; public class Main { static Queue queue=new LinkedList(); public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamRe.. 10845번 큐 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class Main { static int queue[]=new int[10001]; static int index=0; public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw.. 이전 1 다음