結果

問題 No.48 ロボットの操縦
ユーザー pypypymi
提出日時 2022-02-24 14:25:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 212 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-07-02 12:30:57
合計ジャッジ時間 2,106 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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

count= 0
count+=math.ceil(abs(x)/l)
count+=math.ceil(abs(y)/l)
if y>=0 and x!=0:
    count+=1
elif y<0 and x!=0:
    count+=2
print(count)
    
    
0