HDU 2101 A + B Problem Too(水~)

来源:互联网 发布:nginx tcp 域名重定向 编辑:程序博客网 时间:2024/06/05 07:00

Description
给出两个a和b,如果(a+b)%86=0则输出yes,否则输出no
Input
多组用例,每组用例占一行包括两个整数a和b,以文件尾结束输入
Output
对于每组用例,如果(a+b)%86=0则输出yes,否则输出no
Sample Input
1 1
8600 8600
Sample Output
no
yes
Solution
纯净水~
Code

#include<stdio.h>int main(){    int a,b;    while(~scanf("%d%d",&a,&b))    {        if((a+b)%86)printf("no\n");        else printf("yes\n");    }    return 0;} 
0 0
原创粉丝点击