結果
| 問題 |
No.875 Range Mindex Query
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-24 10:23:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 340 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 61,500 KB |
| 最終ジャッジ日時 | 2024-11-06 08:10:02 |
| 合計ジャッジ時間 | 19,481 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 15 TLE * 1 -- * 2 |
ソースコード
import numpy as np
N,Q=map(int,input().split())
A = np.array([0]+list(map(int,input().split())))
indices = {A[i]:i for i in range(1,N+1)}
for i in range(Q):
n,l,r=map(int,input().split())
if n == 1:
A[l],A[r] = A[r],A[l]
indices[A[l]] = l
indices[A[r]] = r
else:
print(A[l:r+1].argmin()+1)