結果

問題 No.365 ジェンガソート
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-09-15 22:23:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 19,736 KB
最終ジャッジ日時 2023-09-04 03:00:18
合計ジャッジ時間 3,356 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,896 KB
testcase_01 AC 16 ms
7,768 KB
testcase_02 AC 14 ms
7,768 KB
testcase_03 AC 14 ms
7,776 KB
testcase_04 AC 14 ms
7,788 KB
testcase_05 AC 15 ms
7,916 KB
testcase_06 AC 15 ms
7,908 KB
testcase_07 AC 15 ms
7,776 KB
testcase_08 AC 15 ms
7,916 KB
testcase_09 AC 15 ms
7,788 KB
testcase_10 AC 15 ms
7,796 KB
testcase_11 AC 16 ms
7,844 KB
testcase_12 AC 15 ms
7,836 KB
testcase_13 AC 15 ms
7,780 KB
testcase_14 AC 14 ms
7,756 KB
testcase_15 AC 15 ms
7,732 KB
testcase_16 AC 50 ms
16,748 KB
testcase_17 AC 61 ms
18,804 KB
testcase_18 AC 19 ms
9,040 KB
testcase_19 AC 65 ms
18,736 KB
testcase_20 AC 31 ms
11,664 KB
testcase_21 AC 25 ms
10,572 KB
testcase_22 AC 48 ms
16,228 KB
testcase_23 AC 36 ms
13,088 KB
testcase_24 AC 46 ms
15,776 KB
testcase_25 AC 24 ms
10,296 KB
testcase_26 AC 39 ms
14,224 KB
testcase_27 AC 59 ms
19,388 KB
testcase_28 AC 40 ms
14,660 KB
testcase_29 AC 54 ms
17,792 KB
testcase_30 AC 41 ms
14,764 KB
testcase_31 AC 27 ms
11,048 KB
testcase_32 AC 26 ms
10,952 KB
testcase_33 AC 59 ms
19,048 KB
testcase_34 AC 22 ms
9,876 KB
testcase_35 AC 48 ms
16,252 KB
testcase_36 AC 66 ms
19,596 KB
testcase_37 AC 60 ms
19,480 KB
testcase_38 AC 60 ms
19,736 KB
testcase_39 AC 63 ms
19,600 KB
testcase_40 AC 65 ms
19,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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