結果
問題 |
No.875 Range Mindex Query
|
ユーザー |
|
提出日時 | 2019-09-06 21:31:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 55,736 KB |
最終ジャッジ日時 | 2024-06-24 16:54:01 |
合計ジャッジ時間 | 11,991 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 10 TLE * 1 -- * 7 |
ソースコード
import numpy as np def solve(): n, q = map(int, input().split()) A = [0] + list(map(int, input().split())) for _ in range(q): c, l, r = map(int, input().split()) if c == 1: A[l], A[r] = A[r], A[l] else: print(l + np.argmin(A[l:r + 1])) solve()