結果
問題 |
No.1093 区間の和 / Sum of Range
|
ユーザー |
![]() |
提出日時 | 2025-07-13 21:52:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 317 ms / 2,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 277 ms |
コンパイル使用メモリ | 82,568 KB |
実行使用メモリ | 96,096 KB |
最終ジャッジ日時 | 2025-07-13 21:52:39 |
合計ジャッジ時間 | 10,354 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 36 |
ソースコード
from bisect import bisect N,K = map(int,input().split()) A = list(map(int,input().split())) now = sum(A[:K]) S = [now] for i in range(0,N-K): now -= A[i] now += A[i + K] S.append(now) S.sort() for _ in range(int(input())): x = int(input()) print(bisect(S,x))