結果

問題 No.48 ロボットの操縦
ユーザー otsunekootsuneko
提出日時 2021-05-06 23:55:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 172 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 71,432 KB
最終ジャッジ日時 2023-10-12 16:10:24
合計ジャッジ時間 3,628 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,336 KB
testcase_01 AC 78 ms
71,416 KB
testcase_02 AC 77 ms
70,964 KB
testcase_03 AC 79 ms
71,156 KB
testcase_04 AC 78 ms
71,208 KB
testcase_05 AC 78 ms
71,356 KB
testcase_06 AC 79 ms
71,156 KB
testcase_07 AC 80 ms
71,276 KB
testcase_08 AC 79 ms
71,356 KB
testcase_09 AC 80 ms
71,208 KB
testcase_10 AC 79 ms
71,324 KB
testcase_11 AC 81 ms
71,176 KB
testcase_12 AC 81 ms
71,432 KB
testcase_13 AC 79 ms
71,280 KB
testcase_14 AC 80 ms
71,208 KB
testcase_15 AC 76 ms
71,148 KB
testcase_16 AC 79 ms
71,220 KB
testcase_17 AC 78 ms
71,192 KB
testcase_18 AC 77 ms
71,408 KB
testcase_19 AC 76 ms
70,996 KB
testcase_20 AC 77 ms
71,208 KB
testcase_21 AC 77 ms
71,152 KB
testcase_22 AC 79 ms
71,152 KB
testcase_23 AC 77 ms
71,176 KB
testcase_24 AC 79 ms
70,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 0
if Y < 0:
    ans += 2
elif X != 0:
    ans += 1

ans += (abs(X)+L-1)//L + (abs(Y)+L-1)//L
print(ans)
0