Problem D
Political Development
A certain political party with
In order to figure out which pairs of politicians disagree and which don’t, the party then arranged for every possible pair of politicians to discuss a randomly selected topic. Whenever two politicians couldn’t agree on their assigned topic, this was recorded in the party’s Book of Great Achievements.
Armed with this book, you have now been assigned the task of
finding the largest comittee where everyone disagrees. However,
finding a large comittee can prove challenging; careful
analysis have revealed that for any non-empty group of
party members, there is always at least one member of the group
who disagrees with (strictly) less than
Input
The first line contains two integers,
Output
Output a single integer, the size of the largest possible comittee.
Sample Input 1 | Sample Output 1 |
---|---|
5 3 2 1 2 3 0 2 3 3 0 1 4 2 1 4 2 2 3 |
3 |
Sample Input 2 | Sample Output 2 |
---|---|
5 3 3 1 2 4 1 0 1 0 0 1 0 |
2 |