結果
| 問題 | No.365 ジェンガソート |
| コンテスト | |
| ユーザー |
hang_hang_cln
|
| 提出日時 | 2018-06-11 00:43:45 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 77,348 KB |
| 最終ジャッジ日時 | 2025-12-04 01:13:17 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 41 |
ソースコード
# coding: utf-8
# Your code here!
N = int(input())
a = list(map(int,input().split()))
#print(a)
m = len(a)
orderCount = 1 # 順番に並んでる個数
for i in range(2,m+1)[::-1]:
if a.index(i-1) > a.index(i):
break
else:
orderCount += 1
print(m-orderCount)
hang_hang_cln