#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main()
{
ios_base::sync_with_stdio(false); cin.tie(0);
int n, m; cin>>n>>m;
for(int i=0; i<m; i++)
{
int x, y; cin>>x>>y;
}
if(n==1) cout<<"YES\n"<<"1 1"<<"\n";
else if(n==2) cout<<"YES\n"<<"1 1"<<"\n";
else
{
cout<<"YES\n"<<n*2-2<<" \n";
for(int i=2; i<n; i++)
{
cout<<i<<" "<<i<<" ";
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Partially correct |
1 ms |
212 KB |
Failed to provide a successful strategy. |
3 |
Incorrect |
1 ms |
212 KB |
Unexpected end of file - int32 expected |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Partially correct |
1 ms |
212 KB |
Failed to provide a successful strategy. |
3 |
Incorrect |
1 ms |
212 KB |
Unexpected end of file - int32 expected |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Partially correct |
1 ms |
212 KB |
Failed to provide a successful strategy. |
3 |
Incorrect |
1 ms |
212 KB |
Unexpected end of file - int32 expected |
4 |
Halted |
0 ms |
0 KB |
- |