#include<bits/stdc++.h>
#define N 1010
using namespace std;
vector <int> g[N];
int main(){
int n, m;
cin>>n >>m;
for(int i = 0;i <m;i++){
int a, b;
cin >> a >> b;
}
cout << "YES\n";
cout << n << endl;
cout << n-1 << ' ';
for(int i = n-1;i > 0;i--) cout << i << ' ';
cout << endl;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Integer 0 violates the range [1, 1] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Integer 0 violates the range [1, 1] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Integer 0 violates the range [1, 1] |
2 |
Halted |
0 ms |
0 KB |
- |