結果

問題 No.46 はじめのn歩
コンテスト
ユーザー Amsterdam D
提出日時 2022-04-15 13:58:33
言語 OCaml
(5.4.1)
コンパイル:
ocamlfind ocamlopt -linkpkg -package zarith,str _filename_ -o a.out
実行:
./a.out
結果
WA  
実行時間 -
コード長 297 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 582 ms
コンパイル使用メモリ 22,796 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-30 14:28:26
合計ジャッジ時間 916 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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