結果

問題 No.365 ジェンガソート
ユーザー Watson
提出日時 2017-08-01 14:36:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 24,960 KB
最終ジャッジ日時 2024-10-11 05:46:01
合計ジャッジ時間 4,463 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8 TLE * 1 -- * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = [int(i) for i in input().split()]
move = 0
while a != []:
    if a[-1] == max(a):
        a.remove(a[-1])
    else:
        a.remove(max(a))
        move += 1
print(move)
0