結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2015-11-16 01:58:54 |
言語 | OCaml (5.2.1) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 190 ms |
コンパイル使用メモリ | 19,564 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 23:43:20 |
合計ジャッジ時間 | 907 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 25 |
ソースコード
let opert d l =let ad = abs d inlet dl = ad / l inif dl * l = ad then dlelse dl + 1let () =let x = read_int () inlet y = read_int () inlet l = read_int () inlet rotx = if x = 0 then 0 else 1 inlet roty = if y = 0 then 0 else if y > 0 then 0 else if rotx <> 0 then 1 else 2 inprint_int ((opert x l) + (opert y l) + rotx + roty);print_endline "\n"