UVA 11044 寻找尼斯湖水怪
来源:互联网 发布:蒙特雷国际研究院 知乎 编辑:程序博客网 时间:2024/04/28 05:22
求需要放置的最少声纳探测器
#include <iostream>#include <sstream>#include <cstdio>#include <cstring>#include <cmath>#include <string>#include <vector>#include <set>#include <cctype>#include <algorithm>#include <cmath>#include <deque>#include <map>using namespace std;///#define INF 0xffffff7#define MAXN 200 ///int n, m;int main(){///int testCases;int nums;cin >> testCases;while(testCases--){nums = 0;cin >> n >> m;int startrow, startcol;startrow = startcol = 3;int initRow(startrow), initCol(startcol);while (1){nums++;while (1){if (startcol + 3 < m){startcol += 3;nums++;}else if (startcol + 3 == m){startcol += 2;nums++;}else{startcol = initCol;break;}}if (startrow + 3 < n){startrow += 3;}else if (startrow + 3 == n){startrow += 2;}elsebreak;}cout << nums << endl;} /// return 0;}
- UVA 11044 寻找尼斯湖水怪
- UVa 11044 寻找Nessy
- 一面湖水
- [Thought]湖水效应
- 3DMAX湖水参数
- unity 仿ue4湖水效果
- 数论寻找等差素数UVA 10650
- UVA 644 Immediate Decodability (寻找前缀)
- uva 11731 相似三角形的寻找
- DFS示例—计算湖水个数
- "尼斯湖怪"是大象?英学者称揭开谜团
- "尼斯湖怪"是大象?英学者称揭开谜团
- 阿伦尼斯(Arrhenius)模型
- 哥尼斯堡七桥问题
- 哥尼斯堡七桥问题
- 格尼斯堡七桥问题
- 哥尼斯堡七桥问题
- UVa Problem 10010 Where’s Waldorf?(寻找单词)
- SSH笔试面试题收集
- VC++延时函数
- Spring中ClassPathXmlApplicationContext类的简单使用
- OGRE 3D程序设计(5)
- strcpy函数与memcpy函数
- UVA 11044 寻找尼斯湖水怪
- Spring AOP中pointcut expression表达式解析
- Codeforces---Ice Skating
- html5学习笔记一
- JQuery when
- 百度、谷歌搜索引擎原理
- SQLSERVER 2005分页脚本性能实测
- ice 异常收集
- html5学习笔记二