結果
| 問題 | No.3067 +10 Seconds Clock |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-22 20:44:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 114 ms / 2,000 ms |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 141,048 KB |
| 最終ジャッジ日時 | 2026-07-07 20:23:37 |
| 合計ジャッジ時間 | 3,910 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
(n,t),ts,(k,),x=[[*map(int,s.split())]for s in open(0)]
x={i-1 for i in x}
sk=ans=0
for i in range(n-1):
t-=ts[i]
if t+sk*10<=0:
exit(print(-1))
while t<=0:
sk-=1
t+=10
ans+=1
# print(i,ts[i],sk,t,ans)
if i+1 in x:
sk+=1
print(ans)