結果

問題 No.365 ジェンガソート
ユーザー yamamura-kyamamura-k
提出日時 2020-01-20 12:28:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 19,796 KB
最終ジャッジ日時 2023-09-15 20:43:01
合計ジャッジ時間 3,176 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
7,792 KB
testcase_09 AC 15 ms
7,780 KB
testcase_10 AC 15 ms
7,792 KB
testcase_11 AC 15 ms
7,920 KB
testcase_12 AC 15 ms
7,708 KB
testcase_13 AC 15 ms
7,824 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 47 ms
16,856 KB
testcase_17 AC 55 ms
18,516 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 24 ms
10,592 KB
testcase_22 AC 46 ms
16,764 KB
testcase_23 AC 32 ms
12,920 KB
testcase_24 AC 43 ms
15,800 KB
testcase_25 AC 23 ms
10,348 KB
testcase_26 AC 37 ms
14,404 KB
testcase_27 AC 54 ms
19,440 KB
testcase_28 AC 38 ms
14,644 KB
testcase_29 AC 50 ms
18,308 KB
testcase_30 AC 39 ms
14,768 KB
testcase_31 AC 26 ms
11,140 KB
testcase_32 AC 25 ms
11,044 KB
testcase_33 AC 53 ms
19,532 KB
testcase_34 AC 21 ms
9,972 KB
testcase_35 AC 43 ms
15,904 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 55 ms
19,624 KB
testcase_39 WA -
testcase_40 AC 60 ms
19,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = tuple(map(int,input().split(" ")))
t = N
for i in range(N-1,0,-1):
    if A[i] == t:
        t -= 1
print(t)
0