hdu2101 A + B Problem Too
2014-07-28 21:23
148 查看
A + B Problem Too
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11484 Accepted Submission(s): 8576
[align=left]Problem Description[/align]
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.
[align=left]Input[/align]
Each line will contain two integers A and B. Process to end of file.
[align=left]Output[/align]
For each case, if(A+B)%86=0,output yes in one line,else output no in one line.
[align=left]Sample Input[/align]
1 1 8600 8600
[align=left]Sample Output[/align]
no yes[code]#include<stdio.h> int main() { int a,b; while(~scanf("%d%d",&a,&b)&&a+b!=98) { if((a+b)%86==0) printf("yes\n"); else printf("no\n"); } return 0; }
[/code]
相关文章推荐
- HDU2101 A + B Problem Too【水题】
- hdu2101 A + B Problem Too(C语言)
- HDU2101 A + B Problem Too【水题】
- HDU 1086 You can Solve a Geometry Problem too
- HDU1086_You can Solve a Geometry Problem too(几何/叉积判断点线关系)
- hdoj 1086 You can Solve a Geometry Problem too 【计算几何】
- HDU-#1086 You can Solve a Geometry Problem too(线段相交判定)
- hdu 1086 A - You can Solve a Geometry Problem too (线段的规范相交&&非规范相交)
- hdoj 1086 You can Solve a Geometry Problem too (判断线段相交)
- SVN update problem: This client is too old to work with working copy
- HDU 1086 You can Solve a Geometry Problem too
- hdu 1086:You can Solve a Geometry Problem too(计算几何,判断两线段相交,水题)
- HDOJ 1086 You can Solve a Geometry Problem too
- ACM-计算几何之You can Solve a Geometry Problem too——hdu1086
- 杭电OJ——1086 You can Solve a Geometry Problem too
- bzoj 4999: This Problem Is Too Simple! 树链剖分+线段树
- bzoj4999 This Problem Is Too Simple!
- HDOJ&nbsp;&nbsp;2101&nbsp;&nbsp;&nbsp;A&nbsp;+&nbsp;B&nbsp;Problem&nbsp;Too
- You can Solve a Geometry Problem too—hdoj 1086(线段相交)
- HDU-1086 You can Solve a Geometry Problem too 解题报告