結果

問題 No.48 ロボットの操縦
ユーザー pypypymipypypymi
提出日時 2022-02-17 18:06:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 1,348 ms
コンパイル使用メモリ 86,772 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-09-11 17:47:03
合計ジャッジ時間 3,972 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,416 KB
testcase_01 AC 73 ms
71,468 KB
testcase_02 AC 74 ms
71,200 KB
testcase_03 WA -
testcase_04 AC 74 ms
71,304 KB
testcase_05 AC 73 ms
71,252 KB
testcase_06 AC 73 ms
71,360 KB
testcase_07 AC 72 ms
71,012 KB
testcase_08 WA -
testcase_09 AC 73 ms
71,504 KB
testcase_10 WA -
testcase_11 AC 71 ms
71,156 KB
testcase_12 AC 72 ms
71,444 KB
testcase_13 AC 73 ms
71,172 KB
testcase_14 AC 72 ms
71,304 KB
testcase_15 AC 72 ms
71,308 KB
testcase_16 AC 73 ms
71,248 KB
testcase_17 AC 73 ms
71,436 KB
testcase_18 WA -
testcase_19 AC 71 ms
71,232 KB
testcase_20 AC 73 ms
71,460 KB
testcase_21 AC 73 ms
71,052 KB
testcase_22 WA -
testcase_23 AC 72 ms
71,368 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import math
count = 0
#count = math.ceil(abs(y)/l)
if y>=0:
    count = math.ceil(abs(y)/l)
else:
    count = math.ceil(abs(y)/l)+2

if x==0:
    print(count)
else:
    count+=math.ceil(abs(x)/l)+1
    print(count)
    
0