poj-1663
来源:互联网 发布:sql语句里日期取变量 编辑:程序博客网 时间:2024/06/07 05:43
//380K 47MS G++#include <cstdio>#include <cstring>int x, y;int caseNum;int main() { scanf("%d", &caseNum); for (int i = 0; i < caseNum; i++) { scanf("%d %d", &x, &y); if (x == y) { int d = x/2; if (x%2) { printf("%d\n", 4*d + 1); } else { printf("%d\n", 4*d); } } else if (x - y == 2) { int d = y/2; if (y%2) { printf("%d\n", 2 + 4*d + 1); } else { printf("%d\n", 2 + 4*d); } } else { printf("No Number\n"); } }}
水水更健康
0 0
- poj-1663
- poj 1663 Number Steps
- POJ 1663 Number Steps
- POJ 1663Number Steps
- POJ 1663(水题)
- POJ 1663 Number Steps
- POJ 1663:Number Steps
- POJ 1663 解题报告
- POJ 1663:Number Steps
- poj 1663 放苹果
- POJ
- poj
- POJ
- POJ
- poj
- poj
- POJ
- POJ
- undefined reference to rpl_malloc
- java 自旋锁(可重入且无死锁)
- MemSQL、SQLFire、Oracle XE性能对比测试
- 13暑假-14暑假周年总结
- 如何在ArcMap中创建网络分析图层
- poj-1663
- 使用 Socket 通信实现 FTP 客户端程序
- 使用epoll和多线程实现服务器和客户端的代码
- UVA 1228 Integer Transmission(dp)
- UNIX文件目录结构
- Fragment保持状态替换,以防止重复加载
- c++字符串操作函数
- Linux下查看文件和文件夹大小
- 解决CC2540 XDATA内存不足