結果

問題 No.48 ロボットの操縦
ユーザー shamioshamio
提出日時 2020-06-01 20:19:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-22 08:08:43
合計ジャッジ時間 1,742 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

x = int(input())
y = int(input())
l = int(input())

ans = 0
x = max(x, -x)
if y < 0:
    y = -y
    ans += 1

ans += (x + l - 1) // l + (y + l - 1) // l
ans += x != 0
print(ans)
0