結果

問題 No.365 ジェンガソート
ユーザー 👑 rin204rin204
提出日時 2020-06-25 13:56:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 19,700 KB
最終ジャッジ日時 2023-09-16 22:38:21
合計ジャッジ時間 3,171 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,728 KB
testcase_01 AC 16 ms
7,792 KB
testcase_02 AC 16 ms
7,752 KB
testcase_03 AC 16 ms
7,772 KB
testcase_04 AC 16 ms
7,752 KB
testcase_05 AC 15 ms
7,760 KB
testcase_06 AC 16 ms
7,760 KB
testcase_07 AC 16 ms
7,852 KB
testcase_08 AC 16 ms
7,776 KB
testcase_09 AC 15 ms
7,732 KB
testcase_10 AC 16 ms
7,756 KB
testcase_11 AC 16 ms
7,728 KB
testcase_12 AC 16 ms
7,832 KB
testcase_13 AC 16 ms
7,732 KB
testcase_14 AC 16 ms
7,740 KB
testcase_15 AC 15 ms
7,780 KB
testcase_16 AC 45 ms
16,864 KB
testcase_17 AC 57 ms
18,800 KB
testcase_18 AC 20 ms
8,912 KB
testcase_19 AC 60 ms
18,712 KB
testcase_20 AC 31 ms
11,660 KB
testcase_21 AC 24 ms
10,464 KB
testcase_22 AC 44 ms
16,712 KB
testcase_23 AC 33 ms
13,028 KB
testcase_24 AC 42 ms
15,668 KB
testcase_25 AC 24 ms
10,276 KB
testcase_26 AC 37 ms
14,168 KB
testcase_27 AC 53 ms
19,516 KB
testcase_28 AC 37 ms
14,640 KB
testcase_29 AC 48 ms
17,796 KB
testcase_30 AC 38 ms
14,716 KB
testcase_31 AC 26 ms
11,000 KB
testcase_32 AC 26 ms
10,988 KB
testcase_33 AC 53 ms
19,112 KB
testcase_34 AC 22 ms
9,884 KB
testcase_35 AC 44 ms
16,324 KB
testcase_36 AC 68 ms
19,700 KB
testcase_37 AC 54 ms
19,664 KB
testcase_38 AC 54 ms
19,596 KB
testcase_39 AC 61 ms
19,548 KB
testcase_40 AC 62 ms
19,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
alst = list(map(int, input().split()))
now = n
ans = n
for num in alst[::-1]:
    if num == now:
        ans -= 1
        now -= 1
print(ans)
0