結果

問題 No.365 ジェンガソート
ユーザー JunOnumaJunOnuma
提出日時 2017-05-18 16:26:49
言語 Python2
(2.7.18)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 584 ms
コンパイル使用メモリ 7,120 KB
実行使用メモリ 15,072 KB
最終ジャッジ日時 2023-10-18 23:08:17
合計ジャッジ時間 4,786 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,440 KB
testcase_01 AC 13 ms
6,440 KB
testcase_02 AC 12 ms
6,440 KB
testcase_03 AC 11 ms
6,440 KB
testcase_04 AC 12 ms
6,440 KB
testcase_05 AC 12 ms
6,440 KB
testcase_06 AC 11 ms
6,440 KB
testcase_07 AC 11 ms
6,440 KB
testcase_08 AC 11 ms
6,440 KB
testcase_09 AC 12 ms
6,440 KB
testcase_10 AC 11 ms
6,440 KB
testcase_11 AC 12 ms
6,440 KB
testcase_12 AC 12 ms
6,440 KB
testcase_13 AC 12 ms
6,440 KB
testcase_14 AC 11 ms
6,440 KB
testcase_15 AC 11 ms
6,440 KB
testcase_16 AC 62 ms
12,884 KB
testcase_17 AC 75 ms
14,308 KB
testcase_18 AC 17 ms
7,092 KB
testcase_19 AC 74 ms
14,284 KB
testcase_20 AC 32 ms
9,032 KB
testcase_21 AC 26 ms
8,332 KB
testcase_22 AC 60 ms
12,800 KB
testcase_23 AC 40 ms
10,052 KB
testcase_24 AC 59 ms
12,608 KB
testcase_25 AC 25 ms
8,100 KB
testcase_26 AC 47 ms
11,192 KB
testcase_27 AC 76 ms
14,884 KB
testcase_28 AC 50 ms
11,344 KB
testcase_29 AC 70 ms
14,100 KB
testcase_30 AC 52 ms
11,428 KB
testcase_31 AC 29 ms
8,664 KB
testcase_32 AC 28 ms
8,516 KB
testcase_33 AC 77 ms
14,820 KB
testcase_34 AC 22 ms
7,664 KB
testcase_35 AC 59 ms
12,684 KB
testcase_36 AC 79 ms
15,072 KB
testcase_37 AC 78 ms
15,072 KB
testcase_38 AC 77 ms
15,072 KB
testcase_39 AC 78 ms
15,072 KB
testcase_40 AC 80 ms
15,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
l = map(int, raw_input().split())
m = n
p = n-1
c = 0
while p >= 0:
    if m != l[p]:
        c += 1
    else:
        m -= 1
    p -= 1
print c
0