結果
| 問題 | No.3614 Breaking door keys(LITTLE BREAK ver.) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-06 14:29:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 942 bytes |
| 記録 | |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 95,600 KB |
| 実行使用メモリ | 91,008 KB |
| 最終ジャッジ日時 | 2026-08-06 14:29:53 |
| 合計ジャッジ時間 | 8,181 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | RE * 3 |
| 小課題1 | 10 % | RE * 7 |
| 小課題2 | 20 % | RE * 7 |
| 小課題3 | 30 % | RE * 7 |
| 小課題4 | 30 % | RE * 14 |
| 小課題5 | 10 % | RE * 38 |
| 合計 | 2.5 * 0% = 0 点 |
ソースコード
from atcoder import segtree
from itertools import permutations
from bisect import bisect_left, bisect_right
import random
import math
from collections import deque
from collections import Counter
from collections import defaultdict
inf = 1 << 60
def sgn(x):
if x > 0:
return 1
elif x == 0:
return 0
else:
return -1
def popC(x):
ans = 0
while x != 0:
ans += x % 2
x //= 2
return ans
def LI():
return list(map(int, input().split()))
def II():
return int(input())
def SI():
return input()
def op(a, b):
r = []
for x in a:
r.append(x)
for x in b:
r.append(x)
r.sort()
return r[0:10]
def e():
return [float("inf")]*10
n, q = LI()
s = LI()
vec = []
for x in s:
y = e()
y[0] = x
vec.append(y)
seg = segtree.SegTree(op, e(), vec)
for _ in range(q):
l, r, k = LI()
print(sum(seg.prod(l-1, r)[0:k]))