結果

問題 No.365 ジェンガソート
ユーザー mbanmban
提出日時 2017-03-05 02:58:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 743 ms
コンパイル使用メモリ 6,496 KB
実行使用メモリ 14,644 KB
最終ジャッジ日時 2023-09-05 05:49:39
合計ジャッジ時間 3,391 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,036 KB
testcase_01 AC 12 ms
5,980 KB
testcase_02 AC 11 ms
6,136 KB
testcase_03 AC 11 ms
5,968 KB
testcase_04 AC 12 ms
6,032 KB
testcase_05 AC 11 ms
5,980 KB
testcase_06 AC 12 ms
6,000 KB
testcase_07 AC 11 ms
6,060 KB
testcase_08 AC 11 ms
6,056 KB
testcase_09 AC 11 ms
6,000 KB
testcase_10 AC 11 ms
6,180 KB
testcase_11 AC 12 ms
6,036 KB
testcase_12 AC 11 ms
6,060 KB
testcase_13 AC 11 ms
6,208 KB
testcase_14 AC 12 ms
6,120 KB
testcase_15 AC 12 ms
6,136 KB
testcase_16 AC 58 ms
12,376 KB
testcase_17 AC 73 ms
13,932 KB
testcase_18 AC 17 ms
6,532 KB
testcase_19 AC 74 ms
13,852 KB
testcase_20 AC 33 ms
8,484 KB
testcase_21 AC 26 ms
7,740 KB
testcase_22 AC 58 ms
12,276 KB
testcase_23 AC 39 ms
9,544 KB
testcase_24 AC 56 ms
12,096 KB
testcase_25 AC 24 ms
7,580 KB
testcase_26 AC 46 ms
10,664 KB
testcase_27 AC 72 ms
14,360 KB
testcase_28 AC 47 ms
10,972 KB
testcase_29 AC 66 ms
13,668 KB
testcase_30 AC 48 ms
10,936 KB
testcase_31 AC 28 ms
8,152 KB
testcase_32 AC 27 ms
8,136 KB
testcase_33 AC 71 ms
14,248 KB
testcase_34 AC 21 ms
7,232 KB
testcase_35 AC 56 ms
12,164 KB
testcase_36 AC 82 ms
14,556 KB
testcase_37 AC 73 ms
14,636 KB
testcase_38 AC 73 ms
14,548 KB
testcase_39 AC 78 ms
14,512 KB
testcase_40 AC 79 ms
14,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

count = 0
look = N

for i in range(N):
    if look == a[N - i - 1]:
        look -= 1
        count += 1

print N - count
0