結果
| 問題 |
No.2155 みちらcolor
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-12-09 21:29:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 2,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 312 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-14 20:20:51 |
| 合計ジャッジ時間 | 4,185 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 64 |
ソースコード
import sys
input = sys.stdin.readline
N,M,L=map(int,input().split())
A=list(map(int,input().split()))
SET={L}
for a in A:
NSET=set()
for s in SET:
NSET.add((s+a)//2)
SET|=NSET
if M in SET:
print("Yes")
else:
print("No")
titia