結果

問題 No.98 円を描こう
ユーザー ゆるくゆるく
提出日時 2014-12-09 23:30:54
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 10,288 KB
最終ジャッジ日時 2023-09-02 12:17:53
合計ジャッジ時間 1,510 ms
ジャッジサーバーID
(参考情報)
judge11 / judge16
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,268 KB
testcase_01 AC 31 ms
10,288 KB
testcase_02 AC 31 ms
10,280 KB
testcase_03 AC 35 ms
10,192 KB
testcase_04 AC 31 ms
10,108 KB
testcase_05 AC 31 ms
10,208 KB
testcase_06 AC 31 ms
10,208 KB
testcase_07 AC 31 ms
10,208 KB
testcase_08 AC 31 ms
10,252 KB
testcase_09 AC 31 ms
10,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

a, b = map(int, input().split())

print(int(math.sqrt((a ** 2) + (b ** 2)) * 2 + 1))
0