#Lutece1921. 好吃不过饺子
好吃不过饺子
Migrated from Lutece 1921 好吃不过饺子
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
饺子发现身边危机四伏!有个人站在一维平面上,每个人的坐标为,能量值为。饺子有种方法可以推测出有多少人想吃饺子,请你求出每种方法可以得出的想吃饺子的人数。
Input
第一行两个值
接下来行每行两个值$A_i,B_i(1\le A_i\le 10^9,1\le B_i\le 10^4,A_i\le A_j$
接下来行,每行包含三个数
其中
可能为gt
或者lt
,代表大于或者小于
可能为min
,max
或者avg
,代表最小,最大或者平均
是一个整数
的意思为对于第号人,如果 于范围内的所有人能量值的值,说明该人想吃饺子,特别的如果范围内一个人也没有,则这个人不想吃饺子。
Output
对于每种方法,输出想吃饺子的人数
Samples
10 2
60 30
120 28
180 35
240 34
300 40
360 31
420 28
480 2
540 42
600 30
gt avg 7200
lt min 300
4
2
Resources
2018 UESTC Training for Data Structures