結果

問題 No.48 ロボットの操縦
ユーザー D4prog
提出日時 2016-05-30 20:54:19
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-21 18:43:02
合計ジャッジ時間 790 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, l = io.read("*n"), io.read("*n"), io.read("*n")
print(((y<0) and 2 or (x~=0) and 1 or 0) + math.ceil(math.abs(x)/l) + math.ceil(math.abs(y)/l))
0