結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  Python00391232 | 
| 提出日時 | 2016-04-24 04:38:53 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 39 ms / 1,000 ms | 
| コード長 | 608 bytes | 
| コンパイル時間 | 291 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-12-30 21:24:08 | 
| 合計ジャッジ時間 | 849 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
import calendar
def days_2015(m):
	month = calendar.monthcalendar(2015, m)
	month_set = []
	for i in month:
		month_set.extend(i)
	month_set = list(set(month_set))
	return month_set
full_days_lists = []
for i in range(1, 13):
	full = days_2015(i)
	full_days_lists.append(full)
month_end = []
for i in range(len(full_days_lists)):
        month_end.append(full_days_lists[i][-1])
count = 0
for i in range(len(month_end)):
	if i == 0:
		pass
	for j in range(month_end[i]):
		if i < 10 and i == j:
			count += 1
		elif j >= 10:
			days = ((j // 10) + (j % 10))
			if i == days:
				count += 1
print(count)
            
            
            
        