結果

問題 No.875 Range Mindex Query
ユーザー rkato5680
提出日時 2020-08-24 10:27:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 246 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 56,672 KB
最終ジャッジ日時 2024-11-06 08:14:38
合計ジャッジ時間 18,429 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 15 TLE * 1 -- * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

N,Q=map(int,input().split())
A = np.array([0]+list(map(int,input().split())))
    
for i in range(Q):
    n,l,r=map(int,input().split())
    if n == 1:
        A[l],A[r] = A[r],A[l]
    else:
        print(A[l:r+1].argmin()+l)
0