結果

問題 No.98 円を描こう
ユーザー mkawa2mkawa2
提出日時 2019-12-19 22:38:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 467 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,928 KB
実行使用メモリ 9,064 KB
最終ジャッジ日時 2023-09-21 07:34:19
合計ジャッジ時間 1,093 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,900 KB
testcase_01 AC 21 ms
8,936 KB
testcase_02 AC 21 ms
8,884 KB
testcase_03 AC 20 ms
9,036 KB
testcase_04 AC 20 ms
9,064 KB
testcase_05 AC 20 ms
8,984 KB
testcase_06 AC 20 ms
9,060 KB
testcase_07 AC 20 ms
8,912 KB
testcase_08 AC 20 ms
9,064 KB
testcase_09 AC 20 ms
8,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    x,y=MI()
    x,y=Decimal(x),Decimal(y)
    r=(x*x+y*y).sqrt()*2+1
    r=r.quantize(Decimal("0"),rounding=ROUND_FLOOR)
    print(r)

main()
0