結果

問題 No.48 ロボットの操縦
ユーザー kohei2019
提出日時 2021-03-16 12:25:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 647 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-11-07 22:53:25
合計ジャッジ時間 2,196 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

X = int(input())
Y = int(input())
L = int(input())

cnt = 0
if Y < 0:
    cnt += 2
    cnt += -(Y//L)
elif Y > 0:
    cnt += -(-Y//L)

if X != 0:
    cnt += 1
    cnt += -(-abs(X)//L)
print(cnt)
0