UVA 10055 - Hashmat the Brave Warrior
来源:互联网 发布:什么是数据稀疏性 编辑:程序博客网 时间:2024/06/11 05:18
分析:简单题。由于自己的大意,碰了好几次WR。
说明: 关键点在范围,int类型(-2^31~2^31-1)就不能够装下2^32,需要用long long(-2^63~2^63-1) 。
代码:
#include<stdio.h>int main(void){ long long a,b; while(scanf("%lld %lld",&a,&b)!=EOF) { if(a<b) printf("%lld\n",b-a); else if(a>b) printf("%lld\n",a-b); else break; } return 0;}
0 0
- UVa OJ 10055-Hashmat the Brave Warrior
- UVa:10055 - Hashmat the Brave Warrior
- UVa 10055 Hashmat the brave warrior
- uva 10055 Hashmat the Brave Warrior
- UVA 10055 - Hashmat the Brave Warrior
- uva-10055 - Hashmat the Brave Warrior
- uva 10055 Hashmat the Brave Warrior
- UVa OJ 10055 - Hashmat the Brave Warrior
- UVa 10055 - Hashmat the Brave Warrior
- UVA 10055 Hashmat the brave warrior
- uva 10055 Hashmat the brave warrior
- UVa 10055 Hashmat the brave warrior
- UVA 10055 Hashmat the brave warrior
- UVA - 10055 - Hashmat the Brave Warrior
- uva 10055 - Hashmat the Brave Warrior
- UVA OJ: 10055 - Hashmat the Brave Warrior
- UVa 10055 - Hashmat the Brave Warrior
- UVA 10055 Hashmat the Brave Warrior
- 浅出Java Socket 编程
- iOS的影片播放 MediaPlayer 和 AVPlayer
- 解决UITableView中Cell重用机制问题
- 调用.so 文件时报错has text relocations
- 分类协议ARC
- UVA 10055 - Hashmat the Brave Warrior
- 密码学:RSA加密算法详解
- 从4行代码看右值引用
- JAVA数组中的各元素是对象吗?
- 程序员应该掌握的 10 个搜索技巧
- 入门参考两相宜——观《Windows PowerShell实战指南》有感
- 三、Bitcode
- spring 中<context:annotation-config />和<context:component-scan base-package="com.*" >
- 数据结构实验之二叉树三:统计叶子数