結果

問題 No.2109 Special Week
ユーザー miya145592
提出日時 2023-05-04 07:04:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 54,016 KB
最終ジャッジ日時 2024-11-22 02:32:17
合計ジャッジ時間 3,405 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

import datetime
M, D, K = map(int, input().split())
S = set()
now = datetime.datetime(2023, M, D)
for i in range(7):
    s = now.strftime("%m%d")
    for ss in s:
        S.add(ss)
    now = now + datetime.timedelta(days=1)
if len(S)>=K:
    print("Yes")
else:
    print("No")
0