测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A11469. Divisibility

编程题 普及/提高-

题目描述

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

说明/提示

In the second sample, the valid pairs in the output set are $(1,2)$ , $(1,4)$ , $(1,5)$ , $(1,6)$ , $(2,4)$ , $(2,6)$ . Thus, ![](/uploads/acgo/image/a6dba630f370dc6b_8009aae4769c.jpeg).

In the third example, the valid pairs in the output set are $(2,4)$ , $(4,8)$ , $(2,8)$ . Thus, ![](/uploads/acgo/image/3168fc419fe3e12b_3003aebd5e9c.jpeg).
上一题 去做题 下一题