結果

問題 No.365 ジェンガソート
ユーザー akitsugu777akitsugu777
提出日時 2018-11-26 14:13:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 125 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 19,752 KB
最終ジャッジ日時 2023-08-28 18:57:57
合計ジャッジ時間 2,716 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,860 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 AC 14 ms
7,812 KB
testcase_03 AC 14 ms
7,972 KB
testcase_04 AC 14 ms
7,804 KB
testcase_05 AC 14 ms
7,980 KB
testcase_06 AC 14 ms
7,832 KB
testcase_07 AC 13 ms
7,832 KB
testcase_08 AC 14 ms
7,836 KB
testcase_09 AC 14 ms
7,876 KB
testcase_10 AC 14 ms
7,972 KB
testcase_11 AC 13 ms
7,820 KB
testcase_12 AC 14 ms
7,876 KB
testcase_13 AC 13 ms
7,964 KB
testcase_14 AC 14 ms
7,840 KB
testcase_15 AC 14 ms
7,960 KB
testcase_16 AC 45 ms
16,900 KB
testcase_17 AC 50 ms
18,980 KB
testcase_18 AC 17 ms
9,152 KB
testcase_19 AC 50 ms
18,808 KB
testcase_20 AC 28 ms
11,824 KB
testcase_21 AC 22 ms
10,588 KB
testcase_22 AC 40 ms
16,260 KB
testcase_23 AC 30 ms
13,256 KB
testcase_24 AC 38 ms
15,852 KB
testcase_25 AC 22 ms
10,364 KB
testcase_26 AC 32 ms
14,188 KB
testcase_27 AC 48 ms
19,492 KB
testcase_28 AC 34 ms
14,836 KB
testcase_29 AC 45 ms
17,752 KB
testcase_30 AC 34 ms
14,784 KB
testcase_31 AC 24 ms
11,184 KB
testcase_32 AC 23 ms
10,976 KB
testcase_33 AC 47 ms
19,192 KB
testcase_34 AC 19 ms
9,960 KB
testcase_35 AC 39 ms
16,400 KB
testcase_36 AC 54 ms
19,696 KB
testcase_37 AC 47 ms
19,688 KB
testcase_38 AC 48 ms
19,632 KB
testcase_39 AC 51 ms
19,620 KB
testcase_40 AC 51 ms
19,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l = list(map(int,input().split()))

x = len(l)
for i in reversed(l):
    if i == x:
        x -= 1

print(x)
0