結果

問題 No.45 回転寿司
ユーザー regerege
提出日時 2015-10-13 21:32:36
言語 F#
(F# 4.0)
結果
AC  
実行時間 433 ms / 5,000 ms
コード長 199 bytes
コンパイル時間 18,600 ms
コンパイル使用メモリ 188,916 KB
実行使用メモリ 35,100 KB
最終ジャッジ日時 2024-12-27 12:23:30
合計ジャッジ時間 35,434 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (546 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 #

    stdin.ReadLine() |> ignore
    let l = stdin.ReadLine().Split([|' '|]) |> Seq.map (int) |> Seq.toList
    let f = List.fold (fun (a,b) n -> (max a (b+n)),a) (0,0)
    printfn "%d" <| (f >> fst) l
0