結果

問題 No.188 HAPPY DAY
コンテスト
ユーザー tso_moriri
提出日時 2018-11-30 19:19:23
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 97 ms / 1,000 ms
コード長 378 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 475 ms
コンパイル使用メモリ 20,704 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2026-03-13 22:41:50
合計ジャッジ時間 1,097 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def happydaychecker(x,y)->bool:
    return x-(y//10+y%10) == 0
dayss = []
for i in range(1,13):
    for j in range(1,32):
        dayss.append((i,j))
NSDD = [(2,29),(2,30),(2,31),(4,31),(6,31),(9,31),(11,31)]
days = list(filter(lambda x: x not in NSDD,dayss))
counter = 0
for n in range(365):
        if happydaychecker(*days[n]) == True:
            counter +=1
print(counter)
0