-
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
-
jisuanji5566
labview计算器功能实现,等同于windows下的计算器功能(LabVIEW calculator function realization, equivalent to the calculator function under Windows)
- 2017-07-06 13:20:17下载
- 积分:1
-
dong ho
说明: alarm o clock desktop
- 2020-06-25 16:00:01下载
- 积分:1
-
bulang
模拟布朗无规则运动的程序,运行平台:windows,编程语言:Visual Basic。(Brown simulated irregular movement procedures, operating platform: windows, programming languages: Visual Basic.)
- 2009-01-11 10:00:08下载
- 积分:1
-
MC-reliability
基于蒙特卡洛的电力系统充裕度计算程序(matlab)(The electric power system based on monte carlo abundant degree calculation program (matlab))
- 2020-11-02 14:09:53下载
- 积分:1
-
vb
说明: 竖曲线vb编写的 简单的程序 可以适合初学者。为以后打好基础,多学多看、(Vertical curve to prepare a simple VB program can be suitable for beginners. Lay a good foundation for the future, to learn more,
)
- 2014-02-28 02:00:34下载
- 积分:1
-
JHGJGHJGFJG
题目:取一个整数a从右端开始的4~7位。
程序分析:可以这样考虑:
(1)先使a右移4位。
(2)设置一个低4位全为1,其余全为0的数。可用~(~0<<4)
(3)将上面二者进行&运算。
2.程序源代码:(Topic: take an integer a from the right end of the four to seven began.
Program analysis: it can be to consider:
(1) to make a move to the right four.
(2) sets a low four total for the 1, all the rest for 0 of the number. Can be used to (~ 0 < < 4)
(3) will above the difference and operations.
2. The source code:)
- 2012-05-26 20:20:03下载
- 积分:1
-
LEO_Channel_MU
这是一份低轨道卫星建模的资料,比较简洁适合学习(This is a low-orbit satellite modelling data, relatively simple and suitable for learning, recommend to see)
- 2021-03-11 14:59:25下载
- 积分:1
-
fdma
说明: 利用mablab编写的m文件,用于频分复用的仿真,非常有用,大家可以下载实验一下(M prepared to use mablab documents, for frequency division multiplexing of the simulation, very useful, everyone can download the experiment about)
- 2008-10-08 16:22:30下载
- 积分:1
-
reciter
一个很不错的语言复读机
听力资料下载网址:
http://www.aie.com.cn/download/english.htm
http://www.impu.edu.cn/amusement/music/english/(a very good language for the hearing repetition Download website : http :// www.aie.com.cn/download/english.htm reception p :// www.impu.edu.cn/amusement/music/englis h /)
- 2006-12-11 19:41:42下载
- 积分:1