結果
| 問題 |
No.188 HAPPY DAY
|
| コンテスト | |
| ユーザー |
Python00391232
|
| 提出日時 | 2016-04-24 04:37:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 738 bytes |
| コンパイル時間 | 430 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-12-30 21:23:51 |
| 合計ジャッジ時間 | 995 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 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 = []
# 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)
Python00391232