結果

問題 No.2109 Special Week
ユーザー shotoyooshotoyoo
提出日時 2022-10-28 21:24:25
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 897 bytes
コンパイル時間 1,065 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 75,044 KB
最終ジャッジ日時 2023-09-20 04:03:53
合計ジャッジ時間 7,546 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
75,000 KB
testcase_01 AC 121 ms
74,664 KB
testcase_02 AC 120 ms
74,752 KB
testcase_03 AC 121 ms
74,972 KB
testcase_04 AC 120 ms
74,804 KB
testcase_05 AC 120 ms
74,996 KB
testcase_06 AC 120 ms
74,748 KB
testcase_07 AC 119 ms
74,900 KB
testcase_08 AC 118 ms
74,672 KB
testcase_09 AC 119 ms
74,920 KB
testcase_10 AC 120 ms
74,760 KB
testcase_11 AC 117 ms
74,816 KB
testcase_12 AC 115 ms
74,732 KB
testcase_13 AC 119 ms
74,728 KB
testcase_14 AC 119 ms
74,972 KB
testcase_15 AC 119 ms
74,576 KB
testcase_16 AC 117 ms
74,640 KB
testcase_17 AC 117 ms
74,904 KB
testcase_18 AC 118 ms
75,044 KB
testcase_19 AC 120 ms
75,040 KB
testcase_20 AC 119 ms
74,668 KB
testcase_21 AC 119 ms
74,680 KB
testcase_22 AC 119 ms
74,640 KB
testcase_23 AC 117 ms
74,560 KB
testcase_24 AC 119 ms
74,828 KB
testcase_25 AC 118 ms
74,732 KB
testcase_26 AC 116 ms
74,936 KB
testcase_27 AC 118 ms
74,820 KB
testcase_28 AC 118 ms
74,420 KB
testcase_29 AC 119 ms
74,584 KB
testcase_30 AC 117 ms
74,792 KB
testcase_31 AC 119 ms
75,028 KB
testcase_32 AC 118 ms
74,668 KB
testcase_33 AC 118 ms
74,580 KB
testcase_34 AC 118 ms
74,568 KB
testcase_35 AC 123 ms
74,564 KB
testcase_36 AC 119 ms
74,832 KB
testcase_37 AC 116 ms
74,676 KB
testcase_38 AC 119 ms
74,676 KB
testcase_39 AC 118 ms
74,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, random
input = lambda : sys.stdin.readline().rstrip()


write = lambda x: sys.stdout.write(x+"\n"); writef = lambda x: print("{:.12f}".format(x))
debug = lambda x: sys.stderr.write(x+"\n")
YES="Yes"; NO="No"; pans = lambda v: print(YES if v else NO); INF=10**18
LI = lambda : list(map(int, input().split())); II=lambda : int(input()); SI=lambda : [ord(c)-ord("a") for c in input()]
def debug(_l_):
    for s in _l_.split():
        print(f"{s}={eval(s)}", end=" ")
    print()
def dlist(*l, fill=0):
    if len(l)==1:
        return [fill]*l[0]
    ll = l[1:]
    return [dlist(*ll, fill=fill) for _ in range(l[0])]

m,d,k = list(map(int, input().split()))
import datetime
t = datetime.date(year=2022, month=m, day=d)
s = set()
for i in range(7):
    tt = t + datetime.timedelta(days=i)
    for c in (format(tt.day, "02d")) + (format(tt.month, "02d")):
        s.add(c)
pans(len(s)>=k)
0