結果
| 問題 |
No.397 NO MORE KADOMATSU
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-12-30 14:09:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 310 bytes |
| コンパイル時間 | 364 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 95,288 KB |
| 平均クエリ数 | 936.56 |
| 最終ジャッジ日時 | 2024-12-30 14:09:14 |
| 合計ジャッジ時間 | 6,472 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 RE * 13 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
ans = []
while A:
x = A.index(max(A))
while x + 1 < len(A):
if A[x] != A[x+1]:
A[x],A[x+1] = A[x+1],A[x]
ans.append((x+1,x+2))
x += 1
A.pop()
print(len(ans))
for a in ans:
print(*a)
dmu = int(input())
ntuda