結果

問題 No.365 ジェンガソート
ユーザー taktak
提出日時 2019-06-13 13:25:34
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 15,617 ms
コンパイル使用メモリ 186,212 KB
実行使用メモリ 40,320 KB
最終ジャッジ日時 2024-04-21 10:23:35
合計ジャッジ時間 14,041 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
29,312 KB
testcase_01 AC 49 ms
29,312 KB
testcase_02 AC 49 ms
29,056 KB
testcase_03 AC 49 ms
29,312 KB
testcase_04 AC 47 ms
29,172 KB
testcase_05 AC 49 ms
29,440 KB
testcase_06 AC 48 ms
29,440 KB
testcase_07 AC 47 ms
29,172 KB
testcase_08 AC 47 ms
29,568 KB
testcase_09 AC 49 ms
29,184 KB
testcase_10 WA -
testcase_11 AC 48 ms
29,184 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 48 ms
29,440 KB
testcase_15 AC 48 ms
29,312 KB
testcase_16 AC 66 ms
37,376 KB
testcase_17 AC 69 ms
39,936 KB
testcase_18 AC 50 ms
30,080 KB
testcase_19 AC 67 ms
39,808 KB
testcase_20 AC 56 ms
32,640 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 69 ms
40,192 KB
testcase_37 AC 70 ms
40,308 KB
testcase_38 WA -
testcase_39 AC 68 ms
40,312 KB
testcase_40 AC 67 ms
40,064 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (332 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

module Program

open System

let solve a =
    let len = a |> Array.length
    let dp = Array.zeroCreate (len + 1)
    a |> Array.iter (fun a -> dp.[a] <- dp.[a-1] + 1)
    len - (dp |> Array.max)

let N = Console.ReadLine() |> ignore
let a = 
    Console.ReadLine().Split()
    |> Array.map int

solve a
|> Console.WriteLine
0