結果

問題 No.365 ジェンガソート
ユーザー 37kt_37kt_
提出日時 2016-05-10 09:18:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,636 KB
最終ジャッジ日時 2024-04-20 07:08:00
合計ジャッジ時間 3,968 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,496 KB
testcase_01 AC 31 ms
10,624 KB
testcase_02 AC 31 ms
10,496 KB
testcase_03 AC 31 ms
10,624 KB
testcase_04 AC 31 ms
10,496 KB
testcase_05 AC 31 ms
10,624 KB
testcase_06 AC 31 ms
10,496 KB
testcase_07 AC 31 ms
10,624 KB
testcase_08 AC 31 ms
10,624 KB
testcase_09 AC 31 ms
10,624 KB
testcase_10 AC 30 ms
10,624 KB
testcase_11 AC 30 ms
10,624 KB
testcase_12 AC 32 ms
10,624 KB
testcase_13 AC 30 ms
10,496 KB
testcase_14 AC 30 ms
10,496 KB
testcase_15 AC 30 ms
10,496 KB
testcase_16 AC 83 ms
18,256 KB
testcase_17 AC 91 ms
19,900 KB
testcase_18 AC 36 ms
11,520 KB
testcase_19 AC 87 ms
19,760 KB
testcase_20 AC 46 ms
13,696 KB
testcase_21 AC 47 ms
12,928 KB
testcase_22 AC 81 ms
18,164 KB
testcase_23 AC 60 ms
15,408 KB
testcase_24 AC 78 ms
17,732 KB
testcase_25 AC 45 ms
12,800 KB
testcase_26 AC 69 ms
16,152 KB
testcase_27 AC 103 ms
20,588 KB
testcase_28 AC 69 ms
16,396 KB
testcase_29 AC 91 ms
18,916 KB
testcase_30 AC 71 ms
16,636 KB
testcase_31 AC 48 ms
13,312 KB
testcase_32 AC 47 ms
13,052 KB
testcase_33 AC 98 ms
20,396 KB
testcase_34 AC 41 ms
12,160 KB
testcase_35 AC 81 ms
17,896 KB
testcase_36 AC 86 ms
20,508 KB
testcase_37 AC 77 ms
20,636 KB
testcase_38 AC 101 ms
20,508 KB
testcase_39 AC 81 ms
20,508 KB
testcase_40 AC 83 ms
20,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
b = sorted(a)
i = n - 1
for x in reversed(a):
  if x == b[i]:
    i -= 1
print(i + 1)
0