結果

問題 No.98 円を描こう
ユーザー utsumidaisukeutsumidaisuke
提出日時 2018-12-13 12:22:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 440 ms / 5,000 ms
コード長 144 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 11,724 KB
実行使用メモリ 42,212 KB
最終ジャッジ日時 2023-10-25 09:19:07
合計ジャッジ時間 6,074 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 426 ms
42,208 KB
testcase_01 AC 435 ms
42,212 KB
testcase_02 AC 433 ms
42,208 KB
testcase_03 AC 436 ms
42,212 KB
testcase_04 AC 433 ms
42,208 KB
testcase_05 AC 440 ms
42,212 KB
testcase_06 AC 436 ms
42,212 KB
testcase_07 AC 435 ms
42,212 KB
testcase_08 AC 440 ms
42,212 KB
testcase_09 AC 434 ms
42,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

x, y = map(int,input().split())
r = np.sqrt(x**2+y**2)
if 2*r == int(2*r):
    print(int(2*r+1))
else:
    print(int(2*r)+1)
0