結果

問題 No.48 ロボットの操縦
ユーザー hanorverhanorver
提出日時 2017-06-13 21:28:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 199 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-24 17:00:36
合計ジャッジ時間 1,610 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

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

ans = 0
ans += math.ceil(abs(x) / l) + math.ceil(abs(y) / l)

if y < 0:
    ans += 2
else:
    if x != 0:
        ans += 1

print(ans)
0