-->
当前位置:首页 > 题库

PROGRAMMING:It's all black

Luz5年前 (2021-05-10)题库425
\*There are a total of $$n $$contestants (numbered from 1 to $$n $) and $$M $$judges in the national beauty contest. Each judge can only get one vote, and each vote can add one point to the contestants numbered from $$l $$to $$R $. The player with the highest score can go to the top of his life. Now let's find the player with the highest score.
###Input format:
First line two integers $$n, M $$(1 < = n, m < = 100000)
Next, enter two integers $$l $$and $$R $$($$1 < = l < = R < = n $$) for each m line
###Output format:
Output the number of each player in ascending order (note that there is no space at the end of the line)
###Input example:
Here is a set of inputs. For example:
```in
5 8
2 3
2 4
3 5
4 4
2 4
3 3
4 5
2 3
```
###Output example:
The corresponding output is given here. For example:
```out
three
```







answer:If there is no answer, please comment