結果
| 問題 |
No.365 ジェンガソート
|
| コンテスト | |
| ユーザー |
phtmscg
|
| 提出日時 | 2019-04-20 18:02:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 198 bytes |
| コンパイル時間 | 112 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 18,532 KB |
| 最終ジャッジ日時 | 2024-10-01 19:36:47 |
| 合計ジャッジ時間 | 7,057 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 TLE * 2 -- * 23 |
ソースコード
N = int(input())
a = list(map(int,input().split()))
count = N-1
i = a.index(max(a))
n = N-1
while i > 0:
if n in a[:i]:
count -= 1
i = a.index(n)
n -= 1
else:
break
print(count)
phtmscg