結果

問題 No.365 ジェンガソート
ユーザー Schumi543
提出日時 2016-05-17 16:11:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 20,432 KB
最終ジャッジ日時 2024-10-12 02:19:26
合計ジャッジ時間 3,757 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

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

x =n

for i in reversed(s):
    if i !=x: x=x
    else: 
        x -=1

print(x)
0