結果

問題 No.365 ジェンガソート
ユーザー sue_charosue_charo
提出日時 2017-04-13 18:45:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 19,952 KB
最終ジャッジ日時 2023-09-25 16:26:38
合計ジャッジ時間 3,308 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,436 KB
testcase_01 AC 18 ms
8,452 KB
testcase_02 AC 19 ms
8,476 KB
testcase_03 AC 18 ms
8,532 KB
testcase_04 AC 19 ms
8,636 KB
testcase_05 AC 18 ms
8,492 KB
testcase_06 AC 18 ms
8,488 KB
testcase_07 AC 18 ms
8,640 KB
testcase_08 AC 18 ms
8,412 KB
testcase_09 AC 18 ms
8,556 KB
testcase_10 AC 18 ms
8,608 KB
testcase_11 AC 19 ms
8,504 KB
testcase_12 AC 19 ms
8,504 KB
testcase_13 AC 19 ms
8,564 KB
testcase_14 AC 18 ms
8,492 KB
testcase_15 AC 18 ms
8,580 KB
testcase_16 AC 48 ms
17,128 KB
testcase_17 AC 58 ms
19,212 KB
testcase_18 AC 22 ms
9,372 KB
testcase_19 AC 57 ms
18,896 KB
testcase_20 AC 31 ms
11,892 KB
testcase_21 AC 26 ms
10,900 KB
testcase_22 AC 47 ms
17,092 KB
testcase_23 AC 34 ms
13,420 KB
testcase_24 AC 44 ms
17,168 KB
testcase_25 AC 27 ms
10,660 KB
testcase_26 AC 39 ms
14,596 KB
testcase_27 AC 57 ms
19,796 KB
testcase_28 AC 41 ms
15,468 KB
testcase_29 AC 50 ms
18,308 KB
testcase_30 AC 41 ms
15,168 KB
testcase_31 AC 29 ms
11,588 KB
testcase_32 AC 29 ms
11,584 KB
testcase_33 AC 54 ms
19,556 KB
testcase_34 AC 24 ms
10,344 KB
testcase_35 AC 45 ms
16,152 KB
testcase_36 AC 62 ms
19,800 KB
testcase_37 AC 55 ms
19,936 KB
testcase_38 AC 56 ms
19,916 KB
testcase_39 AC 59 ms
19,800 KB
testcase_40 AC 59 ms
19,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
from collections import deque

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

ans = N

for ax in a[::-1]:
    if ax == ans:
        ans -= 1

print(ans)
0