結果
| 問題 |
No.397 NO MORE KADOMATSU
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-02-17 08:31:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 273 ms |
| コンパイル使用メモリ | 82,428 KB |
| 実行使用メモリ | 94,944 KB |
| 平均クエリ数 | 936.56 |
| 最終ジャッジ日時 | 2024-07-17 10:30:56 |
| 合計ジャッジ時間 | 5,209 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 RE * 13 |
ソースコード
n = int(input())
*a, = map(int,input().split())
res = []
for i in range(n):
for j in range(n-i-1):
if a[j] > a[j+1]:
res.append((j+1,j+2))
a[j+1],a[j] = a[j],a[j+1]
print(len(res))
for x,y in res:
print(x,y)
import sys
sys.stdout.flush()
input()
convexineq