結果

問題 No.48 ロボットの操縦
ユーザー ktshunktshun
提出日時 2015-05-31 16:41:57
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 18:21:36
合計ジャッジ時間 1,307 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import math
if __name__ == "__main__":
	x = input()
	y = input()
	l = float(input())
	ans = math.ceil(abs(x) / l) + math.ceil(abs(y) / l)
	if y < 0:
		ans += 2
	elif x != 0:
		ans += 1
	print int(ans)
0