結果

問題 No.48 ロボットの操縦
ユーザー TK
提出日時 2023-09-20 14:38:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-06 09:49:22
合計ジャッジ時間 1,463 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

X = int(input())
Y = int(input())
L = int(input())
def need(a,b):
    if a%b == 0:
        return abs(a//b)
    else:
        return abs(a//b)+1
c = need(X,L)+need(Y,L)
sum = 0
if X != 0 and Y != 0:
    sum += 1
else:
    sum += 0
ans = c+sum
print(ans)
0