結果
問題 | No.2155 みちらcolor |
ユーザー | Tomoyarn |
提出日時 | 2023-01-02 11:56:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 82,592 KB |
実行使用メモリ | 75,264 KB |
最終ジャッジ日時 | 2024-11-27 00:41:44 |
合計ジャッジ時間 | 5,346 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 64 |
ソースコード
N, M, L, *A = map(int, open(0).read().split()) dp = [L] for i in range(N): x = [dp[j] for j in range(len(dp))] for d in dp: x.append((d + A[i]) // 2) dp = [x[j] for j in range(len(x))] dp = list(set(dp)) if M in dp: print("Yes") else: print("No")