結果

問題 No.48 ロボットの操縦
ユーザー kkron4221
提出日時 2019-01-19 12:09:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,696 KB
最終ジャッジ日時 2024-07-16 01:06:23
合計ジャッジ時間 6,685 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 1 TLE * 1 -- * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

x = abs(int(input()))
y = abs(int(input()))
k = int(input())
count = 0
x_move, y_move = 0, 0
while x > 0:
    count = count + 1
    x_move = 1
    x = x - k
while y > 0:
    count = count + 1
    y_move = 1
    y = y -k
# move direction
if x_move * y_move == 1:
    count = count + 1
print(count)
0