Submission #857951

#TimeUsernameProblemLanguageResultExecution timeMemory
857951danikoynovNewspapers (CEOI21_newspapers)C++14
0 / 100
0 ms348 KiB
#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 + 1 << endl; cout << 2 << " "; for (int i = 2; i <= n; i += 2) cout << i << " "; for (int i = 1; i <= n; i ++) cout << i << " "; cout << endl; } int main() { solve(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...