結果

問題 No.365 ジェンガソート
ユーザー irumo8202irumo8202
提出日時 2022-01-30 14:39:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 91,196 KB
最終ジャッジ日時 2023-09-02 01:37:44
合計ジャッジ時間 5,130 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,424 KB
testcase_01 AC 64 ms
71,488 KB
testcase_02 AC 68 ms
71,416 KB
testcase_03 AC 64 ms
71,372 KB
testcase_04 AC 65 ms
71,252 KB
testcase_05 AC 65 ms
71,548 KB
testcase_06 AC 66 ms
71,648 KB
testcase_07 AC 66 ms
71,324 KB
testcase_08 AC 65 ms
71,376 KB
testcase_09 AC 65 ms
71,484 KB
testcase_10 AC 64 ms
71,384 KB
testcase_11 AC 65 ms
71,428 KB
testcase_12 AC 65 ms
71,472 KB
testcase_13 AC 65 ms
71,424 KB
testcase_14 AC 64 ms
71,424 KB
testcase_15 AC 64 ms
71,252 KB
testcase_16 AC 83 ms
87,480 KB
testcase_17 AC 88 ms
90,732 KB
testcase_18 AC 72 ms
76,516 KB
testcase_19 AC 90 ms
90,840 KB
testcase_20 AC 73 ms
79,132 KB
testcase_21 AC 72 ms
77,996 KB
testcase_22 AC 81 ms
87,240 KB
testcase_23 AC 77 ms
81,520 KB
testcase_24 AC 81 ms
85,988 KB
testcase_25 AC 73 ms
77,464 KB
testcase_26 AC 79 ms
83,680 KB
testcase_27 AC 86 ms
90,924 KB
testcase_28 AC 80 ms
84,428 KB
testcase_29 AC 83 ms
89,176 KB
testcase_30 AC 79 ms
84,488 KB
testcase_31 AC 73 ms
78,844 KB
testcase_32 AC 73 ms
78,792 KB
testcase_33 AC 86 ms
90,828 KB
testcase_34 AC 71 ms
76,844 KB
testcase_35 AC 81 ms
86,068 KB
testcase_36 AC 86 ms
90,860 KB
testcase_37 AC 87 ms
91,076 KB
testcase_38 AC 86 ms
90,904 KB
testcase_39 AC 88 ms
91,196 KB
testcase_40 AC 85 ms
91,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

mx = N
cnt = 0
for a in A[::-1]:
    if mx != a:
        cnt += 1
    else:
        mx -= 1

print(cnt)
0