結果

問題 No.98 円を描こう
ユーザー convexineqconvexineq
提出日時 2020-12-03 07:35:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 279 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 86,604 KB
実行使用メモリ 71,132 KB
最終ジャッジ日時 2023-10-11 16:29:49
合計ジャッジ時間 1,904 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,008 KB
testcase_01 AC 76 ms
71,092 KB
testcase_02 AC 75 ms
71,004 KB
testcase_03 AC 76 ms
70,944 KB
testcase_04 AC 76 ms
71,116 KB
testcase_05 AC 74 ms
71,132 KB
testcase_06 AC 77 ms
70,756 KB
testcase_07 AC 75 ms
70,756 KB
testcase_08 AC 76 ms
71,096 KB
testcase_09 AC 77 ms
71,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import sys
read = sys.stdin.read
readline = sys.stdin.readline

x,y = map(int,readline().split())

v = 4*(x*x+y*y)
ng = 0
ok = 10**9
while ok-ng > 1:
    mid = (ok+ng)//2
    if mid**2 > v:
        ok = mid
    else:
        ng = mid
print(ok)

0