結果

問題 No.48 ロボットの操縦
ユーザー KudeKude
提出日時 2020-09-06 23:28:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 82,076 KB
実行使用メモリ 53,544 KB
最終ジャッジ日時 2024-05-06 21:39:23
合計ジャッジ時間 2,393 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 39 ms
52,636 KB
testcase_02 AC 42 ms
53,380 KB
testcase_03 AC 39 ms
52,004 KB
testcase_04 AC 42 ms
52,336 KB
testcase_05 WA -
testcase_06 AC 39 ms
52,460 KB
testcase_07 AC 46 ms
52,352 KB
testcase_08 AC 40 ms
52,948 KB
testcase_09 AC 40 ms
52,748 KB
testcase_10 AC 38 ms
52,608 KB
testcase_11 AC 39 ms
51,940 KB
testcase_12 AC 39 ms
52,128 KB
testcase_13 AC 39 ms
52,092 KB
testcase_14 AC 39 ms
52,608 KB
testcase_15 AC 39 ms
52,164 KB
testcase_16 AC 39 ms
52,512 KB
testcase_17 AC 39 ms
53,080 KB
testcase_18 AC 39 ms
53,316 KB
testcase_19 AC 39 ms
53,496 KB
testcase_20 AC 39 ms
52,028 KB
testcase_21 AC 38 ms
52,472 KB
testcase_22 AC 40 ms
53,544 KB
testcase_23 AC 39 ms
52,592 KB
testcase_24 AC 38 ms
52,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x = int(input())
y = int(input())
l = int(input())
x = abs(x)
ans = 0
if y < 0:
    ans += 1
    x, y = -y, x
ans += (y + l - 1) // l + 1 + (x + l - 1) // l
print(ans)
0