結果

問題 No.2109 Special Week
ユーザー dangodango
提出日時 2023-06-25 14:40:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 369 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 71,904 KB
最終ジャッジ日時 2023-09-15 09:12:16
合計ジャッジ時間 6,928 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,420 KB
testcase_01 AC 92 ms
71,468 KB
testcase_02 AC 90 ms
71,868 KB
testcase_03 AC 89 ms
71,748 KB
testcase_04 AC 90 ms
71,464 KB
testcase_05 AC 89 ms
71,780 KB
testcase_06 AC 90 ms
71,588 KB
testcase_07 AC 88 ms
71,448 KB
testcase_08 AC 91 ms
71,416 KB
testcase_09 AC 90 ms
71,560 KB
testcase_10 AC 89 ms
71,756 KB
testcase_11 AC 90 ms
71,680 KB
testcase_12 AC 91 ms
71,416 KB
testcase_13 AC 90 ms
71,608 KB
testcase_14 AC 89 ms
71,780 KB
testcase_15 AC 89 ms
71,448 KB
testcase_16 AC 91 ms
71,520 KB
testcase_17 AC 90 ms
71,684 KB
testcase_18 AC 90 ms
71,468 KB
testcase_19 AC 90 ms
71,624 KB
testcase_20 AC 90 ms
71,324 KB
testcase_21 AC 90 ms
71,752 KB
testcase_22 AC 90 ms
71,296 KB
testcase_23 AC 89 ms
71,600 KB
testcase_24 AC 90 ms
71,452 KB
testcase_25 AC 90 ms
71,804 KB
testcase_26 AC 89 ms
71,904 KB
testcase_27 AC 90 ms
71,468 KB
testcase_28 AC 88 ms
71,460 KB
testcase_29 AC 89 ms
71,748 KB
testcase_30 AC 90 ms
71,792 KB
testcase_31 AC 91 ms
71,452 KB
testcase_32 AC 89 ms
71,320 KB
testcase_33 AC 90 ms
71,536 KB
testcase_34 AC 90 ms
71,780 KB
testcase_35 AC 90 ms
71,784 KB
testcase_36 AC 89 ms
71,404 KB
testcase_37 AC 89 ms
71,828 KB
testcase_38 AC 90 ms
71,324 KB
testcase_39 AC 89 ms
71,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from datetime import date, timedelta
M, D, K = map(int, input().split())
appear = [False] * 10
date = date(2023, M, D)
for i in range(7):
    m = date.month
    d = date.day
    for _ in range(2):
        appear[m % 10] = appear[d % 10] = True
        m //= 10
        d //= 10
    date += timedelta(days=1)
isOK = appear.count(True) >= K
print("Yes" if isOK else "No")
0