結果

問題 No.365 ジェンガソート
ユーザー はむ吉🐹はむ吉🐹
提出日時 2016-08-17 21:20:51
言語 F#
(F# 4.0)
結果
AC  
実行時間 374 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 7,643 ms
コンパイル使用メモリ 184,872 KB
実行使用メモリ 49,280 KB
最終ジャッジ日時 2024-04-25 08:25:33
合計ジャッジ時間 23,842 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 344 ms
33,960 KB
testcase_01 AC 351 ms
34,568 KB
testcase_02 AC 353 ms
34,660 KB
testcase_03 AC 346 ms
34,692 KB
testcase_04 AC 347 ms
34,728 KB
testcase_05 AC 349 ms
34,828 KB
testcase_06 AC 346 ms
34,604 KB
testcase_07 AC 351 ms
34,828 KB
testcase_08 AC 342 ms
34,600 KB
testcase_09 AC 343 ms
34,576 KB
testcase_10 AC 353 ms
34,720 KB
testcase_11 AC 345 ms
34,972 KB
testcase_12 AC 350 ms
34,684 KB
testcase_13 AC 351 ms
34,600 KB
testcase_14 AC 345 ms
34,728 KB
testcase_15 AC 346 ms
34,592 KB
testcase_16 AC 370 ms
45,540 KB
testcase_17 AC 374 ms
48,128 KB
testcase_18 AC 347 ms
35,940 KB
testcase_19 AC 367 ms
48,364 KB
testcase_20 AC 352 ms
38,996 KB
testcase_21 AC 353 ms
37,764 KB
testcase_22 AC 363 ms
45,056 KB
testcase_23 AC 358 ms
40,576 KB
testcase_24 AC 362 ms
44,672 KB
testcase_25 AC 351 ms
37,864 KB
testcase_26 AC 362 ms
42,752 KB
testcase_27 AC 368 ms
48,768 KB
testcase_28 AC 361 ms
43,264 KB
testcase_29 AC 367 ms
46,464 KB
testcase_30 AC 363 ms
43,008 KB
testcase_31 AC 357 ms
38,736 KB
testcase_32 AC 351 ms
38,552 KB
testcase_33 AC 372 ms
48,768 KB
testcase_34 AC 352 ms
37,652 KB
testcase_35 AC 363 ms
44,800 KB
testcase_36 AC 369 ms
49,280 KB
testcase_37 AC 368 ms
49,024 KB
testcase_38 AC 370 ms
49,152 KB
testcase_39 AC 371 ms
48,896 KB
testcase_40 AC 367 ms
49,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (265 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 #

let minNumOfOps = List.foldBack (fun x t -> if x = t then t - 1 else t)

let () = 
    let n = stdin.ReadLine() |> int
    let xs = stdin.ReadLine().Split(' ') |> Array.map int |> List.ofArray
    in minNumOfOps xs n |> printfn "%d"
0