結果

問題 No.365 ジェンガソート
ユーザー sue_charo
提出日時 2017-04-13 18:45:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,712 KB
最終ジャッジ日時 2024-07-18 12:56:56
合計ジャッジ時間 3,238 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
from collections import deque

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

ans = N

for ax in a[::-1]:
    if ax == ans:
        ans -= 1

print(ans)
0