結果

問題 No.98 円を描こう
ユーザー 👑 colognecologne
提出日時 2022-02-02 15:21:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 71,508 KB
最終ジャッジ日時 2023-09-02 02:48:31
合計ジャッジ時間 1,812 ms
ジャッジサーバーID
(参考情報)
judge16 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,344 KB
testcase_01 AC 72 ms
71,276 KB
testcase_02 AC 72 ms
71,296 KB
testcase_03 AC 74 ms
71,264 KB
testcase_04 AC 73 ms
71,256 KB
testcase_05 AC 75 ms
71,480 KB
testcase_06 AC 74 ms
71,364 KB
testcase_07 AC 74 ms
71,508 KB
testcase_08 AC 72 ms
71,356 KB
testcase_09 AC 74 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math


def input(): return sys.stdin.readline().rstrip()


def main():
    xp, yp = map(int, input().split())
    R = math.sqrt(xp**2+yp**2)
    print(math.floor(2*R)+1)


if __name__ == '__main__':
    main()
0