Make Unreal REAL.
article thumbnail
5597. 과제 안 내신 분..?

 

 

#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    bool students[31] = {false};

    for (int i = 0; i < 28; ++i)
    {
        int id;

        cin >> id;

        students[id] = true;
    }

    for (int i = 1; i <= 30; ++i)
        if (students[i] == false)
            cout << i << "\n";

    return 0;
}

'자료구조 & 알고리즘 > 백준' 카테고리의 다른 글

11657. 타임머신  (0) 2023.09.13
1197. 최소 스패닝 트리  (0) 2023.09.11
1865. 웜홀  (0) 2023.09.09
11003. 최솟값 찾기  (0) 2023.09.08
11279. 최대 힙  (0) 2023.02.27
profile

Make Unreal REAL.

@diesuki4

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

검색 태그