結果

問題 No.2109 Special Week
ユーザー 👑 KazunKazun
提出日時 2022-10-28 21:26:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 395 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 71,688 KB
最終ジャッジ日時 2023-09-20 04:07:35
合計ジャッジ時間 5,051 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,336 KB
testcase_01 AC 76 ms
71,352 KB
testcase_02 AC 76 ms
71,340 KB
testcase_03 AC 77 ms
71,472 KB
testcase_04 AC 76 ms
71,276 KB
testcase_05 AC 77 ms
71,508 KB
testcase_06 AC 75 ms
71,320 KB
testcase_07 AC 75 ms
71,276 KB
testcase_08 AC 76 ms
71,300 KB
testcase_09 AC 77 ms
71,380 KB
testcase_10 AC 77 ms
71,388 KB
testcase_11 AC 77 ms
71,452 KB
testcase_12 AC 77 ms
71,324 KB
testcase_13 AC 76 ms
71,384 KB
testcase_14 AC 77 ms
71,304 KB
testcase_15 AC 77 ms
71,548 KB
testcase_16 AC 75 ms
71,576 KB
testcase_17 AC 75 ms
71,688 KB
testcase_18 AC 76 ms
71,324 KB
testcase_19 AC 76 ms
71,192 KB
testcase_20 AC 76 ms
71,460 KB
testcase_21 AC 77 ms
71,508 KB
testcase_22 AC 75 ms
71,300 KB
testcase_23 AC 76 ms
71,452 KB
testcase_24 AC 77 ms
71,548 KB
testcase_25 AC 75 ms
71,572 KB
testcase_26 AC 77 ms
71,304 KB
testcase_27 AC 76 ms
71,272 KB
testcase_28 AC 77 ms
71,328 KB
testcase_29 AC 75 ms
71,432 KB
testcase_30 AC 77 ms
71,188 KB
testcase_31 AC 76 ms
71,440 KB
testcase_32 AC 75 ms
71,536 KB
testcase_33 AC 77 ms
71,384 KB
testcase_34 AC 76 ms
71,292 KB
testcase_35 AC 77 ms
71,296 KB
testcase_36 AC 77 ms
71,324 KB
testcase_37 AC 78 ms
71,592 KB
testcase_38 AC 78 ms
71,436 KB
testcase_39 AC 77 ms
71,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    M,D,K=map(int,input().split())

    X=[0,31,28,31,30,31,30,31,31,30,31,30,31]
    S=set()
    for _ in range(7):
        S|=set(str(M).zfill(2))
        S|=set(str(D).zfill(2))

        if X[M]==D:
            D=1
            M=(M+1)%12+1
        else:
            D+=1
    return len(S)>=K

#==================================================
print("Yes" if solve() else "No")
0