poj1450
来源:互联网 发布:java rawurlencode 编辑:程序博客网 时间:2024/04/30 20:52
本题就是一个找规律的题目。只有当行列都是奇数的时候才会用走中间的交叉路,并且只需要走一次。
#include<stdio.h>
int main()
{
int t,i,m,n,cnt=0;
scanf("%d",&t);
while(t--)
{
cnt++;
scanf("%d%d",&m,&n);
i=m*n;
printf("Scenario #%d:/n",cnt);
if(!(i%2))
printf("%d.00/n",i);
else
printf("%d.41/n",i);
if(t!=0)
printf("/n");
}
return 0;
}
- poj1450
- poj1450
- poj1450
- poj1450
- POJ1450
- poj1450
- poj1450 - Gridland
- POJ1450 Gridland [找规律]
- 北大ACM poj1450
- POJ1450解题报告
- HDU1046 POJ1450 UVALive2334 Gridland
- ZOJ1073 POJ1450 Gridland 投机取巧版。。。
- 基本路径测试方法步骤
- 佛曰经典语录
- C#绘制各种统计图的实现方法
- html table 中,如果没内容不显示内部的线
- making things move as3阅读笔记 ---bitmapdata几个有用的操作函数
- poj1450
- Windows驱动中判断Session是否是远程Session
- Ubuntu下安装OpenGL 环境
- 数据库组件 Hxj.Data (八)(存储过程篇)
- 娱乐之非诚匆扰
- 很牛的vim使用技巧(转载)
- rgb格式的几个关键问题
- 共享Binding共享代码
- intel 程序开发大赛