結果

問題 No.706 多眼生物の調査
ユーザー natoriusannatoriusan
提出日時 2023-07-30 12:03:18
言語 F#
(F# 4.0)
結果
AC  
実行時間 382 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 11,390 ms
コンパイル使用メモリ 184,392 KB
実行使用メモリ 36,124 KB
最終ジャッジ日時 2024-04-17 13:22:13
合計ジャッジ時間 12,601 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 345 ms
35,472 KB
testcase_01 AC 344 ms
35,340 KB
testcase_02 AC 343 ms
35,596 KB
testcase_03 AC 348 ms
35,280 KB
testcase_04 AC 348 ms
35,540 KB
testcase_05 AC 358 ms
36,044 KB
testcase_06 AC 382 ms
36,124 KB
testcase_07 AC 345 ms
35,336 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (261 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 n = stdin.ReadLine () |> int

let s =
    [|
        for _ in 0..n-1 ->
            stdin.ReadLine () |> String.length |> ((+)(-2))
    |]
    
let count = [|0..Array.max s|] |> Array.map (fun x -> s |> Array.filter ((=)x) |> Array.length)

Array.findIndexBack ((=)(Array.max count)) count |> printfn "%d"
0