문제 출처: www.acmicpc.net/problem/2164 import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class bj2164카드2 { static Queue q; static int N, next, trash; public static void main(String[] args) { Scanner sc = new Scanner(System.in); q = new LinkedList(); N = sc.nextInt(); for (int i = 1; i 1) { q.poll(); next = q.poll(); q.add(next); } System.out.println(q.poll()); } ..