Submission #1197569

#TimeUsernameProblemLanguageResultExecution timeMemory
1197569A_M_NamdarNewspapers (CEOI21_newspapers)C++20
0 / 100
0 ms324 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...