結果

問題 No.365 ジェンガソート
ユーザー HachimoriHachimori
提出日時 2016-04-29 22:31:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 983 ms
コンパイル使用メモリ 6,736 KB
実行使用メモリ 14,528 KB
最終ジャッジ日時 2023-08-02 06:40:33
合計ジャッジ時間 3,914 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,860 KB
testcase_01 AC 11 ms
5,864 KB
testcase_02 AC 11 ms
5,956 KB
testcase_03 AC 11 ms
5,948 KB
testcase_04 AC 11 ms
5,856 KB
testcase_05 AC 11 ms
6,148 KB
testcase_06 AC 11 ms
6,044 KB
testcase_07 AC 11 ms
5,860 KB
testcase_08 AC 11 ms
5,940 KB
testcase_09 AC 11 ms
6,144 KB
testcase_10 AC 11 ms
6,048 KB
testcase_11 AC 11 ms
5,892 KB
testcase_12 AC 10 ms
5,956 KB
testcase_13 AC 11 ms
5,864 KB
testcase_14 AC 11 ms
6,052 KB
testcase_15 AC 11 ms
6,148 KB
testcase_16 AC 50 ms
12,380 KB
testcase_17 AC 59 ms
13,852 KB
testcase_18 AC 16 ms
6,452 KB
testcase_19 AC 59 ms
13,756 KB
testcase_20 AC 26 ms
8,472 KB
testcase_21 AC 22 ms
7,880 KB
testcase_22 AC 49 ms
12,172 KB
testcase_23 AC 34 ms
9,408 KB
testcase_24 AC 48 ms
12,000 KB
testcase_25 AC 23 ms
7,488 KB
testcase_26 AC 40 ms
10,720 KB
testcase_27 AC 62 ms
14,324 KB
testcase_28 AC 41 ms
10,696 KB
testcase_29 AC 56 ms
13,488 KB
testcase_30 AC 41 ms
10,820 KB
testcase_31 AC 24 ms
8,072 KB
testcase_32 AC 23 ms
8,016 KB
testcase_33 AC 60 ms
14,184 KB
testcase_34 AC 19 ms
7,028 KB
testcase_35 AC 48 ms
12,232 KB
testcase_36 AC 63 ms
14,520 KB
testcase_37 AC 62 ms
14,460 KB
testcase_38 AC 63 ms
14,528 KB
testcase_39 AC 62 ms
14,508 KB
testcase_40 AC 62 ms
14,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
#coding:utf8


def read():
    raw_input()
    return map(int, raw_input().split())


def work(vList):
    cur = len(vList)
    ans = 0
    
    for v in vList[::-1]:
        if v == cur:
            cur -= 1
        else:
            ans += 1
    
    print ans


if __name__ == "__main__":
    work(read())
0