結果

問題 No.8121 [Deleted]
ユーザー あじゃじゃ
提出日時 2025-04-01 21:58:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 101,748 KB
最終ジャッジ日時 2025-04-01 21:58:12
合計ジャッジ時間 6,864 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
a=list(map(int,input().split()))
for _ in range(m):
    q,b,c=map(int,input().split())
    if q==1:
        a[b-1]+=c
    else:
        print(a[b-1])
        #a[b-1]=c
0