結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
piconic_X
|
| 提出日時 | 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 in let dl = ad / l in if dl * l = ad then dl else dl + 1 let () = let x = read_int () in let y = read_int () in let l = read_int () in let rotx = if x = 0 then 0 else 1 in let roty = if y = 0 then 0 else if y > 0 then 0 else if rotx <> 0 then 1 else 2 in print_int ((opert x l) + (opert y l) + rotx + roty); print_endline "\n"
piconic_X