結果

問題 No.98 円を描こう
ユーザー lloyzlloyz
提出日時 2023-07-07 00:02:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 175 bytes
コンパイル時間 1,343 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-09-28 00:47:53
合計ジャッジ時間 3,014 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,272 KB
testcase_01 AC 72 ms
71,136 KB
testcase_02 AC 74 ms
71,428 KB
testcase_03 AC 73 ms
71,136 KB
testcase_04 AC 73 ms
71,024 KB
testcase_05 AC 75 ms
71,164 KB
testcase_06 AC 73 ms
71,176 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y = map(int, input().split())
l, r = 0, 20001
while r - l > 1:
    mid = (l + r) // 2
    if (mid / 2)**2 > x**2 + y**2:
        r = mid
    else:
        l = mid
print(r)
0