結果

問題 No.98 円を描こう
ユーザー zyxwzyxw
提出日時 2020-10-16 15:34:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 513 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 8,400 KB
最終ジャッジ日時 2023-09-28 02:01:13
合計ジャッジ時間 1,395 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
8,400 KB
testcase_01 AC 13 ms
8,280 KB
testcase_02 AC 13 ms
8,268 KB
testcase_03 AC 13 ms
8,196 KB
testcase_04 AC 13 ms
8,396 KB
testcase_05 AC 12 ms
8,340 KB
testcase_06 AC 13 ms
8,392 KB
testcase_07 AC 13 ms
8,344 KB
testcase_08 AC 13 ms
8,368 KB
testcase_09 AC 12 ms
8,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

nums=input().split()
a=int(nums[0])
b=int(nums[1])
c=(a**2+b**2)**(1/2)
import math
ans=math.ceil(c*2)
if (ans/2)**2==c**2:
    print(ans+1)
else:
    print(ans)
0