結果

問題 No.365 ジェンガソート
ユーザー tabataba
提出日時 2016-05-11 02:10:34
言語 Python2
(2.7.18)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 97 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 15,052 KB
最終ジャッジ日時 2024-04-20 07:08:08
合計ジャッジ時間 2,388 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,400 KB
testcase_01 AC 10 ms
6,400 KB
testcase_02 AC 9 ms
6,272 KB
testcase_03 AC 10 ms
6,272 KB
testcase_04 AC 10 ms
6,272 KB
testcase_05 AC 10 ms
6,400 KB
testcase_06 AC 10 ms
6,400 KB
testcase_07 AC 10 ms
6,400 KB
testcase_08 AC 9 ms
6,400 KB
testcase_09 AC 9 ms
6,272 KB
testcase_10 AC 11 ms
6,400 KB
testcase_11 AC 10 ms
6,400 KB
testcase_12 AC 10 ms
6,400 KB
testcase_13 AC 10 ms
6,400 KB
testcase_14 AC 10 ms
6,400 KB
testcase_15 AC 9 ms
6,400 KB
testcase_16 AC 51 ms
12,972 KB
testcase_17 AC 61 ms
14,376 KB
testcase_18 AC 15 ms
7,040 KB
testcase_19 AC 64 ms
14,224 KB
testcase_20 AC 27 ms
8,960 KB
testcase_21 AC 21 ms
8,192 KB
testcase_22 AC 50 ms
12,880 KB
testcase_23 AC 33 ms
10,164 KB
testcase_24 AC 46 ms
12,564 KB
testcase_25 AC 20 ms
7,936 KB
testcase_26 AC 38 ms
11,032 KB
testcase_27 AC 60 ms
14,940 KB
testcase_28 AC 39 ms
11,168 KB
testcase_29 AC 55 ms
14,032 KB
testcase_30 AC 39 ms
11,400 KB
testcase_31 AC 24 ms
8,560 KB
testcase_32 AC 22 ms
8,448 KB
testcase_33 AC 61 ms
14,752 KB
testcase_34 AC 17 ms
7,808 KB
testcase_35 AC 46 ms
12,480 KB
testcase_36 AC 63 ms
15,052 KB
testcase_37 AC 61 ms
14,796 KB
testcase_38 AC 61 ms
14,928 KB
testcase_39 AC 64 ms
14,988 KB
testcase_40 AC 64 ms
14,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
a=map(int,raw_input().split())
c=n
for i in range(n)[::-1]:
	if a[i]==c:
		c-=1
print c
0