結果
| 問題 |
No.3068 Speedrun (Hard)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-21 23:22:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 271 bytes |
| コンパイル時間 | 547 ms |
| コンパイル使用メモリ | 82,764 KB |
| 実行使用メモリ | 67,536 KB |
| 最終ジャッジ日時 | 2025-03-21 23:23:09 |
| 合計ジャッジ時間 | 7,414 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 32 |
ソースコード
n,T=map(int,input().split()) L=list(map(int,input().split())) k=int(input()) A=list(map(int,input().split())) S=set(A) cnt=0 ans=0 for i in range(n-1): T-=L[i] while 0<cnt and T<=0: cnt-=1 T+=10 ans+=1 if i+2 in S: cnt+=1 if T<=0: exit(print(-1)) print(ans)