注册
登录
帮助
首页
题库
运行状态
比赛
用户
题解系统
QQ群: 181873520
[E] Many Candies
时间限制: 1000 ms 内存限制: 65535 K
问题描述
There are N candies,but Picky tt Only like to eat M,help tt find out whether the N candies
With M。(0 < n,m <=5000)
输入
The input contains several test cases. Each test case starts with a line contains two numbers N and M,The second line contains N integers.
输出
For each case,if you find M Output "yes", otherwise output "no";
样例输入
2 1 1 1 2 2 1 1
样例输出
yes no
提示
无
来源
大胖
操作
题目 Problems
A - Higher
[18 / 92 (19.57%)]
B - Divide bad apples
[3 / 4 (75.00%)]
C - blow or not
[1 / 1 (100.00%)]
D - Single Calculate System
[2 / 8 (25.00%)]
E - Many Candies
[19 / 46 (41.30%)]
F - Take More Sugars
[12 / 48 (25.00%)]
G - Just A Prime Number
[17 / 33 (51.52%)]
H - The sum of square number
[2 / 3 (66.67%)]
I - Together
[2 / 18 (11.11%)]
状态 Status
统计 Statistics
排名 Rank
报名参赛 SIGN UP
显示春菜