Submission #601769

# Submission time Handle Problem Language Result Execution time Memory
601769 2022-07-22T09:47:21 Z Valaki2 Newspapers (CEOI21_newspapers) C++14
0 / 100
1 ms 212 KB
#include <bits/stdc++.h>
using namespace std;

#define pb push_back

void solve() {
    int n, m;
    cin >> n >> m;
    cout << "YES\n";
    cout << 2 * (n - 1) << "\n";
    for(int i = 1; i <= n - 1; i++) {
        cout << i << " ";
    }
    for(int i = n - 1; i >= 1; i--) {
        cout << i << " ";
    }
    cout << "\n";
}

signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    solve();
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 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 212 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 1 ms 212 KB Integer parameter [name=k] equals to 0, violates the range [1, 5]
2 Halted 0 ms 0 KB -