uva 10055 Hashmat the brave warr…
来源:互联网 发布:python输入ctrl c 编辑:程序博客网 时间:2024/06/05 09:41
Hashmat the brave warrior
Input: standardinput
Output: standardoutput
Hashmat is a brave warrior who with his group of young soldiersmoves from one place to another to fight against his opponents.Before fighting he just calculates one thing, the differencebetween his soldier number and the opponent's soldier number. Fromthis difference he decides whether to fight or not. Hashmat'ssoldier number is never greater than hisopponent.
Input
Theinput contains two integer numbers in every line. These two numbersin each line denotes the number of soldiers in Hashmat's army andhis opponent's army or vice versa.The input numbers are not greater than 2^32. Input is terminated byEnd of File.
Output
Sample Input:
10 1210 14
100 200
Sample Output:
2
4
100
1.
2.
3.
代码:
#include<stdio.h>
int main()
}
- uva 10055 Hashmat the brave warr…
- 10055 - Hashmat t…
- HDOJ 1846 Brave Game
-  
- uva UVa 537 Artificial Intellige…
-
- Make sure to have the zlib libs …
- Make sure to have the zlib libs …
- How to got the Mac address from …
- HDOJ 1028 Ignatius and the Pri…
- HDOJ 1709 The Balance
- ACM: uva 10253 - Series-Parallel…
- 集线器 交换机 路由器 网桥 …
- HDOJ 1597 find the nth digit
- The library contains native libr…
- failure of the “Grid Installatio…
- Web applications mean the trende…
- secureCRT The remote system refu…
- MFC中OnDraw与OnPaint的区别
- hdu4606 Occupy Cities简单计算几何+floyd+最小路径覆盖+二分答案
- C语言数字类型长度
- python中的深拷贝和浅拷贝理解
- 怎么在外部类的静态方法中创建成员内部类的对象?
- uva 10055 Hashmat the brave warr…
- 488 - Triangle Wave
- UVa 10300 Ecological Premium
- uva 10010 - Where's Waldorf?
- uva 10361 - Automatic Poetry
- uva 401 - Palindromes
- uva UVa 537 Artificial Intellige…
- 409 Excuses, Excuses!
- 424 - Integer Inquiry