結果

問題 No.98 円を描こう
ユーザー akanayaakanaya
提出日時 2020-03-26 11:00:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 272 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 29,588 KB
最終ジャッジ日時 2023-08-30 12:12:44
合計ジャッジ時間 6,578 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
29,512 KB
testcase_01 AC 140 ms
29,512 KB
testcase_02 AC 138 ms
29,508 KB
testcase_03 AC 141 ms
29,536 KB
testcase_04 AC 140 ms
29,584 KB
testcase_05 AC 138 ms
29,544 KB
testcase_06 AC 140 ms
29,416 KB
testcase_07 AC 137 ms
29,548 KB
testcase_08 AC 136 ms
29,588 KB
testcase_09 AC 139 ms
29,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import numpy as np
from collections import deque
from collections import Counter
import sys 

input = sys.stdin.readline
# sys.setrecursionlimit(25000)

x, y = list(map(int, input().split(' ')))

d = math.sqrt(x ** 2 + y ** 2) * 2

print(math.floor(d) + 1)



0