結果

問題 No.365 ジェンガソート
ユーザー FromBooskaFromBooska
提出日時 2023-02-21 19:13:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 90,256 KB
最終ジャッジ日時 2023-09-29 10:13:18
合計ジャッジ時間 5,622 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,468 KB
testcase_01 AC 72 ms
71,280 KB
testcase_02 AC 75 ms
71,108 KB
testcase_03 AC 74 ms
71,172 KB
testcase_04 AC 74 ms
71,124 KB
testcase_05 AC 75 ms
71,176 KB
testcase_06 AC 72 ms
71,324 KB
testcase_07 AC 71 ms
71,292 KB
testcase_08 AC 73 ms
71,104 KB
testcase_09 AC 71 ms
71,412 KB
testcase_10 AC 72 ms
71,488 KB
testcase_11 AC 73 ms
71,276 KB
testcase_12 AC 72 ms
71,088 KB
testcase_13 AC 72 ms
71,264 KB
testcase_14 AC 72 ms
71,268 KB
testcase_15 AC 72 ms
71,168 KB
testcase_16 AC 90 ms
86,400 KB
testcase_17 AC 96 ms
89,964 KB
testcase_18 AC 77 ms
76,148 KB
testcase_19 AC 93 ms
89,724 KB
testcase_20 AC 83 ms
78,832 KB
testcase_21 AC 81 ms
77,636 KB
testcase_22 AC 95 ms
86,516 KB
testcase_23 AC 85 ms
81,144 KB
testcase_24 AC 92 ms
85,204 KB
testcase_25 AC 83 ms
77,216 KB
testcase_26 AC 87 ms
82,772 KB
testcase_27 AC 95 ms
90,088 KB
testcase_28 AC 89 ms
83,784 KB
testcase_29 AC 95 ms
88,144 KB
testcase_30 AC 90 ms
83,976 KB
testcase_31 AC 84 ms
78,220 KB
testcase_32 AC 83 ms
78,440 KB
testcase_33 AC 98 ms
90,220 KB
testcase_34 AC 82 ms
76,444 KB
testcase_35 AC 90 ms
85,376 KB
testcase_36 AC 95 ms
90,256 KB
testcase_37 AC 98 ms
90,000 KB
testcase_38 AC 93 ms
89,872 KB
testcase_39 AC 93 ms
90,024 KB
testcase_40 AC 96 ms
90,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 転倒数BITとは違う
# 後ろから数えて、N,N-1,N-2と探していき、N-見つかった数=答えか

N = int(input())
A = list(map(int, input().split()))
find = N
for i in range(N-1, -1, -1):
    if A[i] == find:
        find -= 1
ans = find
print(ans)
0