結果

問題 No.48 ロボットの操縦
ユーザー sikamasikama
提出日時 2017-03-05 02:30:52
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 192 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 6,652 KB
実行使用メモリ 11,792 KB
最終ジャッジ日時 2023-09-05 05:49:13
合計ジャッジ時間 7,855 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
11,792 KB
testcase_01 AC 11 ms
5,816 KB
testcase_02 AC 11 ms
5,948 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

X=int(raw_input())
Y=int(raw_input())
L=int(raw_input())

Xabs=abs(X)
Yabs=abs(Y)

m=0
n=0

while Xabs>m*L:
    m+=1
while Yabs>n*L:
    n+=1

a=m+n
if Y<0:
    a+=2
if X!=0:
    a+=1
print(a)
0