結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2016-05-30 20:53:29 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 121 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-21 18:43:00 |
合計ジャッジ時間 | 912 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
x, y, l = io.read("*n"), io.read("*n"), io.read("*n")fw = function(n) return math.ceil(math.abs(n)/l) endprint(((y<0) and 2 or (x~=0) and 1 or 0) + fw(x) + fw(y))