結果

問題 No.365 ジェンガソート
ユーザー HachimoriHachimori
提出日時 2016-04-29 22:31:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 14,996 KB
最終ジャッジ日時 2024-04-20 06:31:39
合計ジャッジ時間 3,148 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,272 KB
testcase_01 AC 12 ms
6,144 KB
testcase_02 AC 12 ms
6,272 KB
testcase_03 AC 11 ms
6,400 KB
testcase_04 AC 11 ms
6,144 KB
testcase_05 AC 12 ms
6,144 KB
testcase_06 AC 11 ms
6,144 KB
testcase_07 AC 12 ms
6,272 KB
testcase_08 AC 12 ms
6,144 KB
testcase_09 AC 12 ms
6,272 KB
testcase_10 AC 12 ms
6,272 KB
testcase_11 AC 12 ms
6,272 KB
testcase_12 AC 12 ms
6,400 KB
testcase_13 AC 12 ms
6,272 KB
testcase_14 AC 11 ms
6,272 KB
testcase_15 AC 12 ms
6,272 KB
testcase_16 AC 52 ms
12,652 KB
testcase_17 AC 61 ms
14,320 KB
testcase_18 AC 16 ms
7,040 KB
testcase_19 AC 61 ms
14,160 KB
testcase_20 AC 28 ms
8,832 KB
testcase_21 AC 23 ms
8,064 KB
testcase_22 AC 51 ms
12,568 KB
testcase_23 AC 35 ms
9,976 KB
testcase_24 AC 49 ms
12,248 KB
testcase_25 AC 22 ms
7,936 KB
testcase_26 AC 41 ms
11,100 KB
testcase_27 AC 63 ms
14,592 KB
testcase_28 AC 42 ms
11,312 KB
testcase_29 AC 58 ms
13,840 KB
testcase_30 AC 43 ms
11,340 KB
testcase_31 AC 25 ms
8,448 KB
testcase_32 AC 24 ms
8,448 KB
testcase_33 AC 64 ms
14,564 KB
testcase_34 AC 21 ms
7,552 KB
testcase_35 AC 51 ms
12,552 KB
testcase_36 AC 64 ms
14,864 KB
testcase_37 AC 64 ms
14,736 KB
testcase_38 AC 63 ms
14,868 KB
testcase_39 AC 63 ms
14,872 KB
testcase_40 AC 64 ms
14,996 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