#Lutece1646. 穷且益坚, 不坠青云之志。
穷且益坚, 不坠青云之志。
Migrated from Lutece 1646 穷且益坚, 不坠青云之志。
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
求一个有个元素的数列,满足任意连续个数的和不小于,任意连续个数的和不大于。
Input
输入包括五个数$n,p,q,s,t(1\le n,p,q \le 500, 1 \le s,t \le 100000)$
Output
如果不能做到,输出"No"
否则输出"Yes",并在第二行输出一个可行解,包括n个数,保证在范围内有解。
Samples
4 2 2 1 2
Yes
1 0 1 0
Resources
2017 UESTC Training for Graph Theory