結果

問題 No.365 ジェンガソート
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-04-05 13:11:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 718 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 90,236 KB
最終ジャッジ日時 2023-09-16 06:35:23
合計ジャッジ時間 6,351 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,376 KB
testcase_01 AC 71 ms
71,564 KB
testcase_02 AC 72 ms
71,480 KB
testcase_03 AC 72 ms
71,536 KB
testcase_04 AC 72 ms
71,180 KB
testcase_05 AC 71 ms
71,444 KB
testcase_06 AC 69 ms
71,480 KB
testcase_07 AC 71 ms
71,452 KB
testcase_08 AC 70 ms
71,368 KB
testcase_09 AC 71 ms
71,524 KB
testcase_10 AC 69 ms
71,392 KB
testcase_11 AC 70 ms
71,372 KB
testcase_12 AC 71 ms
71,372 KB
testcase_13 AC 71 ms
71,176 KB
testcase_14 AC 71 ms
71,448 KB
testcase_15 AC 74 ms
71,572 KB
testcase_16 AC 90 ms
87,040 KB
testcase_17 AC 95 ms
90,200 KB
testcase_18 AC 79 ms
76,476 KB
testcase_19 AC 95 ms
89,912 KB
testcase_20 AC 79 ms
78,936 KB
testcase_21 AC 81 ms
77,752 KB
testcase_22 AC 89 ms
86,740 KB
testcase_23 AC 82 ms
80,860 KB
testcase_24 AC 86 ms
85,596 KB
testcase_25 AC 78 ms
77,284 KB
testcase_26 AC 85 ms
83,016 KB
testcase_27 AC 96 ms
90,236 KB
testcase_28 AC 88 ms
83,888 KB
testcase_29 AC 93 ms
88,308 KB
testcase_30 AC 87 ms
83,936 KB
testcase_31 AC 82 ms
78,392 KB
testcase_32 AC 82 ms
78,380 KB
testcase_33 AC 94 ms
89,992 KB
testcase_34 AC 81 ms
76,560 KB
testcase_35 AC 90 ms
85,644 KB
testcase_36 AC 94 ms
89,964 KB
testcase_37 AC 92 ms
90,084 KB
testcase_38 AC 92 ms
89,972 KB
testcase_39 AC 96 ms
90,128 KB
testcase_40 AC 94 ms
90,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

cnt = 0
match = n
for i in range(n):
    if a[n-1-i] == match:
        match -= 1
    else:
        cnt += 1
print(cnt)
0