結果

問題 No.365 ジェンガソート
ユーザー 37kt_37kt_
提出日時 2016-05-10 09:18:50
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 19,728 KB
最終ジャッジ日時 2023-08-02 07:22:24
合計ジャッジ時間 3,266 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,780 KB
testcase_01 AC 14 ms
7,800 KB
testcase_02 AC 14 ms
7,924 KB
testcase_03 AC 14 ms
7,936 KB
testcase_04 AC 14 ms
7,772 KB
testcase_05 AC 14 ms
7,844 KB
testcase_06 AC 14 ms
7,848 KB
testcase_07 AC 14 ms
7,948 KB
testcase_08 AC 14 ms
7,852 KB
testcase_09 AC 14 ms
7,988 KB
testcase_10 AC 14 ms
7,780 KB
testcase_11 AC 13 ms
7,916 KB
testcase_12 AC 14 ms
7,912 KB
testcase_13 AC 13 ms
7,876 KB
testcase_14 AC 14 ms
7,776 KB
testcase_15 AC 13 ms
7,908 KB
testcase_16 AC 55 ms
17,024 KB
testcase_17 AC 63 ms
18,932 KB
testcase_18 AC 18 ms
9,100 KB
testcase_19 AC 58 ms
18,896 KB
testcase_20 AC 25 ms
11,776 KB
testcase_21 AC 25 ms
10,644 KB
testcase_22 AC 56 ms
16,828 KB
testcase_23 AC 40 ms
13,156 KB
testcase_24 AC 56 ms
15,880 KB
testcase_25 AC 25 ms
10,340 KB
testcase_26 AC 46 ms
14,276 KB
testcase_27 AC 67 ms
19,588 KB
testcase_28 AC 47 ms
14,732 KB
testcase_29 AC 64 ms
17,920 KB
testcase_30 AC 49 ms
14,928 KB
testcase_31 AC 30 ms
11,048 KB
testcase_32 AC 29 ms
11,056 KB
testcase_33 AC 72 ms
19,168 KB
testcase_34 AC 24 ms
10,072 KB
testcase_35 AC 56 ms
16,512 KB
testcase_36 AC 60 ms
19,728 KB
testcase_37 AC 53 ms
19,628 KB
testcase_38 AC 71 ms
19,596 KB
testcase_39 AC 55 ms
19,624 KB
testcase_40 AC 56 ms
19,664 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