結果

問題 No.48 ロボットの操縦
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-04-02 00:06:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-09-09 20:24:15
合計ジャッジ時間 3,720 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 70 ms
70,984 KB
testcase_02 AC 67 ms
71,436 KB
testcase_03 AC 68 ms
71,416 KB
testcase_04 AC 69 ms
71,248 KB
testcase_05 WA -
testcase_06 AC 69 ms
71,248 KB
testcase_07 AC 69 ms
71,236 KB
testcase_08 AC 69 ms
71,196 KB
testcase_09 AC 69 ms
71,320 KB
testcase_10 AC 69 ms
70,960 KB
testcase_11 AC 69 ms
71,124 KB
testcase_12 AC 69 ms
71,336 KB
testcase_13 AC 69 ms
71,392 KB
testcase_14 AC 70 ms
71,344 KB
testcase_15 AC 67 ms
71,428 KB
testcase_16 AC 69 ms
71,044 KB
testcase_17 AC 68 ms
71,204 KB
testcase_18 AC 67 ms
71,404 KB
testcase_19 AC 68 ms
71,288 KB
testcase_20 AC 69 ms
71,220 KB
testcase_21 AC 69 ms
70,900 KB
testcase_22 AC 68 ms
71,080 KB
testcase_23 AC 68 ms
71,200 KB
testcase_24 AC 68 ms
71,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math


c = [int(input()) for _ in range(2)]
l = int(input())

flag = 2 if c[1] < 0 else 1
print(math.ceil(abs(c[0])/l)+math.ceil(abs(c[1])/l)+flag)
0