結果
| 問題 | No.1093 区間の和 / Sum of Range |
| ユーザー |
kbys
|
| 提出日時 | 2020-07-01 06:22:36 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
AC
|
| 実行時間 | 1,013 ms / 2,000 ms |
| + 206µs | |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 42,628 KB |
| 最終ジャッジ日時 | 2026-08-26 12:19:00 |
| 合計ジャッジ時間 | 31,899 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 36 |
ソースコード
import numpy as np
import bisect
n, k = map(int,input().split())
A = list(map(int,input().split()))
Q = int(input())
c = np.cumsum([0]+A)
wide = c[k:] - c[:-k]
wide.sort()
for i in range(Q):
x = int(input())
print(bisect.bisect_right(wide, x))
kbys