Submission #961117

# Submission time Handle Problem Language Result Execution time Memory
961117 2024-04-11T14:11:16 Z PagodePaiva Newspapers (CEOI21_newspapers) C++17
0 / 100
0 ms 348 KB
#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;
    cout << n << ' ';
    for(int i = n;i > 1;i--) cout << i << ' ';
    for(int i = n;i > 1;i--) cout << i << ' ';
        cout << endl;

    return 0;
}
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -