# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
832230 | 2023-08-21T07:14:40 Z | QwertyPi | Newspapers (CEOI21_newspapers) | C++14 | 1 ms | 212 KB |
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define int long long using namespace std; const int MAXN = 1e3 + 11; vector<int> ans; void yes(){ cout << "YES" << endl; cout << ans.size() << endl; for(auto i : ans) cout << i << ' '; cout << endl; exit(0); } void no(){ cout << "NO" << endl; exit(0); } int32_t main(){ int n, m; cin >> n >> m; if(n == 1){ ans = {1}; yes(); } if(n % 2){ for(int i = 2; i <= n - 1; i++){ ans.push_back(i); } for(int i = 2; i <= n - 1; i++){ ans.push_back(i); } }else{ for(int i = 2; i <= n; i++){ ans.push_back(i); } for(int i = 2; i <= n - 1; i++){ ans.push_back(i); } } yes(); }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Partially correct | 0 ms | 212 KB | Failed to provide a successful strategy. |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Partially correct | 1 ms | 212 KB | Provide a successful but not optimal strategy. |
5 | Partially correct | 0 ms | 212 KB | Failed to provide a successful strategy. |
6 | Partially correct | 1 ms | 212 KB | Failed to provide a successful strategy. |
7 | Incorrect | 1 ms | 212 KB | Output isn't correct |
8 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Partially correct | 0 ms | 212 KB | Failed to provide a successful strategy. |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
5 | Correct | 1 ms | 212 KB | Output is correct |
6 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
7 | Correct | 0 ms | 212 KB | Output is correct |
8 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
9 | Correct | 0 ms | 212 KB | Output is correct |
10 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
11 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
12 | Correct | 0 ms | 212 KB | Output is correct |
13 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
14 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
15 | Correct | 0 ms | 212 KB | Output is correct |
16 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
17 | Correct | 0 ms | 212 KB | Output is correct |
18 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
19 | Correct | 0 ms | 212 KB | Output is correct |
20 | Partially correct | 0 ms | 212 KB | Provide a successful but not optimal strategy. |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Partially correct | 0 ms | 212 KB | Failed to provide a successful strategy. |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Partially correct | 1 ms | 212 KB | Provide a successful but not optimal strategy. |
5 | Partially correct | 0 ms | 212 KB | Failed to provide a successful strategy. |
6 | Partially correct | 1 ms | 212 KB | Failed to provide a successful strategy. |
7 | Incorrect | 1 ms | 212 KB | Output isn't correct |
8 | Halted | 0 ms | 0 KB | - |