| NCTU PCCA Winter Contest 2021 |
|---|
| Finished |
Emily the shark loves fish. In fact, she can't live without fish.
Emily has $$$n$$$ fish tanks. Each fish tank may have some fish in it. For a set of fish tanks, they are "evenly distributed" if they can be partitioned into two groups of fish tanks, such that the total amount of fish in both groups are equal. For example,
Emily has a total of $$$k$$$ fish in her $$$n$$$ fish tanks, and she wants to rearrange all fish such that:
Please help Emily find such an arrangement, or determine if it's impossible.
The input consists of two integers $$$k$$$ and $$$n$$$.
Technical specification:
If the fish cannot be arranged according to Emily's rules, print the string No.
Otherwise, print the string Yes on the first line. Then on the second line, print a list of $$$n$$$ space-separated integers, denoting the amount of fish in each tank. If there are multiple answers, print any one of them.
9 3
Yes 2 3 4
6 3
No
| Name |
|---|


