2022.2.7

题目网址:

http://noi.openjudge.cn/ch0201/1661/

原题:

Bomb Game​​​​​​​

总时间限制:

1000ms

内存限制:

65536kB

描述

Bosko and Susko are playing an interesting game on a board made of rectangular fields arranged in A rows and B columns.
When the game starts, Susko puts its virtual pillbox in one field one the board. Then Bosko selects fields on which he will throw his virtual bombs. After each bomb, Susko will tell Bosko whether his pillbox is in the range of this bomb or not.
The range of a bomb with diameter P (P is always odd), which is thrown in field (R, S), is a square area. The center of the square is in the field (R, S), and the side of the square is parallel to the sides of the board and with length P.
After some bombs have been thrown, Bosko should find out the position of Susko's pillbox. However, the position may be not unique, and your job is to help Bosko to calculate the number of possible positions.

输入

First line of input contains three integers: A, B and K, 1 <= A, B, K <=100. A represents the number of rows, B the number of columns and K the number of thrown bombs.
Each of the next K lines contains integers R, S, P and T, describing a bomb thrown in the field at R-th row and S-th column with diameter P, 1 <= R <= A, 1 <= S <= B, 1 <= P <= 99, P is odd. If the pillbox is in the range of this bomb, T equals to 1; otherwise it is 0.

输出

Output the number of possible fields, which Susko's pillbox may stay in.

翻译:

描述:

Bosko和Susko都在一个由矩形A行B列的地域所组成的甲板上玩一个有趣的游戏。

当游戏开始时,Susko把虚拟碉堡放在甲板上的一个地方。然后Bosko选择了一个地方,他将把他的虚拟碉堡扔到那个地方。在每次轰炸之后,Susko将告诉Bosko是否他的碉堡在这个轰炸范围之内。

一个轰炸的范围是以P为直径的圆(P是偶数),这个炸弹被投到(R,S)的地方,那是一个方形区域。这个方形区域的中心是(R,S),并且这个区域的边界与这个甲板的边界平行,正方形边长为P。

在一些轰炸已经产生之后,Bosko应该发现Susko的碉堡。然而,这个位置可能不是唯一的,你的工作是去帮助Bosko推测出可能位置的数量。

输入:

输入的第一行包含三个整数:A,B和K,1<=A,B,K<=100。A代表行数,B代表列数,K代表轰炸数。

接下来K行每行包含整数R,S,P,T,描述一个轰炸区域,以第R行和第S列为中心,以P为直径的圆,1<=R<=A,1<=S<=B,1<=P<=99,P是偶数。如果这个碉堡在这个轰炸范围之内,那么T等于1;否则T等于0。

输出:

输出Susko的碉堡可能在的区域的数量。

Bomb Game(翻译)相关推荐

  1. 英语题目翻译——OJ_ 1661:Bomb Game

    题目:1661:Bomb Game(OpenJudge - 1661:Bomb Game) 翻译 Bosko和Susko正在一块由排成A行和B列的矩形场组成的木板上玩一个有趣的游戏. 当游戏开始时,S ...

  2. 【渝粤题库】陕西师范大学200471 英汉翻译

    <英汉翻译>作业 I. Please translate the following phrases and the underlined part in each sentence. 1 ...

  3. JAVA中fish什么意思,fish是什么意思_fish的翻译_音标_读音_用法_例句_爱词霸在线词典...

    全部 四级 六级 高考 考研 These traditional dishes include fish and chips, steak and kidney pie and large piece ...

  4. 当翻译变成了文本编辑。。。

    原文:李笑来@学习学习再学习 翻译一本书只需要一天时间! -- 这是我今天做的事情. 月初的时候,摸索了一阵 Google Cloud Translation API,过程中发现了 DeepL,直接就 ...

  5. CSAPP Bomb Lab

    CSAPP Bomb Lab bomb lab给了我们一个bomb的可执行文件,以及一个bomb.c的源文件,不过这个文件只是程序的逻辑逻辑框架,无法编译.进入bomb.c可以看到程序的流程是有6个p ...

  6. Bug heroes虫虫英雄······超详细翻译+基本攻略

    转载自:http://apple.zone.it.sohu.com/forums/thread-4588491-1-1.html 游戏真的很不错!感谢威锋[url=u-htm-action-show- ...

  7. 深入理解计算机系统bomb炸弹实验

    1. You can Russia from land here in Alaska. x /s 0x804a26c 0x804a26c:   "You can Russia from la ...

  8. Paper:《GPT-4 Technical Report》的翻译与解读

    Paper:<GPT-4 Technical Report>的翻译与解读 目录 Paper:<GPT-4 Technical Report>的翻译与解读 Abstract摘要 ...

  9. 英汉翻译词典软件代码

    Private Sub Command1_Click() Dim i, j As String Dim n As Integer i = Text1.Text For n = 1 To 6 Selec ...

  10. 新英汉翻译词典软件vb代码

    Private Sub Command1_Click() Dim i, Z As String Dim n As Integer i = Text1.Text For n = 1 To 960 Sel ...

最新文章

  1. 斯坦佛编程教程-Unix编程工具(二)
  2. 高通QXDM抓modem log
  3. 东北全面放开生育,数据揭秘人口和GDP和房价间联系
  4. POJ 3133 Manhattan Wiring (插头DP)
  5. 10年嵌入式工程师经验之谈:对于研发工作的感悟
  6. Google Analytics 搜索引擎来源
  7. mongo(四)索引
  8. C#EXCEL 操作类--C#DataToExcel帮助类
  9. SCPPO(九):性能优化之停工装置按照开工装置更新价格
  10. 2019-06-13-vim配色步骤
  11. Swift---TextView用法
  12. ffmpeg编码个参数的设置以及作用
  13. Atitit. 数据约束 校验 原理理论与 架构设计 理念模式java php c#.net js javascript mysql oracle
  14. 通过ODBC接口访问人大金仓数据库
  15. 夯实Java基础系列16:一文读懂Java IO流和常见面试题
  16. 【3dmax千千问】初学3dmax插件神器第21课:3dmax渲染教程|疯狂模渲大师怎么深度讲解VRAY渲染器的用法呢?室内设计师怎么用VRAY渲染3dmax效果图的模型?
  17. 8086cpu物理寻址
  18. zkeposx消费管理系统mysql_中控Epos消费管理系统
  19. JavaScript与C#互通的DES加解密算法
  20. 【路径规划】基于粒子群算法实现机器人栅格地图路径规划matlab源码

热门文章

  1. 区块链研究实验室-首次提出如何确保区块链分片技术的数据完整性
  2. 下午茶,几个笑话提提神
  3. Frogs' Neighborhood POJ - 1659
  4. TLF80511TC 是一款线性低压差稳压器—科时进商城
  5. onethink搭建
  6. 用双重for循环打印正三角形和倒三角形的思路
  7. 西瓜书-机器学习复习<HENU>
  8. mysql查询多选项商品查询_MYSQL中的多类型查询及高级查询操作
  9. python编程期末试题_大学moocPython编程基础期末考试答案
  10. SaaS模式和传统软件模式有什么区别?