結果
問題 |
No.365 ジェンガソート
|
ユーザー |
|
提出日時 | 2018-12-11 10:10:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 26,996 KB |
最終ジャッジ日時 | 2024-09-19 18:41:42 |
合計ジャッジ時間 | 6,441 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 7 TLE * 1 -- * 23 |
ソースコード
N = int(input()) l = list(map(int, input().split())) l.reverse() sum = 0 while len(l) > 0: num_max = max(l) for i in range(len(l)): if l[i] == num_max: sum += i l = l[i + 1:] break print(sum)