結果

問題 No.48 ロボットの操縦
ユーザー 67oYG9nh2YMmIci67oYG9nh2YMmIci
提出日時 2020-06-25 21:05:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 235 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 29,576 KB
最終ジャッジ日時 2023-09-16 22:59:43
合計ジャッジ時間 5,132 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
29,512 KB
testcase_01 AC 141 ms
29,540 KB
testcase_02 AC 137 ms
29,500 KB
testcase_03 AC 136 ms
29,576 KB
testcase_04 AC 138 ms
29,412 KB
testcase_05 AC 137 ms
29,408 KB
testcase_06 AC 136 ms
29,556 KB
testcase_07 AC 136 ms
29,420 KB
testcase_08 AC 137 ms
29,464 KB
testcase_09 AC 137 ms
29,444 KB
testcase_10 AC 137 ms
29,328 KB
testcase_11 AC 137 ms
29,412 KB
testcase_12 AC 136 ms
29,464 KB
testcase_13 AC 134 ms
29,552 KB
testcase_14 AC 136 ms
29,552 KB
testcase_15 AC 134 ms
29,504 KB
testcase_16 AC 137 ms
29,488 KB
testcase_17 AC 139 ms
29,452 KB
testcase_18 AC 140 ms
29,492 KB
testcase_19 AC 138 ms
29,488 KB
testcase_20 AC 138 ms
29,484 KB
testcase_21 AC 139 ms
29,340 KB
testcase_22 AC 140 ms
29,544 KB
testcase_23 AC 141 ms
29,536 KB
testcase_24 AC 137 ms
29,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
X=int(input())
Y=int(input())
L=int(input())
order=0
if X==0 and Y==0:
    pass
elif Y<0:
    order+=2
elif X==0:
    pass
else:
    order+=1
order+=int(np.ceil(abs(X)/L)+np.ceil(abs(Y)/L))
print(order)
0