結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-15 23:53:00 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 5,000 ms |
| コード長 | 156 bytes |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-21 18:28:33 |
| 合計ジャッジ時間 | 3,228 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
コンパイルメッセージ
Syntax OK
ソースコード
x = gets.to_f y = gets.to_f l = gets.to_i command = (x.abs / l).ceil + (y.abs / l).ceil if y < 0 command += 2 elsif x != 0 command += 1 end puts command