結果

問題 No.46 はじめのn歩
ユーザー Amsterdam D
提出日時 2022-04-15 13:58:33
言語 OCaml
(5.2.1)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 1,464 ms
コンパイル使用メモリ 21,552 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 19:57:23
合計ジャッジ時間 2,091 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

let pr = fun x -> Printf.printf "%d" x in
Scanf.scanf "%f %f" (fun x y -> let a = y /. x in
                             match a with
                             | a when int_of_float y mod int_of_float x = 0 -> pr ((int_of_float a) + 1)
                             | _ -> (pr (int_of_float a)))
0