結果

問題 No.48 ロボットの操縦
ユーザー kisaragi211
提出日時 2018-01-12 23:54:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 21,120 KB
最終ジャッジ日時 2024-12-24 00:54:09
合計ジャッジ時間 8,294 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 7 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

X = abs(int(input()))
Y = abs(int(input()))
L = int(input())
count_x = count_y = x = y = 0
while X > x:
    count_x += 1
    x += L
while Y > y:
    count_y += 1
    y += L
if X==0 or Y==0:
    print(count_x+count_y)
else:
    print(count_x+count_y+1)
0