답안 #1019429

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1019429 2024-07-10T20:20:14 Z MarwenElarbi Povjerenstvo (COI22_povjerenstvo) C++17
0 / 100
58 ms 2136 KB
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#define pb push_back
#define se second
#define fi first
#define optimise ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const int nax=1e5+5;
int main() {
    optimise;
    int n,m;
    cin>>n>>m;
    int vis[n];
    for (int i = 0; i < m; ++i)
    {
        int x,y;
        cin>>x>>y;
        x--;y--;
        vis[x]=1;
    }
    cout <<n-m<<endl;
    for (int i = 0; i < n; ++i)
    {
        if(vis[i]==1) continue;
        cout <<i+1<<" ";
    }cout <<endl;
}

# 결과 실행 시간 메모리 Grader output
1 Incorrect 52 ms 2136 KB For each person outside the committee there should be someone in the committee who they dislike.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 58 ms 2136 KB For each person outside the committee there should be someone in the committee who they dislike.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB For each person outside the committee there should be someone in the committee who they dislike.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 52 ms 2136 KB For each person outside the committee there should be someone in the committee who they dislike.
2 Halted 0 ms 0 KB -