#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 << 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 |
0 ms |
348 KB |
Integer parameter [name=k] equals to 0, violates the range [1, 5] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Integer parameter [name=k] equals to 0, violates the range [1, 5] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Integer parameter [name=k] equals to 0, violates the range [1, 5] |
2 |
Halted |
0 ms |
0 KB |
- |