2015 Mock CCC by Alex and Timothy
You are planning to run
Fortunately, you're not alone in your contest-writing endeavours. Your friend is there with you. However, you know deep down that in order to be credited for helping create the contest, you just need to supply a single problem for it. You know that your friend will take care of the rest, even if it means he'll be very angry for having to do all the remaining work.
The contests are numbered from
Since you will focus solely on making problems for the next few days (who needs to eat or sleep?), you are able to make an original problem of any difficulty level if you try hard enough. What is the minimum number of original problems that you'll need to write for the
Input Specification
Line 1 of input will contain a single integer
Line 2 of input will contain
Output Specification
The first and only line of output should consist of a single integer, the minimum number of problems you have to write to be able to supply a problem for all the contests.
Sample Input 1
5
1 2 3 4 6
Sample Output 1
5
Explanation for Sample 1
Unfortunately, you can't slack off — all contests will need their own new problem!
Sample Input 2
6
3 2 2 1 3 3
Sample Output 2
3
Explanation for Sample 2
You only need to make 3 different problems — one with difficulty 1, one with difficulty 2, and one with difficulty 3.
Comments
Just like the question suggest this question is basically just https://dmoj.ca/problem/set