근본없는 코딩
[C++] 백준 5597 과제 안 내신 분..? 본문

#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;
}'✔ Online Judge' 카테고리의 다른 글
| [C++] 백준 10811 바구니 뒤집기 (1) | 2023.06.09 |
|---|---|
| [C++] 백준 3052 나머지 (0) | 2023.06.09 |
| [C++] 백준 10813 공 바꾸기 (0) | 2023.06.09 |
| [C++] 백준 10810 공넣기 (1) | 2023.06.09 |
| [C++] 백준 2562 최댓값 (0) | 2023.06.09 |