This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |