Hashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his opponents. Before fighting he just calculates one thing, the difference between his soldier number and the opponent's soldier number. From this difference he decides whether to fight or not. Hashmat's soldier number is never greater than his opponent.
Input
The input contains two integer numbers in every line. These two numbers in each line denotes the number of soldiers in Hashmat's army and his opponent's army or vice versa. The input numbers are not greater than 2^32. Input is terminated by End of File.
Output
For each line of input, print the difference of number of soldiers between Hashmat's army and his opponent's army. Each output should be in seperate line.
Sample Input:
10 12
10 14
100 200
Sample Output:
2
4
100
//#define RUN #ifdef RUN #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <string> #include <iostream> #include <sstream> #include <map> #include <set> #include <vector> #include <list> #include <cctype> #include <algorithm> #include <utility> #include <math.h> using namespace std; #define MAXN 1000 int main(){ #ifndef ONLINE_JUDGE freopen("10055.in", "r", stdin); freopen("10055.out", "w", stdout); #endif // 必须用long类型来通过 unsigned long int a, b; while (scanf("%lu%lu", &a, &b) == 2) { if(a >= b){ printf("%lu\n", a-b); } else{ printf("%lu\n", b-a); } } } #endif
相关推荐
the brave new world 作者:Marjory S. Blumenthal, Computer Science & Telecommunications Bd David D. Clark, M.I.T. Lab for Computer Science 这是Clark后来反思端到端论点的论文,此前他写过关于端到端论点的...
Clojure for the Brave and True offers a 'dessert-first' approach: you'll start playing with real programs immediately, as you steadily acclimate to the abstract but powerful features of Lisp and ...
播放参数: 1.采样精度:32 bit pcm 2.格式:little endian 3.通道数:1 channel moon 4.采样率:44100
windows下编译brave浏览器,里面都是自己亲身踩过的坑,让你一定能编译成功
brave-5.12.7.jar,brave-context-slf4j-5.12.7.jar,brave-instrumentation-http-5.12.7.jar,brave-instrumentation-httpasyncclient-5.12.7.jar brave-instrumentation-httpclient-5.12.7.jar brave-instrumentation...
Brave主题是一款适合有对象的博主使用,具有计时器?、留言板、恋爱清单、点点滴滴记录等功能
Brave Browser是一款速度非常快的浏览器,它基于Chromium开发。其特性就是保护隐私且快速。官网宣称:“比 Chrome 快 3 倍。能更好地保护您,让您不受 Google 和其他科技巨头的威胁。” 默认情况下,Brave 浏览器会...
brave.zip,勇敢的接口。与Zipkin后端服务兼容的Java分布式跟踪实现。
Brave Core是一组更改、API和脚本,用于定制Chromium以实现Brave。
Typecho 情侣主题 「Brave」v1.2 情侣网站源码
浏览器,高速,无痕,私密,安全,纯净,广告拦截,最新版。自行体会~
Brave浏览器简介 2014年Eich从Mozilla离职,并于2015年和合作伙伴共同创立了Brave公司。2016年,具有反追踪功能的第一个版Brave浏览器发布,后来又增加了捐助功能和付费广告功能。Eich希望Brave可以通过改变传统的...
brave-browser,下一代勇敢的MacOS、Windows、Linux浏览器,最终是Android浏览器.zip
Brave Typecho情侣主题Brave
Brave 是的Java客户端实现,它通过Flume将跟踪信息发送到Zipkin收集器。 然后,Zipkin可以通过Web UI显示跟踪信息。 Brave的当前实现仅支持一个级别的嵌套客户端调用,并且仅显示了一个示例,展示了如何将Brave与...
brave浏览器,适用于安卓5+
勇敢:核心图书馆 io.zipkin.brave/brave/5.12.3/brave-5.12.3.jar