Problem J
Don't Be Fake
DontBeFake is an app where people get a notification at a random point in time, and they have to take a picture of what they are doing right now.
You have
You want to know what is the maximum number of pictures you can view in the day, over all possible seconds that the notification can arrive. In addition, you also want to know how many different seconds the notification could arrive for the maximum number of pictures to be taken.
Input
Input begins with a line containing the integer
Output
Output on the first line the maximum number of pictures you can view in the day. On the second line, output the total number of seconds the notification could arrive for the maximum number of pictures to be taken.
Sample Input 1 | Sample Output 1 |
---|---|
3 1 0 20000 2 10000 20000 40000 60000 1 15000 80000 |
3 5001 |
Sample Input 2 | Sample Output 2 |
---|---|
3 1 0 10000 2 10000 20000 30000 40000 2 20000 30000 50000 80000 |
2 3 |