結果

問題 No.48 ロボットの操縦
ユーザー pypypymi
提出日時 2022-02-17 18:15:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-06-29 07:44:42
合計ジャッジ時間 2,047 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import math
count = 0
if y>=0:
    count = math.ceil(abs(y)/l)
else:
    count = math.ceil(abs(y)/l)+2

if x==0:
    print(count)
else:
    count+=math.ceil(abs(x)/l)
    count+=1
    print(count)
    
0