結果

問題 No.48 ロボットの操縦
ユーザー yumenomatayume
提出日時 2020-04-02 08:00:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-06-28 01:47:29
合計ジャッジ時間 2,118 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import math


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

if x == 0 and y == 0:
    cnt = 0
elif y > 0:
    cnt = 1
else:
    cnt = 2

print(math.ceil(abs(x)/l)+math.ceil(abs(y)/l)+cnt)
0