結果
問題 |
No.2109 Special Week
|
ユーザー |
👑 ![]() |
提出日時 | 2022-10-28 21:24:32 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 377 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 82,468 KB |
実行使用メモリ | 53,692 KB |
最終ジャッジ日時 | 2024-07-06 00:21:14 |
合計ジャッジ時間 | 2,709 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 WA * 4 |
ソースコード
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)) D+=1 if X[M]==D: D=1 M=(M+1)%12+1 return len(S)>=K #================================================== print("Yes" if solve() else "No")