#t539. 奖金
奖金
Employee Bonuses
Special for beginners, ^_^
Problem Description
Because the invincible Fanfan won the 2025 World's Most Handsome and Stylish Man contest, Mr.Z, the general manager of Yali Company, is in a good mood and decides to give every employee a bonus. The company will calculate the bonus amount based on each person's contribution to the company this year.
So Mr.Z orders an -party meeting. Each representative attending the meeting gives their own opinion: "I think employee 's bonus should be higher than employee 's!" Mr.Z wants to find a bonus plan that satisfies all the representatives' opinions while at the same time making the total bonus as small as possible. Each employee's bonus is at least 100 yuan.
Input Format
The first line has two integers : the total number of employees and the number of representatives.
The next lines each contain 2 integers , meaning some representative thinks employee should get a higher bonus than employee .
Output Format
If no reasonable plan can be found, output Poor Xed.
Otherwise output one number: the minimum total bonus.
Sample Input 1
2 1
1 2
Sample Output 1
201
Constraints
1s, 1024KiB for each test case.
of the data satisfies: .
of the data satisfies: .