Submission #1197570

#TimeUsernameProblemLanguageResultExecution timeMemory
1197570A_M_NamdarNewspapers (CEOI21_newspapers)C++20
4 / 100
0 ms328 KiB
#include <bits/stdc++.h>
using namespace std;


void input() {
	int n, m;
	cin >> n >> m;
	if (m == n - 1) {
		cout << "YES\n" << 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...