# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
783327 | 2023-07-14T20:50:09 Z | vh50 | Newspapers (CEOI21_newspapers) | C++17 | 0 ms | 212 KB |
#include <bits/stdc++.h> #define int long long #define endl "\n" using namespace std; int n, m; main() { cin >> n >> m; cout << "YES" << endl; cout << (n * (n - 1))/2 << endl; for(int i = 1; i <= n; i++) { for(int j = 0; j < i; j++) cout << i << " "; } cout << endl; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Integer parameter [name=k] equals to 0, 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 0, 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 0, violates the range [1, 5] |
2 | Halted | 0 ms | 0 KB | - |