No.188 HAPPY DAY
Problem Statement
Today is month $4$, day $22$, and it is Kamipeipaa's birthday. Kamipeipaa noticed that this date can be expressed as $4 = 2+2$.
Kamipeipaa decided to call a date of month $X$, day $Y$ a "HAPPY DAY" if the digit sum of $Y$ is equal to $X$. Here, the digit sum is the sum of the numbers represented by the digits of a given integer.
For example, month $4$, day $4$ and month $10$, day $19$ are HAPPY DAYs because $4=0+4$ and $10 = 1 + 9$, while month $12$, day $3$ and month $11$, day $28$ are not HAPPY DAYs because $12 \neq 0 + 3$ and $11 \neq 2 + 8$.
Please tell Kamipeipaa how many HAPPY DAYs there are in the year 2015 of the Gregorian calendar.
Hint: The Gregorian calendar is the ordinary calendar. You may refer to the calendar of 2015.
Checking whether the condition holds for each of the 365 days and counting them is fast enough.
Input
There is no input for this problem.
Output
Output the number of HAPPY DAYs in the year 2015 of the Gregorian calendar on one line. Do not forget the newline.
Sample
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
紙ぺーぱー