結果

問題 No.365 ジェンガソート
ユーザー maruyuki95
提出日時 2018-01-01 04:45:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 302 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,408 KB
最終ジャッジ日時 2024-12-22 20:39:34
合計ジャッジ時間 3,937 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

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