結果
問題 | No.2109 Special Week |
ユーザー |
|
提出日時 | 2022-10-28 22:19:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 53,888 KB |
最終ジャッジ日時 | 2024-07-06 01:30:17 |
合計ジャッジ時間 | 3,096 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 |
ソースコード
from datetime import datetime, date, timedeltaM, D, K = map(int, input().split())now = datetime(year=1, month=M, day=D)done = set()for i in range(7):s = str(now.month).zfill(2)done.add(s[0])done.add(s[1])s = str(now.day).zfill(2)done.add(s[0])done.add(s[1])now += timedelta(1)if len(done) >= K:print('Yes')else:print('No')