結果

問題 No.48 ロボットの操縦
ユーザー pypypymipypypymi
提出日時 2022-02-17 18:01:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 71,548 KB
最終ジャッジ日時 2023-09-11 17:46:23
合計ジャッジ時間 3,668 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,548 KB
testcase_01 AC 70 ms
71,264 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 71 ms
71,196 KB
testcase_05 AC 69 ms
71,120 KB
testcase_06 AC 69 ms
71,456 KB
testcase_07 AC 69 ms
71,216 KB
testcase_08 WA -
testcase_09 AC 69 ms
71,380 KB
testcase_10 WA -
testcase_11 AC 68 ms
71,528 KB
testcase_12 AC 69 ms
71,224 KB
testcase_13 AC 69 ms
71,448 KB
testcase_14 AC 69 ms
71,264 KB
testcase_15 AC 70 ms
71,212 KB
testcase_16 AC 69 ms
71,448 KB
testcase_17 AC 69 ms
71,332 KB
testcase_18 WA -
testcase_19 AC 68 ms
71,348 KB
testcase_20 AC 70 ms
71,216 KB
testcase_21 AC 69 ms
71,340 KB
testcase_22 WA -
testcase_23 AC 69 ms
71,532 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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