結果

問題 No.504 ゲーム大会(ランキング)
ユーザー nobigomu
提出日時 2018-06-04 01:47:49
言語 F#
(F# 4.0)
結果
AC  
実行時間 699 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 6,891 ms
コンパイル使用メモリ 184,840 KB
実行使用メモリ 47,948 KB
最終ジャッジ日時 2024-06-30 09:30:52
合計ジャッジ時間 15,925 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (233 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 p,r = printfn "%d",stdin.ReadLine >> int
let rec iter n a i =
    if n>1 then
        let t = if a<(r ()) then i+1 else i
        p t
        iter (n-1) a t
let f a =
    p a
    iter (r ()) (r ()) a
f 1
0