結果

問題 No.365 ジェンガソート
ユーザー Camille!Camille!
提出日時 2021-02-04 19:35:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 120 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 10,456 KB
実行使用メモリ 19,736 KB
最終ジャッジ日時 2023-09-13 16:04:14
合計ジャッジ時間 3,576 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,856 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,808 KB
testcase_03 AC 14 ms
7,780 KB
testcase_04 AC 14 ms
7,868 KB
testcase_05 AC 14 ms
7,848 KB
testcase_06 AC 14 ms
7,916 KB
testcase_07 AC 15 ms
7,800 KB
testcase_08 AC 15 ms
7,836 KB
testcase_09 AC 15 ms
7,876 KB
testcase_10 WA -
testcase_11 AC 15 ms
7,852 KB
testcase_12 WA -
testcase_13 AC 14 ms
7,804 KB
testcase_14 AC 15 ms
7,920 KB
testcase_15 AC 14 ms
7,944 KB
testcase_16 AC 43 ms
17,068 KB
testcase_17 AC 53 ms
18,984 KB
testcase_18 AC 19 ms
8,976 KB
testcase_19 AC 54 ms
18,776 KB
testcase_20 AC 28 ms
11,848 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 34 ms
14,336 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 20 ms
9,876 KB
testcase_35 AC 42 ms
16,444 KB
testcase_36 AC 60 ms
19,600 KB
testcase_37 WA -
testcase_38 AC 51 ms
19,564 KB
testcase_39 AC 56 ms
19,716 KB
testcase_40 AC 57 ms
19,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
n = n-1
for i in a[::-1]:
    if i == n:
        n = n-1

print(n)
0