結果

問題 No.48 ロボットの操縦
ユーザー kotatsu
提出日時 2023-08-18 11:36:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-27 16:15:26
合計ジャッジ時間 2,037 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

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

A = (abs(X)//L) + (abs(X)%L)

B = (abs(Y)//L) + (abs(Y)%L)

if X*Y<0:
    if Y<0:
        C =2
    else:
        C =1
else:
    C = 1

print(A+B+C)
0