백준2161자바

    [백준, BOJ 2161] 카드1 (java)

    https://www.acmicpc.net/problem/2161메모리: 14,508 KB , 시간: 108 ms사용 알고리즘: 자료 구조, 구현, 큐import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.ArrayDeque;import java.util.Deque;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.read..