結果

問題 No.365 ジェンガソート
ユーザー yaoshimaxyaoshimax
提出日時 2016-04-30 01:31:11
言語 Python2
(2.7.18)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 14,992 KB
最終ジャッジ日時 2024-04-20 06:46:26
合計ジャッジ時間 3,459 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
6,144 KB
testcase_01 AC 14 ms
6,272 KB
testcase_02 AC 14 ms
6,144 KB
testcase_03 AC 18 ms
6,272 KB
testcase_04 AC 13 ms
6,272 KB
testcase_05 AC 15 ms
6,144 KB
testcase_06 AC 13 ms
6,144 KB
testcase_07 AC 13 ms
6,272 KB
testcase_08 AC 12 ms
6,272 KB
testcase_09 AC 12 ms
6,272 KB
testcase_10 AC 15 ms
6,400 KB
testcase_11 AC 14 ms
6,144 KB
testcase_12 AC 12 ms
6,144 KB
testcase_13 AC 13 ms
6,400 KB
testcase_14 AC 13 ms
6,272 KB
testcase_15 AC 13 ms
6,144 KB
testcase_16 AC 60 ms
12,780 KB
testcase_17 AC 73 ms
14,188 KB
testcase_18 AC 20 ms
6,912 KB
testcase_19 AC 74 ms
14,160 KB
testcase_20 AC 33 ms
8,960 KB
testcase_21 AC 25 ms
8,192 KB
testcase_22 AC 58 ms
12,696 KB
testcase_23 AC 38 ms
10,104 KB
testcase_24 AC 50 ms
12,500 KB
testcase_25 AC 23 ms
8,192 KB
testcase_26 AC 42 ms
11,100 KB
testcase_27 AC 64 ms
14,752 KB
testcase_28 AC 42 ms
11,364 KB
testcase_29 AC 59 ms
13,968 KB
testcase_30 AC 43 ms
11,464 KB
testcase_31 AC 26 ms
8,448 KB
testcase_32 AC 26 ms
8,320 KB
testcase_33 AC 63 ms
14,560 KB
testcase_34 AC 21 ms
7,680 KB
testcase_35 AC 50 ms
12,424 KB
testcase_36 AC 77 ms
14,992 KB
testcase_37 AC 65 ms
14,868 KB
testcase_38 AC 66 ms
14,868 KB
testcase_39 AC 71 ms
14,868 KB
testcase_40 AC 74 ms
14,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(raw_input())
a=map(int,raw_input().split())
a.reverse()
M=N
ans=N
for m in a:
    if m==M:
        M-=1
        ans-=1
print ans
0