結果

問題 No.48 ロボットの操縦
ユーザー Luoto-green
提出日時 2017-07-03 18:10:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-05 12:29:29
合計ジャッジ時間 1,520 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
x = int(input())
y = int(input())
c = int(input())
cou = 0
if y >= 0 and x == 0:
    cou += 0
elif y >= 0 and x != 0:
    cou += 1
elif y < 0:
    cou += 2
a = math.ceil((abs(x)+abs(y))/c)
print(a+cou)
0