백준알고리즘 10845번 큐
백준알고리즘 https://www.acmicpc.net/problem/10845 Front만 유의하면 쉬운 문제import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count = Integer.parseInt(scan.next().trim()); int lastValue = 0; Queue que = new LinkedList(); for(int i=0; i