結果
| 問題 |
No.397 NO MORE KADOMATSU
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-23 19:52:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 334 bytes |
| コンパイル時間 | 465 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,992 KB |
| 平均クエリ数 | 218.89 |
| 最終ジャッジ日時 | 2024-11-23 19:52:47 |
| 合計ジャッジ時間 | 4,079 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 RE * 11 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
cnt = 0
ans = []
for i in range(n):
minv = i
for j in range(i+1, n):
if a[j] < a[minv]:
minv = j
cnt += 1
ans.append([i,j])
a[i], a[minv] = a[minv], a[i]
print(cnt)
for i, j in ans:
print(i, j)
dummy = int(input())