結果

問題 No.48 ロボットの操縦
ユーザー Beginer_
提出日時 2025-05-07 22:47:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2025-05-07 22:47:28
合計ジャッジ時間 2,264 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

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

def step(X, Y, L):
	count= 0
	
	if X != 0:
		count += 1
		count += math.ceil(abs(X)/L)
	
	if Y != 0:
		if Y < 0:
			count += 2
		count += math.ceil(abs(Y)/L)	
	
	return print (count)
	
step(X, Y, L)
0