我是靠谱客的博主 踏实柜子,这篇文章主要介绍UVa-Hashmat the brave warrior,现在分享给大家,希望可以做个参考。

题目地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=996

C++代码:

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
	long long a,b,c;
	while(cin>>a>>b)
	{
		c=a>b?a-b:b-a;
		cout<<c<<endl;
	}
	return 0;
}


最后

以上就是踏实柜子最近收集整理的关于UVa-Hashmat the brave warrior的全部内容,更多相关UVa-Hashmat内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(63)

评论列表共有 0 条评论

立即
投稿
返回
顶部