結果

問題 No.2109 Special Week
ユーザー Carpenters-Cat
提出日時 2022-10-28 21:36:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 378 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-06 00:40:13
合計ジャッジ時間 2,359 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

from datetime import date, timedelta
m, d, k = map(int, input().split())
tdy = date(year=2022, month=m, day=d)
td = timedelta(days=1)
cnt = [0] * 10
for i in range(7) :
    cnt[td.month // 10] += 1
    cnt[td.month % 10] += 1
    cnt[td.day // 10] += 1
    cnt[td.day % 10] += 1
    td += td
sm = 0
for x in cnt :
    if x > 0 :
        sm += 1
print("Yes" if sm >= k else "No")
0