結果
| 問題 | No.2155 みちらcolor |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-02 19:53:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 82,340 KB |
| 実行使用メモリ | 70,976 KB |
| 最終ジャッジ日時 | 2024-11-27 01:14:18 |
| 合計ジャッジ時間 | 4,706 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 64 |
ソースコード
N,M,L=map(int,input().split())
Al=list(map(int,input().split()))
dp=set([L])
for i in range(N):
next_dp=set()
for a in dp:
next_dp.add(a)
c=(a+Al[i])//2
next_dp.add(c)
dp=next_dp
print("Yes" if M in dp else "No")