結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-14 12:39:24 |
| 言語 | OCaml (5.4.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 22,800 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-25 04:55:27 |
| 合計ジャッジ時間 | 1,152 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
Scanf.scanf "%d %d %d" (fun x y l ->
let ll k = (abs k + l - 1) / l in
Printf.printf "%d\n" @@
match y >= 0, x = 0 with
| true, true -> ll y
| true, false -> ll y + 1 + ll x
| false, true -> 1 + 1 + ll y
| false, false -> 1 + ll x + 1 + ll y
)