結果
問題 | No.397 NO MORE KADOMATSU |
ユーザー |
![]() |
提出日時 | 2021-02-17 08:38:21 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 100 ms / 2,000 ms |
コード長 | 283 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 82,232 KB |
実行使用メモリ | 88,032 KB |
平均クエリ数 | 936.56 |
最終ジャッジ日時 | 2024-07-17 02:57:33 |
合計ジャッジ時間 | 2,808 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 |
ソースコード
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,j+1)) 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()