题库练习 Divisibility
← 上一题 下一题 →

A11469 | Divisibility

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

Imp is really pleased that you helped him. But it you solve the last problem, his gladness would raise even more.

![](/uploads/luogu/CF922F/80a786f701ecc7d26672fb3b926d9dbbafc0495c_7e6268066fad.png) Let's define ![](/uploads/luogu/CF922F/473e0c7367d2c6c65b609424fc67aa6d9df96dba_842cf13db1bb.png) for some set of integers ![](/uploads/acgo/image/224accedecb81153_9a47ad34d716.jpeg) as the number of pairs $a$ , $b$ in ![](/uploads/acgo/image/224accedecb81153_9a47ad34d716.jpeg), such that:- $a$ is strictly less than $b$ ;
- $a$ divides $b$ without a remainder.

You are to find such a set ![](/uploads/acgo/image/224accedecb81153_9a47ad34d716.jpeg), which is a subset of ${1,2,...,n}$ (the set that contains all positive integers not greater than $n$ ), that ![](/uploads/acgo/image/00d50b219c300f2b_e779a6f12240.jpeg).

输入格式

The only line contains two integers $n$ and $k$ ![](/uploads/acgo/image/b6b931843aa47f31_f35eacf4c815.jpeg).

输出格式

If there is no answer, print "No".

Otherwise, in the first line print "Yes", in the second — an integer $m$ that denotes the size of the set ![](/uploads/acgo/image/b7653fd19bb2edfe_7a127af6caee.jpeg) you have found, in the second line print $m$ integers — the elements of the set ![](/uploads/acgo/image/b7653fd19bb2edfe_7a127af6caee.jpeg), in any order.

If there are multiple answers, print any of them.

输入输出样例

输入 #1
3 3
输出 #1
No
输入 #2
6 6
输出 #2
Yes
5
1 2 4 5 6 
输入 #3
8 3
输出 #3
Yes
4
2 4 5 8
C++ 编辑器
输入
输出