結果

問題 No.48 ロボットの操縦
ユーザー matriematrie
提出日時 2020-11-24 12:47:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 226 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-10-01 00:51:51
合計ジャッジ時間 1,650 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 16 ms
7,772 KB
testcase_03 AC 16 ms
7,928 KB
testcase_04 RE -
testcase_05 WA -
testcase_06 WA -
testcase_07 RE -
testcase_08 AC 15 ms
7,808 KB
testcase_09 RE -
testcase_10 AC 15 ms
7,776 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 15 ms
7,852 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 16 ms
7,920 KB
testcase_23 RE -
testcase_24 AC 15 ms
7,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#方向転換
step = 2
if y>0: steps -= 1
if x==0 and y>0: step -= 1

#真っ直ぐ
step += abs(int(x/l)) + abs(int(y/l))
if x%l>0: step += 1
if y%l>0:	step += 1

print(step)
0