結果

問題 No.2109 Special Week
ユーザー 👑 rin204rin204
提出日時 2022-10-28 21:22:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 71,664 KB
最終ジャッジ日時 2023-09-20 04:00:35
合計ジャッジ時間 5,139 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,596 KB
testcase_01 AC 80 ms
71,460 KB
testcase_02 AC 80 ms
71,516 KB
testcase_03 AC 78 ms
71,472 KB
testcase_04 AC 78 ms
71,208 KB
testcase_05 AC 78 ms
71,396 KB
testcase_06 AC 79 ms
71,488 KB
testcase_07 AC 79 ms
71,400 KB
testcase_08 AC 76 ms
71,404 KB
testcase_09 AC 76 ms
71,572 KB
testcase_10 AC 77 ms
71,048 KB
testcase_11 AC 76 ms
71,184 KB
testcase_12 AC 77 ms
71,244 KB
testcase_13 AC 78 ms
71,472 KB
testcase_14 AC 75 ms
71,244 KB
testcase_15 AC 74 ms
71,240 KB
testcase_16 AC 74 ms
71,228 KB
testcase_17 AC 75 ms
71,048 KB
testcase_18 AC 75 ms
71,236 KB
testcase_19 AC 75 ms
71,236 KB
testcase_20 AC 74 ms
71,296 KB
testcase_21 AC 73 ms
71,236 KB
testcase_22 AC 74 ms
71,296 KB
testcase_23 AC 75 ms
71,136 KB
testcase_24 AC 76 ms
71,540 KB
testcase_25 AC 77 ms
71,568 KB
testcase_26 AC 76 ms
71,184 KB
testcase_27 AC 75 ms
71,500 KB
testcase_28 AC 74 ms
71,600 KB
testcase_29 AC 74 ms
71,664 KB
testcase_30 AC 73 ms
71,180 KB
testcase_31 AC 73 ms
71,360 KB
testcase_32 AC 74 ms
71,236 KB
testcase_33 AC 75 ms
71,044 KB
testcase_34 AC 74 ms
71,324 KB
testcase_35 AC 74 ms
71,044 KB
testcase_36 AC 75 ms
71,276 KB
testcase_37 AC 75 ms
71,576 KB
testcase_38 AC 74 ms
71,408 KB
testcase_39 AC 73 ms
71,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m, d, k = map(int, input().split())

day = [31] * 13
day[2] = 28
day[4] = 30
day[6] = 30
day[9] = 30
day[11] = 30
def nex(m, d):
    if day[m] == d:
        d = 1
        m += 1
        if m == 13:
            m = 1
        return m, d
    return m, d + 1




se = set()

def add(x):
    se.add(x // 10)
    se.add(x % 10)

for _ in range(7):
    add(m)
    add(d)
    m, d = nex(m, d)

if len(se) >= k:
    print("Yes")
else:
    print("No")
0