✏️ 문제풀이/백준

[백준/Java] 5597번 :: 과제 안 내신 분..?

bono-hye 2024. 4. 3. 22:45

import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] array = new int[30];
		
		for(int i=0; i<28; i++)
		{
			int n = sc.nextInt(); 
			array[n-1] = 1;
		}

		for(int i=0; i<30; i++)
			if (array[i] != 1)
				System.out.println(i+1);
		
		sc.close();
	}
}