✔ Online Judge

[C++] 백준 5597 과제 안 내신 분..?

근본없는 개발자 2023. 6. 9. 20:26

 

#include <iostream>
using namespace std;

int main() {
	int student[31] = { 0 }, n;
	for (int i = 1; i <= 28; i++) {
		cin >> n;
		student[n] = 1;
	}

	for (int i = 1; i <= 30; i++) {
		if (student[i] == 0) cout << i << '\n';
	}

	return 0;
}