結果
問題 | No.3067 +10 Seconds Clock |
ユーザー |
![]() |
提出日時 | 2025-03-21 21:43:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 167 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 31,556 KB |
最終ジャッジ日時 | 2025-03-21 21:43:15 |
合計ジャッジ時間 | 3,207 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge7 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
def main(): n, t, = map(int, input().split()) T = list(map(int, input().split())) input() X = list(map(int, input().split())) X.append(10**18) X.reverse() cnt = 0 for i, ti in enumerate(T, 2): t -= ti if t <= 0: print(-1) return if i == X[-1]: cnt += 1 t += 10 X.pop() cnt -= min((t-1) // 10, cnt) print(cnt) main()