#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";
if(n == 1){
cout << 1 << endl;
cout << 1 << endl;
}
cout << 2*n-2 << endl;
for(int i = n;i > 1;i--) cout << i << ' ';
for(int i = n;i > 1;i--) cout << i << ' ';
cout << endl;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Extra information in the output file |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Extra information in the output file |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Extra information in the output file |
2 |
Halted |
0 ms |
0 KB |
- |