結果

問題 No.2109 Special Week
ユーザー ikomaikoma
提出日時 2022-10-28 21:31:52
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 1,266 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 71,488 KB
最終ジャッジ日時 2023-09-20 04:18:32
合計ジャッジ時間 5,965 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,408 KB
testcase_01 AC 76 ms
71,488 KB
testcase_02 AC 78 ms
71,128 KB
testcase_03 AC 77 ms
71,156 KB
testcase_04 AC 78 ms
71,336 KB
testcase_05 AC 78 ms
71,276 KB
testcase_06 AC 78 ms
71,428 KB
testcase_07 AC 78 ms
71,428 KB
testcase_08 AC 77 ms
71,148 KB
testcase_09 AC 76 ms
71,112 KB
testcase_10 AC 78 ms
71,384 KB
testcase_11 AC 78 ms
71,432 KB
testcase_12 AC 77 ms
70,992 KB
testcase_13 AC 77 ms
71,292 KB
testcase_14 AC 78 ms
70,984 KB
testcase_15 AC 77 ms
71,060 KB
testcase_16 AC 78 ms
71,132 KB
testcase_17 AC 77 ms
70,984 KB
testcase_18 AC 79 ms
71,264 KB
testcase_19 AC 78 ms
71,460 KB
testcase_20 AC 80 ms
71,408 KB
testcase_21 AC 78 ms
71,408 KB
testcase_22 AC 78 ms
71,132 KB
testcase_23 AC 79 ms
70,988 KB
testcase_24 AC 78 ms
71,424 KB
testcase_25 AC 79 ms
71,432 KB
testcase_26 AC 79 ms
71,168 KB
testcase_27 AC 79 ms
71,128 KB
testcase_28 AC 79 ms
71,432 KB
testcase_29 AC 78 ms
71,176 KB
testcase_30 AC 78 ms
71,460 KB
testcase_31 AC 77 ms
71,120 KB
testcase_32 AC 79 ms
71,484 KB
testcase_33 AC 77 ms
71,432 KB
testcase_34 AC 78 ms
71,268 KB
testcase_35 AC 78 ms
71,108 KB
testcase_36 AC 77 ms
71,388 KB
testcase_37 AC 77 ms
71,180 KB
testcase_38 AC 78 ms
71,300 KB
testcase_39 AC 78 ms
70,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

days=[31,28,31,30,31,30,31,31,30,31,30,31]
s=0
sdays = [0]
for d in days:
    s+=d
    sdays.append(s)

d = sdays[M-1]+D-1

st=set()

def md(d):
    d%=365
    for i in range(13):
        if d<sdays[i]:
            m=i
            d=d-sdays[i-1]+1
            return f"{m:02}{d:02}"


for x in range(7):
    for s in md(d+x):
        st.add(s)
print("Yes" if len(st)>=K else "No")
0