結果

問題 No.98 円を描こう
ユーザー QWjoBSPe2OhZBaaQWjoBSPe2OhZBaa
提出日時 2018-12-09 19:59:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 145 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 29,636 KB
最終ジャッジ日時 2023-10-14 21:48:13
合計ジャッジ時間 2,280 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
29,492 KB
testcase_01 AC 139 ms
29,388 KB
testcase_02 AC 137 ms
29,540 KB
testcase_03 AC 141 ms
29,472 KB
testcase_04 AC 139 ms
29,332 KB
testcase_05 AC 140 ms
29,456 KB
testcase_06 AC 138 ms
29,412 KB
testcase_07 AC 139 ms
29,636 KB
testcase_08 AC 139 ms
29,344 KB
testcase_09 AC 136 ms
29,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
x,y=map(int,input().split())
r2=(x**2+y**2)
r=np.sqrt(r2)
rs=r/1
if rs==r:
    print(int(rs*2 + 1))
else:
    print(int(rs*2))
0