-
1-4
Duck公司在仓库安装了红外报警装置,如图所示,所有红外线互不相交。n个发射器和n个接收器将平面分成n+1个区域,从左到右分别记作0、1、…、n。现在技术人员正在进行调试,对于每个点,需要快速知道它处于哪个区域。若正好处于红外线上,则视为处于右边的区域。
输入
第一行两个整数n、m,表示有n条直线、m个点
接下来n行,每行两个整数a、b,表示一组报警装置的发射器安装在(a, 0),接收器安装在(0, b)。每行a、b都比前一行的大
接下来m行,每行两个整数x、y,表示求点(x, y)所在的区域
输出
输出m行,每行一个数,对应每个点所在区域的编号(Duck installed infrared alarm in the warehouse, as shown in the figure, all infrared rays do not intersect. The n transmitters and n receivers divide the plane into n + 1 regions, denoted 0, 1, ..., n from left to right, respectively. Now technicians are debugging, for each point, you need to quickly know where it is located. If it is on the infrared, it is considered as the area to the right.)
- 2020-10-15 15:57:29下载
- 积分:1
-
GM_demo
说明: 灰度预测模型,用于做评价,可更改。使用MATLAB实现。(Gray prediction model)
- 2021-01-07 22:18:51下载
- 积分:1
-
自己写的一个多线程聊天程序的服务器端 已经用面向对象的方法封装了。 希望对别人有帮助...
自己写的一个多线程聊天程序的服务器端 已经用面向对象的方法封装了。 希望对别人有帮助-yourself writing a multithreaded process chat server has been used object-oriented methods of packaging. Want to help others
- 2022-06-21 17:57:16下载
- 积分:1
-
Windows software Webcast
WINDOWS网络播放软件-Windows software Webcast
- 2022-07-15 12:51:21下载
- 积分:1
-
IntentFilter_MalformedMimeTypeExceptionTest
Intent Filter Malformed Mime Type Exception Test.
- 2013-11-12 11:58:14下载
- 积分:1
-
lexical-011
The following words are used as keywords in proposed extensions and are therefore reserved to allow for the possibility of future adoption of those extensions.
- 2013-12-25 10:49:21下载
- 积分:1
-
通讯程序的server端,可以管理很多消息。对初学边写服务器的人有帮助。推荐大家下载。...
通讯程序的server端,可以管理很多消息。对初学边写服务器的人有帮助。推荐大家下载。-Client server communication process, you can manage a lot of news. Learning to write the server side of those who have helped. Recommend everyone to download.
- 2022-02-24 12:03:01下载
- 积分:1
-
USBbox
USB设备芯片型号检测删除工具有杀伤力chipgenius
- 2010-02-24 22:44:39下载
- 积分:1
-
shengji
升级组件源代码,需要的朋友可以参考一下。包含客户端和服务端。(Upgrade components of the source code, need a friend for reference. Contains client and server.)
- 2008-08-19 16:29:29下载
- 积分:1
-
模拟平程序,实现
模拟ping程序,实现-L,-N,-W,-T等参数,在Windows Visual C++下调试通过。
- 2022-09-06 19:30:03下载
- 积分:1