#Lutece1387. 简单的双向搜索
简单的双向搜索
Migrated from Lutece 1387 简单的双向搜索
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行,每行三个整数,表示和。
保证。
Output
如果存在符合要求的方案,输出;否则输出。
Samples
Resources
2016 UESTC Training for Search Algorithm & String