結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2016-10-17 22:32:44 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 15 ms / 1,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 7,040 KB |
最終ジャッジ日時 | 2024-12-31 01:07:25 |
合計ジャッジ時間 | 629 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
import calendardateList = []for i in range(1, 13):first, date = calendar.monthrange(2015, i)dateList.append(date)month = 0happyDays = 0for days in dateList:month += 1for date in range(1, days):if date < 10:if month == date:happyDays += 1else:if month == sum(map(int, str(date))):happyDays += 1print happyDays