結果

問題 No.365 ジェンガソート
コンテスト
ユーザー maruyuki95
提出日時 2018-01-01 04:45:50
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 302 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 54 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 19,152 KB
最終ジャッジ日時 2026-10-06 03:27:16
合計ジャッジ時間 5,039 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 41
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def execute(a):
    count = 0
    nums = list(map(int, a.split()))
    nums.reverse()
    for num in nums:
        if(num == max(nums)):
            nums[nums.index(max(nums))] = 0
        else:
            count = count + 1

    return count

N = int(input())
a = input().split()   

print(execute(a))
0