제출 #1214445

#제출 시각아이디문제언어결과실행 시간메모리
1214445aykhnNewspapers (CEOI21_newspapers)C++20
0 / 100
0 ms328 KiB
#include <bits/stdc++.h>

using namespace std;

#define int long long

const int MXN = 1e6 + 5;
const int LOG = 20;

signed main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  if (m > n - 1)
  {
    cout << "NO\n";
    return 0;
  }
  if (n == 1)
  {
    cout << "YES\n1\n1\n";
    return 0;
  }
  assert(n != 4);
  cout << "YES\n" << n << '\n';
  for (int i = 1; i <= n; i++) cout << max(2LL, i) << ' ';
  cout << '\n';
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...