結果

問題 No.477 MVP
ユーザー taktak
提出日時 2018-07-31 19:16:05
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 9,396 ms
コンパイル使用メモリ 188,668 KB
実行使用メモリ 36,128 KB
最終ジャッジ日時 2023-10-19 20:32:23
合計ジャッジ時間 15,052 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 350 ms
36,128 KB
testcase_01 AC 348 ms
36,128 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 349 ms
36,128 KB
testcase_05 WA -
testcase_06 AC 348 ms
36,128 KB
testcase_07 AC 347 ms
36,128 KB
testcase_08 AC 348 ms
35,680 KB
testcase_09 AC 347 ms
36,128 KB
testcase_10 AC 349 ms
35,644 KB
testcase_11 AC 349 ms
36,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (250 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

let (|Divisible|Indivisible|) (a,b) =
    match a % b with
    | 0L -> Divisible   (a / b)
    | _  -> Indivisible (a / b + 1L)

let N, K =
    let t = stdin.ReadLine().Split() |> Array.map int64
    t.[0], t.[1]
    
let ans =
    match (N, K + 1L) with
    | Divisible   x -> x
    | Indivisible x -> x
    
ans |> printfn "%i"
0