結果

問題 No.48 ロボットの操縦
ユーザー 163x bee.163x bee.
提出日時 2021-07-20 00:45:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-09-24 12:44:15
合計ジャッジ時間 1,858 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,792 KB
testcase_01 AC 16 ms
7,776 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,852 KB
testcase_05 AC 15 ms
7,876 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 16 ms
7,904 KB
testcase_13 WA -
testcase_14 AC 16 ms
7,840 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

count = 0

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

co_x = -(-X // L)
co_y = -(-Y // L)

if co_x < 0:
    co_x = -(co_x * 1)
elif co_y < 0:
    co_y = -(co_y * 1)
    
count2 = count + co_x + co_y

print(count2) 
0