Submission #576546

# Submission time Handle Problem Language Result Execution time Memory
576546 2022-06-13T07:33:09 Z tengiz05 Newspapers (CEOI21_newspapers) C++17
0 / 100
0 ms 212 KB
#include <bits/stdc++.h>

using namespace std;
using i64 = long long;

int main() {
    int n, m;
    cin >> n >> m;
    
    cout << "YES\n";
    cout << (n - 2) * 2 << "\n";
    for (int i = 2; i <= n - 1; i++) {
        cout << i << " ";
    }
    for (int i = n - 1; i >= 2; i--) {
        cout << i << " ";
    }
    cout << "\n";
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Integer parameter [name=k] equals to -2, 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 -2, 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 -2, violates the range [1, 5]
2 Halted 0 ms 0 KB -