結果

問題 No.48 ロボットの操縦
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-04-02 08:00:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,780 KB
最終ジャッジ日時 2023-09-10 10:22:39
合計ジャッジ時間 3,513 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 72 ms
71,312 KB
testcase_02 AC 73 ms
71,168 KB
testcase_03 AC 72 ms
71,448 KB
testcase_04 AC 72 ms
71,248 KB
testcase_05 AC 71 ms
71,164 KB
testcase_06 WA -
testcase_07 AC 71 ms
71,296 KB
testcase_08 AC 70 ms
71,408 KB
testcase_09 AC 71 ms
71,632 KB
testcase_10 AC 73 ms
71,780 KB
testcase_11 AC 72 ms
71,668 KB
testcase_12 AC 70 ms
71,700 KB
testcase_13 AC 70 ms
71,404 KB
testcase_14 AC 70 ms
71,364 KB
testcase_15 AC 71 ms
71,380 KB
testcase_16 AC 71 ms
71,336 KB
testcase_17 AC 71 ms
71,560 KB
testcase_18 AC 69 ms
71,296 KB
testcase_19 AC 70 ms
71,568 KB
testcase_20 AC 70 ms
71,332 KB
testcase_21 AC 71 ms
71,396 KB
testcase_22 AC 71 ms
71,512 KB
testcase_23 AC 75 ms
71,404 KB
testcase_24 AC 73 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math


x = int(input())
y = int(input())
l = int(input())

if x == 0 and y == 0:
    cnt = 0
elif y > 0:
    cnt = 1
else:
    cnt = 2

print(math.ceil(abs(x)/l)+math.ceil(abs(y)/l)+cnt)
0