#P4744. Tavas and Pashmaks
Tavas and Pashmaks
Tavas and Pashmaks
题面翻译
题目描述
现在有两个比赛项目:跑步和游泳.每一个人在这两个项目都有一个正整数的值,第i个人分别为,表示他在这个项目上的速度. 我们假定游泳的距离为,跑步的距离为(都是正实数),知道每一个人的值,如果对于第i个人,存在这样子的和使得,那么就称这个人可以夺冠. 求出有多少个人可以夺冠.
输入输出格式
输入格式:
第行一个正整数,表示有个人. 第~,每行有个正整数分别表示每一个人在跑步和游泳上的速度.
输出格式:
一行,输出所有可以夺冠的人.
题目描述
Tavas is a cheerleader in the new sports competition named "Pashmaks".
This competition consists of two part: swimming and then running. People will immediately start running meters after they finished swimming exactly meters. A winner is a such person that nobody else finishes running before him/her (there may be more than one winner).
Before the match starts, Tavas knows that there are competitors registered for the match. Also, he knows that -th person's swimming speed is meters per second and his/her running speed is meters per second. Unfortunately, he doesn't know the values of and , but he knows that they are real numbers greater than .
As a cheerleader, Tavas wants to know who to cheer up. So, he wants to know all people that might win. We consider a competitor might win if and only if there are some values of and such that with these values, (s)he will be a winner.
Tavas isn't really familiar with programming, so he asked you to help him.
输入格式
The first line of input contains a single integer ( ).
The next lines contain the details of competitors. -th line contains two integers and ( ).
输出格式
In the first and the only line of output, print a sequence of numbers of possible winners in increasing order.
样例 #1
样例输入 #1
3
1 3
2 2
3 1
样例输出 #1
1 2 3
样例 #2
样例输入 #2
3
1 2
1 1
2 1
样例输出 #2
1 3