結果

問題 No.365 ジェンガソート
ユーザー ronpooronpoo
提出日時 2023-08-23 11:17:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 86,796 KB
実行使用メモリ 90,056 KB
最終ジャッジ日時 2023-08-23 11:17:18
合計ジャッジ時間 6,131 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,292 KB
testcase_01 AC 73 ms
71,368 KB
testcase_02 AC 77 ms
71,284 KB
testcase_03 AC 71 ms
71,372 KB
testcase_04 AC 70 ms
71,292 KB
testcase_05 AC 72 ms
71,480 KB
testcase_06 AC 70 ms
71,296 KB
testcase_07 AC 71 ms
71,288 KB
testcase_08 AC 71 ms
71,348 KB
testcase_09 AC 71 ms
71,328 KB
testcase_10 AC 70 ms
71,228 KB
testcase_11 AC 71 ms
71,252 KB
testcase_12 AC 70 ms
71,248 KB
testcase_13 AC 88 ms
71,212 KB
testcase_14 AC 71 ms
71,184 KB
testcase_15 AC 71 ms
71,252 KB
testcase_16 AC 90 ms
86,368 KB
testcase_17 AC 93 ms
89,884 KB
testcase_18 AC 75 ms
76,224 KB
testcase_19 AC 92 ms
89,780 KB
testcase_20 AC 79 ms
78,672 KB
testcase_21 AC 79 ms
77,568 KB
testcase_22 AC 88 ms
86,288 KB
testcase_23 AC 81 ms
80,808 KB
testcase_24 AC 94 ms
85,256 KB
testcase_25 AC 78 ms
77,192 KB
testcase_26 AC 84 ms
82,768 KB
testcase_27 AC 92 ms
89,980 KB
testcase_28 AC 86 ms
83,576 KB
testcase_29 AC 91 ms
88,132 KB
testcase_30 AC 86 ms
83,764 KB
testcase_31 AC 80 ms
78,276 KB
testcase_32 AC 80 ms
78,168 KB
testcase_33 AC 92 ms
89,944 KB
testcase_34 AC 78 ms
76,692 KB
testcase_35 AC 93 ms
85,428 KB
testcase_36 AC 94 ms
89,664 KB
testcase_37 AC 92 ms
89,800 KB
testcase_38 AC 92 ms
89,884 KB
testcase_39 AC 93 ms
90,008 KB
testcase_40 AC 93 ms
90,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

b = N
for i in range(N-1, -1, -1):
    if a[i] == b:
        b -= 1

print(b)
0