結果

問題 No.48 ロボットの操縦
ユーザー ckawatakckawatak
提出日時 2017-07-01 19:04:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-15 08:06:50
合計ジャッジ時間 1,803 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

count = (abs(X)+abs(Y)+2*L-2)//L
if 0 <= Y and X != 0:
    count += 1
elif Y < 0:
    count += 2
else:
    count = (abs(Y)+L-1)//L
print(count)
0