結果

問題 No.1139 Slime Race
ユーザー eSeF
提出日時 2020-07-31 16:26:33
言語 F#
(F# 4.0)
結果
AC  
実行時間 374 ms / 2,000 ms
コード長 542 bytes
コンパイル時間 14,646 ms
コンパイル使用メモリ 197,056 KB
実行使用メモリ 54,912 KB
最終ジャッジ日時 2024-07-02 08:11:11
合計ジャッジ時間 24,695 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (375 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 R T = stdin.ReadLine()|> T
let RS T = stdin.ReadLine().Split()|>Array.map T
let R2 T U = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U)
let R3 T U V = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U),(c.[2]|>V)
let R4 T U V W = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U),(c.[2]|>V),(c.[3]|>W)
let R5 T U V W X = RS string|>fun c-> (c.[0]|>T),(c.[1]|>U),(c.[2]|>V),(c.[3]|>W),(c.[4]|>X)
[<EntryPoint>]
let main argv =
    let N,D=R2 int int64
    let _ = RS int
    RS int64
    |>Array.sum
    |>fun c -> ((D+c-1L)/c)
    |>printfn "%d"
    0
0