UVa 11044 - Searching for Nessy
求n*m的网格中有多少九宫格,公式:(n/3)*(m/3)。
代码:
1 #include<iostream> 2 3 using namespace std; 4 5 int main() 6 { 7 int n, m; 8 int t; 9 cin >> t; 10 while(t--) 11 { 12 cin >> n >> m; 13 cout << (n/3)*(m/3) << endl; 14 } 15 return 0; 16 }
转载于:https://www.cnblogs.com/zrq495/archive/2012/07/27/2611908.html
UVa 11044 - Searching for Nessy相关推荐
- STL --- UVA 123 Searching Quickly
UVA - 123 Searching Quickly Problem's Link: http://acm.hust.edu.cn/vjudge/problem/viewProblem.acti ...
- 湖南省第八届大学生程序设计大赛原题 D - 平方根大搜索 UVA 12505 - Searching in sqrt(n)...
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=30746#problem/D D - 平方根大搜索 UVA12505 - Searchin ...
- uva - 123 - Searching Quickly
题目大意: 输入一系列要被忽视的单词和题目,题目中除了要被忽视的单词外其他的都是关键字.把关键字忽略大小写按字典序排序.再把题目按照关键字的字典序输出.有几个关键字输出几次(看题目中样例).输出的时候 ...
- π-Algorithmist分类题目(3)
原题网站:Algorithmist,http://www.algorithmist.com/index.php/Main_Page π-Algorithmist分类题目(3) Probability ...
- 提取了下刘汝佳推荐的题号...
今天闲来没事上uva oj提取了下刘汝佳推荐的acm题号,原始数据如下: Volume 0. Getting Started 10055 - Hashmat the Brave Warrior ...
- 初学者acm的练习题指南
上机练习题参考题 忘了在哪找的啦~~希望对大家有帮助呦 <!--[if !supportLists]-->1. <!--[endif]-->Programming Bas ...
- Competitive Programming 3题解
题目一览: Competitive Programming 3: The New Lower Bound of Programming Contests(1) Competitive Programm ...
- Competitive Programming专题题解(1)
Competitive Programming题解 AOAPC I: Beginning Algorithm Contests 题解 CP2-1.1.1 Easy(Ad Hoc Problems) P ...
- AOAPC I: Beginning Algorithm Contests 题解
AOAPC I: Beginning Algorithm Contests 题解 AOAPC I: Beginning Algorithm Contests (Rujia Liu) - Virtual ...
最新文章
- 从FTP上下载文件到本地
- iftop 查看你的网卡流量
- VTK:PolyData之CellLocator
- Apache AB 压力测试
- websocket实现多屏互动_纸笔互动课堂应用场景到底有些什么呢?
- 假如王撕葱是程序员。。。
- JavaScript写一个能遍历对象和数组的通用forEach函数
- 使用god来自动启动崩溃的进程
- 解决 sublime text3 运行python文件无法input的问题
- NodeJS开源项目
- eclipse 设置默认编码为Utf-8
- 初识数据库——Mysql入门
- ZD_source code for problem 2971
- 进程,线程,协程的区别与联系
- js 正则清除html格式
- 坯子库怎么导入插件_【亲测能用】草图大师Sketchup坯子库插件管理器SU2014-2019插件64位下载-羽兔网...
- Linux一键安装部署环境
- vue3使用keep-alive页面切换时报错:TypeError: parentComponent.ctx.deactivate is not a function
- 【电子学会】2022年09月图形化一级 -- 猫捉老鼠
- 华为路由器配置DHCP服务及给指定PC分配固定IP地址
热门文章
- 前窗玻璃膜贴了一周还有气泡_汽车玻璃膜贴全部好还是贴局部好?
- linux脚本怎么获取参数,在Bash shell脚本编程中,如何正确无误获取到“脚本选项参数”和“脚本参数”呢?...
- mysql 双向热备份_MySQL双机热备份
- python postmessage 鼠标_SilkTest高级进阶系列7-用PostMessage模拟鼠标
- mysql like html_mysql - MySQL RLIKE查找,然后替换打开和关闭HTML标记之间的所有字符 - 堆栈内存溢出...
- Oracle完全手册,Oracle_11g+Oracle Sqldeveloper 安装完全手册(for win 7 64x)
- Linux学习笔记---更新软件源
- HDU-2203-亲和串(kmp)
- linux内存管理(六)-伙伴分配器
- Redis慢日志问题解决