結果

問題 No.8121 [Deleted]
コンテスト
ユーザー Tamiji153
提出日時 2025-11-05 12:44:14
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 259 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 82,884 KB
実行使用メモリ 67,016 KB
最終ジャッジ日時 2025-11-05 12:44:18
合計ジャッジ時間 3,925 ms
ジャッジサーバーID
(参考情報)
judge1 / judge7
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

from atcoder.segtree import SegTree
n,q=map(int,input().split())
S=SegTree(max,-10**20,list(map(int,input().split())))
for _ in range(q):
    t,l,r=map(int,input().split())
    l-=1
    if t==1:
        S.set(l,S.get(l)+r)
    else:
        print(S.prod(l,r))
0