結果
問題 |
No.477 MVP
|
ユーザー |
![]() |
提出日時 | 2018-07-31 19:16:05 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 6,752 ms |
コンパイル使用メモリ | 191,320 KB |
実行使用メモリ | 34,880 KB |
最終ジャッジ日時 | 2024-09-19 16:37:07 |
合計ジャッジ時間 | 12,038 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 3 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (236 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/
ソースコード
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"