No.8083 Twelve Years Old
問題文最終更新日: 2021-04-01 20:18:41
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder April Fool Contest 2021
(順位表)
の他の問題:
Problem Statement
The $N$ students who entered Yukikoji Junior High School in the year $Y$ of the Common Era (Gregorian calendar) all have different dates of birth.
At 8:00 p.m. on April 1 of the year $Y$, all of these $N$ students had an age of 12 years.
Among these $N$ students, find the minimum and maximum possible values of the number of students whose age is still 12 years at the point $24D$ hours after 8:00 p.m. on April 1 of the year $Y$.
Input
$Y$ $N$ $D$
All input values are integers and satisfy all of the following conditions.
- $2000 \leq Y < 3000$
- $1 \leq N \leq 365$
- $1 \leq D \leq 365$
Output
Output the minimum value, a space, the maximum value, and a newline, in this order.
Sample
Sample 1
Input
2021 4 1
Output
3 4
Sample 2
Input
2021 100 300
Output
0 65
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
FF256grhy