結果

問題 No.349 干支の置き物
ユーザー ichibanshiboriichibanshibori
提出日時 2016-04-29 19:20:06
言語 F#
(F# 4.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 8,390 ms
コンパイル使用メモリ 192,772 KB
実行使用メモリ 31,872 KB
最終ジャッジ日時 2024-04-28 14:47:41
合計ジャッジ時間 11,908 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
31,488 KB
testcase_01 AC 78 ms
31,232 KB
testcase_02 AC 75 ms
31,588 KB
testcase_03 AC 78 ms
31,872 KB
testcase_04 AC 79 ms
31,732 KB
testcase_05 AC 76 ms
31,232 KB
testcase_06 AC 78 ms
31,360 KB
testcase_07 AC 75 ms
31,616 KB
testcase_08 AC 79 ms
31,732 KB
testcase_09 AC 82 ms
31,488 KB
testcase_10 AC 75 ms
31,736 KB
testcase_11 AC 77 ms
31,360 KB
testcase_12 AC 75 ms
31,744 KB
testcase_13 AC 79 ms
31,616 KB
testcase_14 AC 74 ms
31,744 KB
testcase_15 AC 75 ms
31,720 KB
testcase_16 AC 75 ms
31,616 KB
testcase_17 AC 76 ms
31,488 KB
testcase_18 AC 75 ms
31,488 KB
testcase_19 AC 77 ms
31,488 KB
testcase_20 AC 75 ms
31,744 KB
testcase_21 AC 74 ms
31,732 KB
testcase_22 AC 78 ms
31,484 KB
testcase_23 AC 77 ms
31,744 KB
testcase_24 AC 80 ms
31,736 KB
testcase_25 AC 82 ms
31,232 KB
testcase_26 AC 78 ms
31,616 KB
testcase_27 AC 79 ms
31,744 KB
testcase_28 AC 82 ms
31,744 KB
testcase_29 AC 81 ms
31,488 KB
testcase_30 AC 80 ms
31,488 KB
testcase_31 AC 79 ms
31,744 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (197 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 #

open System

let judgeEto inseq =
    let maxNum = int (ceil (float (Seq.length inseq) / 2.))
    inseq |> Seq.groupBy id |> Seq.map (fun (key, gseq) -> Seq.length gseq) |>
    Seq.max |> (fun nmax -> nmax <= maxNum)

let N = Console.ReadLine () |> int
[for _ in 1..N -> Console.ReadLine ()] |> Seq.ofList |>
judgeEto |>
(function true -> "YES" | false -> "NO") |> printfn "%s"
0