結果
| 問題 |
No.1093 区間の和 / Sum of Range
|
| ユーザー |
kbys
|
| 提出日時 | 2020-07-01 06:19:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 51,372 KB |
| 最終ジャッジ日時 | 2024-09-13 20:47:35 |
| 合計ジャッジ時間 | 38,580 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 WA * 29 |
ソースコード
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]
#print(wide)
for i in range(Q):
x = int(input())
print(bisect.bisect_right(wide, x))
kbys