結果

問題 No.875 Range Mindex Query
ユーザー rkato5680rkato5680
提出日時 2020-08-24 10:27:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 246 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 49,736 KB
最終ジャッジ日時 2024-04-24 01:36:10
合計ジャッジ時間 18,252 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 458 ms
44,468 KB
testcase_01 AC 458 ms
43,828 KB
testcase_02 AC 450 ms
43,988 KB
testcase_03 AC 449 ms
44,224 KB
testcase_04 AC 457 ms
43,828 KB
testcase_05 AC 461 ms
43,844 KB
testcase_06 AC 453 ms
44,228 KB
testcase_07 AC 461 ms
43,832 KB
testcase_08 AC 446 ms
44,100 KB
testcase_09 AC 466 ms
44,228 KB
testcase_10 AC 458 ms
44,100 KB
testcase_11 AC 1,485 ms
47,940 KB
testcase_12 AC 1,248 ms
46,280 KB
testcase_13 AC 1,167 ms
49,716 KB
testcase_14 AC 1,161 ms
48,704 KB
testcase_15 AC 1,496 ms
49,732 KB
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
権限があれば一括ダウンロードができます

ソースコード

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