結果
| 問題 | No.2155 みちらcolor |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-02 19:53:00 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 31 ms / 2,000 ms |
| + 746µs | |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 82,188 KB |
| 実行使用メモリ | 73,652 KB |
| 最終ジャッジ日時 | 2026-09-30 14:24:10 |
| 合計ジャッジ時間 | 5,076 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")