問題一覧 > 通常問題

No.188 HAPPY DAY

レベル : / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 70 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 1379
作問者 : 紙ぺーぱー
お気に入りにしたユーザー ProblemId : 492 / 自分の提出
問題文最終更新日: 2026-06-25 02:13:07
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 contest 99 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。