# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1197569 | A_M_Namdar | Newspapers (CEOI21_newspapers) | C++20 | 0 ms | 324 KiB |
#include <bits/stdc++.h>
using namespace std;
void input() {
int n, m;
cin >> n >> m;
if (m == n - 1) {
cout << "YES\n" << n;
for (int i = 0; i < n; i++)
cout << 1 << ' ';
}
else {
cout << "NO\n";
}
}
void solve() {
}
int main() {
ios:: sync_with_stdio(0), cin.tie(0), cout.tie(0);
input();
solve();
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |