結果

問題 No.48 ロボットの操縦
ユーザー pessimist
提出日時 2025-06-16 14:34:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 144 bytes
コンパイル時間 597 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-06-16 14:34:16
合計ジャッジ時間 2,631 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read=sys.stdin.buffer.read

X,Y,L=map(int,read().split())
ANS=(abs(X)+L-1)//L+(abs(Y)+L-1)//L
if Y<0:ANS+=2
if X!=0:ANS+=1
print(ANS)
0