杭电ACM2096--小明A+B
来源:互联网 发布:mac无法开机黑屏 编辑:程序博客网 时间:2024/09/21 09:02
http://acm.hdu.edu.cn/showproblem.php?pid=2096
本来就是很简单。但是数据的大小有要求。
(a%100+b%100)%100和(a+b)%100本来没有什么区别,但是int型的数据类型是有范围的,所以必须严格按照要求来写。
#include <stdio.h>int main(){int a,b;int t;scanf("%d",&t);while (t--){scanf("%d%d",&a,&b);printf("%d\n",(a%100+b%100)%100);}return 0;}
0 0
- 杭电ACM2096--小明A+B
- 杭电ACM2096小明A+B----20140801
- 小明A+B_C_杭电ACM2096
- 杭电2096 小明A+B
- 【杭电】[2096]小明A+B
- 杭电2096:小明A+B
- java ---杭电ACM2096 ac
- 杭电 ACM 2096 小明A+B
- 小明A+B(杭电2096)
- 杭电OJ--2096 小明A+B
- 杭电-{A} + {B}
- 杭电A+B
- 杭电 2096 小明a+b 【智障错误:int型用strlen来侧长度。。】
- 杭电2033 A+B
- 杭电1412 {A} + {B}
- [杭电]A + B Again
- A + B(杭电1228)
- 杭电1228 A+B
- 嵌入式Linux学习计划
- 自动识别系统的知识补充
- iframe嵌入的页面引用jQuery1.10.1,IE9打开时提示拒绝访问
- Installation error: INSTALL_FAILED_VERSION_DOWNGRADE
- CubeMap
- 杭电ACM2096--小明A+B
- Ehcache 整合Spring 使用页面、对象缓存
- iOS POST和GET传值
- OC基础——copy语法(深拷贝和浅拷贝)
- AWK基础命令
- mysql命令(数据库备份与恢复)
- arm-linux-gcc 裸机程序开发(一)
- Android 发送全4位的int整型数据到服务器困惑
- 类方法(class method)