結果

問題 No.48 ロボットの操縦
コンテスト
ユーザー vjudge1
提出日時 2026-11-23 18:12:58
言語 Python3
(3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 225 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 53 ms
コンパイル使用メモリ 14,720 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2026-11-23 18:13:01
合計ジャッジ時間 2,646 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

t=0
if (y<0):
    t+=2
    y*=-1
    if (x<0):
        x*=-1
elif (x<0):
    t+=1
    x*=-1
x=x/l
y=y/l
if x!=int(x):
    t+=1
t+=int(x)
if y!=int(y):
    t+=1
t+=int(y)

print(t)
0