結果

問題 No.365 ジェンガソート
ユーザー fumofumofunifumofumofuni
提出日時 2021-09-13 18:32:48
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 830 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 90,384 KB
最終ジャッジ日時 2023-09-08 02:05:02
合計ジャッジ時間 6,840 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,412 KB
testcase_01 AC 68 ms
71,300 KB
testcase_02 AC 68 ms
71,328 KB
testcase_03 AC 68 ms
71,384 KB
testcase_04 AC 68 ms
71,220 KB
testcase_05 AC 68 ms
71,348 KB
testcase_06 AC 67 ms
71,316 KB
testcase_07 AC 67 ms
71,376 KB
testcase_08 AC 67 ms
71,580 KB
testcase_09 AC 66 ms
71,208 KB
testcase_10 AC 68 ms
71,408 KB
testcase_11 AC 68 ms
71,476 KB
testcase_12 AC 69 ms
71,560 KB
testcase_13 AC 64 ms
71,444 KB
testcase_14 AC 66 ms
71,384 KB
testcase_15 AC 66 ms
71,116 KB
testcase_16 AC 88 ms
86,576 KB
testcase_17 AC 87 ms
89,864 KB
testcase_18 AC 72 ms
76,568 KB
testcase_19 AC 86 ms
90,076 KB
testcase_20 AC 74 ms
78,852 KB
testcase_21 AC 76 ms
77,600 KB
testcase_22 AC 85 ms
86,756 KB
testcase_23 AC 80 ms
81,056 KB
testcase_24 AC 85 ms
85,224 KB
testcase_25 AC 77 ms
77,448 KB
testcase_26 AC 81 ms
83,052 KB
testcase_27 AC 88 ms
90,176 KB
testcase_28 AC 82 ms
84,048 KB
testcase_29 AC 88 ms
88,380 KB
testcase_30 AC 82 ms
83,868 KB
testcase_31 AC 77 ms
78,508 KB
testcase_32 AC 79 ms
78,612 KB
testcase_33 AC 89 ms
90,384 KB
testcase_34 AC 77 ms
76,800 KB
testcase_35 AC 83 ms
85,352 KB
testcase_36 AC 87 ms
89,952 KB
testcase_37 AC 88 ms
90,124 KB
testcase_38 AC 88 ms
89,920 KB
testcase_39 AC 90 ms
90,244 KB
testcase_40 AC 92 ms
90,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
res=N
V=list(map(int,input().split()))
for i in reversed(range(N)):
    if res==V[i]:
        res-=1
print(res)
0