結果
| 問題 | No.2155 みちらcolor |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-12-09 21:57:11 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 462 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2026-09-17 08:13:17 |
| 合計ジャッジ時間 | 5,382 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 64 |
ソースコード
n,m,l=map(int,input().split())
a=list(map(int,input().split()))
memo=[None]*102
for i in range(102):
row = list()
row.append(-1)
memo[i] = row*1002
def dp(i,x):
if(memo[i][x]>=0):
return memo[i][x]
if i==n:
if x==m:
memo[i][x]=1
else:
memo[i][x]=0
return memo[i][x]
nx = (x+a[i])//2
ans = dp(i+1,nx) + dp(i+1,x)
memo[i][x]= min(ans,1)
return memo[i][x]
print(dp(0,l))