[2101]:A + B Problem Too
2015-11-24 18:50
441 查看
A + B Problem Too
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 14190 Accepted Submission(s): 10554
Problem Description
This problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For example ,if (A+B)=98,you should output no for result.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, if(A+B)%86=0,output yes in one line,else output no in one line.
Sample Input
1 1
8600 8600
Sample Output
no
yes
这道题也是很简单的一道题,它与A+BI的差别在于:这道题多了对%(取余)的理解
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 14190 Accepted Submission(s): 10554
Problem Description
This problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For example ,if (A+B)=98,you should output no for result.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, if(A+B)%86=0,output yes in one line,else output no in one line.
Sample Input
1 1
8600 8600
Sample Output
no
yes
这道题也是很简单的一道题,它与A+BI的差别在于:这道题多了对%(取余)的理解
#include <stdio.h> int main() { int a, b; while(scanf("%d%d", &a, &b)!=EOF){ if((a+b)%86){ printf("no\n"); } else{ printf("yes\n"); } } return 0; }
相关文章推荐
- 安利一款软件-FolderSize
- 实现UITableView上View的上拉隐藏下拉出现效果(1)(category)
- 1080. Graduate Admission (30)
- centos下怎样安装pip
- Linux学习笔记2-----Linux OS的文件目录
- 对带头结点的单链表的简单操作
- 7种文件类型的创建与删除(系统调用)
- Oracle11g非图形化界面linux系统下静默安装
- 破解完VisualAssist后VisualStudio打不开了的解决办法
- iOS 关于枚举的使用
- NXP+FSL=400亿市值,真的现实么?
- JavaScript学习之路10_箭头函数
- ZOJ3319 DP 通过入度出度判非法情况
- [leetcode] 224. Basic Calculator
- Android中如何将Bitmap byte裸数据转换成Bitmap图片int数据
- 下拉刷新--第三方开源--PullToRefresh
- php7 vs HHVM
- OpenCV人形检测Hog
- webapp开发要点记录
- invalid use of incomplete type 'class-Ui-Widge't的解决办法