結果
問題 | No.2109 Special Week |
ユーザー |
![]() |
提出日時 | 2022-11-26 22:57:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 71 ms / 2,000 ms |
コード長 | 365 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 82,356 KB |
実行使用メモリ | 72,324 KB |
最終ジャッジ日時 | 2024-10-03 05:44:43 |
合計ジャッジ時間 | 4,277 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 |
ソースコード
import datetime as dtM,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")