結果

問題 No.98 円を描こう
ユーザー ktshunktshun
提出日時 2015-05-29 22:06:19
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 6,696 KB
実行使用メモリ 6,140 KB
最終ジャッジ日時 2023-09-20 16:05:53
合計ジャッジ時間 797 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,068 KB
testcase_01 AC 12 ms
6,072 KB
testcase_02 AC 12 ms
6,068 KB
testcase_03 AC 11 ms
6,072 KB
testcase_04 AC 11 ms
5,888 KB
testcase_05 AC 11 ms
6,140 KB
testcase_06 WA -
testcase_07 AC 11 ms
6,012 KB
testcase_08 AC 11 ms
5,940 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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