結果
問題 | No.875 Range Mindex Query |
ユーザー | daku9640 |
提出日時 | 2019-09-06 21:31:14 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 10,552 KB |
実行使用メモリ | 43,164 KB |
最終ジャッジ日時 | 2023-09-06 22:39:55 |
合計ジャッジ時間 | 7,539 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 135 ms
34,092 KB |
testcase_01 | AC | 140 ms
29,816 KB |
testcase_02 | AC | 146 ms
29,740 KB |
testcase_03 | AC | 134 ms
29,652 KB |
testcase_04 | AC | 137 ms
29,640 KB |
testcase_05 | AC | 134 ms
29,872 KB |
testcase_06 | AC | 140 ms
29,756 KB |
testcase_07 | AC | 141 ms
29,708 KB |
testcase_08 | AC | 136 ms
29,708 KB |
testcase_09 | AC | 138 ms
29,624 KB |
testcase_10 | AC | 147 ms
29,888 KB |
testcase_11 | TLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
ソースコード
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()