結果

問題 No.365 ジェンガソート
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2021-09-01 17:03:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,720 KB
最終ジャッジ日時 2024-05-05 21:09:18
合計ジャッジ時間 4,321 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,496 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 29 ms
10,496 KB
testcase_03 AC 28 ms
10,368 KB
testcase_04 AC 28 ms
10,624 KB
testcase_05 AC 28 ms
10,496 KB
testcase_06 AC 29 ms
10,496 KB
testcase_07 AC 30 ms
10,624 KB
testcase_08 AC 29 ms
10,496 KB
testcase_09 AC 29 ms
10,496 KB
testcase_10 AC 29 ms
10,624 KB
testcase_11 AC 29 ms
10,624 KB
testcase_12 AC 29 ms
10,624 KB
testcase_13 AC 28 ms
10,368 KB
testcase_14 AC 29 ms
10,624 KB
testcase_15 AC 30 ms
10,752 KB
testcase_16 AC 67 ms
18,136 KB
testcase_17 AC 88 ms
19,916 KB
testcase_18 AC 34 ms
11,520 KB
testcase_19 AC 88 ms
19,760 KB
testcase_20 AC 51 ms
13,312 KB
testcase_21 AC 40 ms
12,672 KB
testcase_22 AC 67 ms
18,052 KB
testcase_23 AC 53 ms
15,176 KB
testcase_24 AC 66 ms
17,856 KB
testcase_25 AC 40 ms
12,672 KB
testcase_26 AC 57 ms
16,168 KB
testcase_27 AC 80 ms
20,476 KB
testcase_28 AC 60 ms
16,304 KB
testcase_29 AC 74 ms
19,060 KB
testcase_30 AC 60 ms
16,652 KB
testcase_31 AC 43 ms
13,184 KB
testcase_32 AC 42 ms
12,924 KB
testcase_33 AC 78 ms
20,412 KB
testcase_34 AC 37 ms
12,416 KB
testcase_35 AC 67 ms
17,780 KB
testcase_36 AC 98 ms
20,716 KB
testcase_37 AC 78 ms
20,720 KB
testcase_38 AC 81 ms
20,456 KB
testcase_39 AC 91 ms
20,716 KB
testcase_40 AC 90 ms
20,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))

cnt = 0
res = N
for i in range(N):
    if A[-1-i] == res:
        cnt += 1
        res -= 1
print(N-cnt)
0