結果

問題 No.188 HAPPY DAY
ユーザー Python00391232Python00391232
提出日時 2016-04-24 04:37:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 738 bytes
コンパイル時間 606 ms
コンパイル使用メモリ 11,020 KB
実行使用メモリ 9,684 KB
最終ジャッジ日時 2023-08-29 05:12:15
合計ジャッジ時間 728 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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 = []
# 2015年の全日程をリストに出力する
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)):
	# 0はスルー
	if i == 0:
		pass
	for j in range(month_end[i]):
		if i < 10 and i == j:
			print(i,"/",j)
			count += 1
		elif j >= 10:
			days = ((j // 10) + (j % 10))
			if i == days:
				print(i,"/",j)
				count += 1

print(count)
0