結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-17 22:32:44 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 1,000 ms |
| + 874µs | |
| コード長 | 396 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 9,352 KB |
| 実行使用メモリ | 7,168 KB |
| 最終ジャッジ日時 | 2026-07-18 09:50:45 |
| 合計ジャッジ時間 | 1,256 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
import calendar
dateList = []
for i in range(1, 13):
first, date = calendar.monthrange(2015, i)
dateList.append(date)
month = 0
happyDays = 0
for days in dateList:
month += 1
for date in range(1, days):
if date < 10:
if month == date:
happyDays += 1
else:
if month == sum(map(int, str(date))):
happyDays += 1
print happyDays