結果

問題 No.98 円を描こう
ユーザー rsk0315rsk0315
提出日時 2019-03-04 21:34:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 167 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 8,920 KB
最終ジャッジ日時 2023-09-05 18:33:14
合計ジャッジ時間 1,131 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,796 KB
testcase_01 AC 21 ms
8,872 KB
testcase_02 AC 20 ms
8,768 KB
testcase_03 AC 20 ms
8,920 KB
testcase_04 AC 20 ms
8,752 KB
testcase_05 AC 21 ms
8,744 KB
testcase_06 AC 21 ms
8,752 KB
testcase_07 AC 21 ms
8,744 KB
testcase_08 AC 21 ms
8,864 KB
testcase_09 AC 20 ms
8,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal, getcontext

getcontext().prec = 40

x, y = map(Decimal, input().split())
r = (2*(x*x + y*y).sqrt()+1).to_integral('ROUND_FLOOR')
print(r)
0