結果
| 問題 | No.2402 Dirty Stairs and Shoes |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-29 12:38:32 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 412 bytes |
| 記録 | |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 21,336 KB |
| 実行使用メモリ | 21,700 KB |
| 最終ジャッジ日時 | 2026-09-04 05:50:03 |
| 合計ジャッジ時間 | 5,431 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | TLE * 1 -- * 31 |
ソースコード
n,k=map(int,input().split()) d=int(input()) d_list=list(map(int,input().split())) c=int(input()) c_list=list(map(int,input().split())) dp=[False]*(n+1) dp[0]=True for i in range(n+1): if i <=k: if i in d_list: dp[i]=False else: dp[i]=True else: if i in d_list: dp[i]=False elif i in c_list: dp[i]=True else: for j in range(1,k+1): if dp[i-k]==True: dp[i]=True print(dp)