結果
問題 | No.397 NO MORE KADOMATSU |
ユーザー | convexineq |
提出日時 | 2021-02-17 08:31:28 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 86,824 KB |
実行使用メモリ | 99,260 KB |
平均クエリ数 | 936.56 |
最終ジャッジ日時 | 2023-09-24 09:46:16 |
合計ジャッジ時間 | 7,163 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | AC | 98 ms
87,164 KB |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | AC | 103 ms
91,920 KB |
testcase_10 | RE | - |
testcase_11 | AC | 102 ms
91,480 KB |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | AC | 97 ms
87,312 KB |
testcase_17 | AC | 98 ms
87,752 KB |
ソースコード
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()