結果

問題 No.365 ジェンガソート
ユーザー s_shoheis_shohei
提出日時 2020-05-04 19:36:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 90,164 KB
最終ジャッジ日時 2023-09-07 02:42:25
合計ジャッジ時間 5,492 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,084 KB
testcase_01 AC 69 ms
71,384 KB
testcase_02 AC 74 ms
71,356 KB
testcase_03 AC 68 ms
71,360 KB
testcase_04 AC 69 ms
71,416 KB
testcase_05 AC 72 ms
71,364 KB
testcase_06 AC 71 ms
71,252 KB
testcase_07 AC 69 ms
71,324 KB
testcase_08 AC 68 ms
71,368 KB
testcase_09 AC 70 ms
71,584 KB
testcase_10 AC 68 ms
71,404 KB
testcase_11 AC 70 ms
71,376 KB
testcase_12 AC 70 ms
71,404 KB
testcase_13 AC 70 ms
71,400 KB
testcase_14 AC 69 ms
71,400 KB
testcase_15 AC 69 ms
71,264 KB
testcase_16 AC 85 ms
86,484 KB
testcase_17 AC 90 ms
90,164 KB
testcase_18 AC 75 ms
76,408 KB
testcase_19 AC 89 ms
90,032 KB
testcase_20 AC 75 ms
78,868 KB
testcase_21 AC 76 ms
77,608 KB
testcase_22 AC 86 ms
86,532 KB
testcase_23 AC 79 ms
81,096 KB
testcase_24 AC 85 ms
85,256 KB
testcase_25 AC 77 ms
77,228 KB
testcase_26 AC 84 ms
83,040 KB
testcase_27 AC 90 ms
89,876 KB
testcase_28 AC 84 ms
84,036 KB
testcase_29 AC 91 ms
88,368 KB
testcase_30 AC 85 ms
83,964 KB
testcase_31 AC 77 ms
78,336 KB
testcase_32 AC 76 ms
78,496 KB
testcase_33 AC 93 ms
89,992 KB
testcase_34 AC 75 ms
76,512 KB
testcase_35 AC 84 ms
85,304 KB
testcase_36 AC 90 ms
90,012 KB
testcase_37 AC 88 ms
89,952 KB
testcase_38 AC 90 ms
89,784 KB
testcase_39 AC 91 ms
90,036 KB
testcase_40 AC 90 ms
90,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
a.reverse()

now=n
cnt=0
for i in range(n):
    if a[i] == now:
        cnt+=1
        now-=1

print(n-cnt)
0