結果

問題 No.98 円を描こう
ユーザー ktshun
提出日時 2015-05-29 22:06:18
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,528 KB
最終ジャッジ日時 2024-07-06 11:11:13
合計ジャッジ時間 655 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 4 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import math

if __name__ == "__main__":
	x,y = map(int,raw_input().split())
	dist = math.sqrt(x ** 2 + y ** 2)
	if dist == int(dist):
		print int(dist * 2 +1)
	else:
		dist = round(dist,0)
		print int(dist * 2)
0