結果

問題 No.2109 Special Week
ユーザー syunsukesyunsuke
提出日時 2022-11-26 22:57:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 82,204 KB
実行使用メモリ 72,316 KB
最終ジャッジ日時 2024-04-14 08:38:16
合計ジャッジ時間 4,680 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
72,024 KB
testcase_01 AC 70 ms
70,408 KB
testcase_02 AC 70 ms
70,788 KB
testcase_03 AC 71 ms
71,168 KB
testcase_04 AC 68 ms
71,496 KB
testcase_05 AC 70 ms
71,012 KB
testcase_06 AC 68 ms
71,076 KB
testcase_07 AC 69 ms
72,316 KB
testcase_08 AC 69 ms
71,696 KB
testcase_09 AC 68 ms
70,632 KB
testcase_10 AC 68 ms
70,544 KB
testcase_11 AC 69 ms
70,672 KB
testcase_12 AC 70 ms
70,416 KB
testcase_13 AC 71 ms
70,464 KB
testcase_14 AC 72 ms
71,780 KB
testcase_15 AC 69 ms
71,784 KB
testcase_16 AC 70 ms
71,720 KB
testcase_17 AC 68 ms
70,924 KB
testcase_18 AC 68 ms
70,612 KB
testcase_19 AC 68 ms
70,828 KB
testcase_20 AC 69 ms
71,008 KB
testcase_21 AC 69 ms
70,492 KB
testcase_22 AC 68 ms
71,176 KB
testcase_23 AC 69 ms
70,396 KB
testcase_24 AC 69 ms
72,056 KB
testcase_25 AC 68 ms
71,676 KB
testcase_26 AC 68 ms
70,692 KB
testcase_27 AC 69 ms
70,212 KB
testcase_28 AC 70 ms
70,348 KB
testcase_29 AC 69 ms
71,908 KB
testcase_30 AC 69 ms
70,216 KB
testcase_31 AC 70 ms
71,732 KB
testcase_32 AC 69 ms
71,076 KB
testcase_33 AC 70 ms
70,628 KB
testcase_34 AC 68 ms
70,480 KB
testcase_35 AC 69 ms
71,452 KB
testcase_36 AC 70 ms
70,488 KB
testcase_37 AC 70 ms
70,728 KB
testcase_38 AC 69 ms
70,348 KB
testcase_39 AC 69 ms
70,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import datetime as dt
M,D,K = map(int,input().split())
today = dt.datetime.strptime(str(2022)+str(M)+str(D),"%Y%m%d")

S = set()
for i in range(7):
    A = str(today + dt.timedelta(days=i))
    A = A.split()
    A = A[0]
    A = A.split("-")
    for j in range(2):
        S.add(A[1][j])
        S.add(A[2][j])
if len(S) >= K:
    print("Yes")
else:
    print("No")
0