답안 #857949

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
857949 2023-10-07T07:50:57 Z danikoynov Newspapers (CEOI21_newspapers) C++14
0 / 100
0 ms 348 KB
#include<bits/stdc++.h>
#define endl '\n'

using namespace std;
typedef long long ll;

void speed()
{
    ios_base::sync_with_stdio(NULL);
    cin.tie(NULL);
    cout.tie(NULL);
}

int n, m;
void solve()
{
    cin >> n >> m;
    cout << "YES" << endl;
    cout << n + n / 2 << endl;
    for (int i = 2; i <= n; i += 2)
        if (i % 2 == 1)
        cout << i << " ";
    for (int i = 1; i <= n; i ++)
        cout << i << " ";
    cout << endl;
}
int main()
{
    solve();
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
3 Halted 0 ms 0 KB -