文章
145
粉丝
217
获赞
21
访问
81.8k
#include <stdio.h>
int main()
{
int a,b,c;
while(scanf("%d %d %d",&a,&b,&c) != EOF)
{
if(a + b == c)
printf("YES\n");
else if(a - b == c || b - a == c)
printf("YES\n");
else if(a != 0 && b != 0 && (a / b == c || b / a == c) && a%b == 0)
printf("YES\n");
else if(a * b == c)
printf("YES\n");
else printf("NO\n");
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发