結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2020-01-06 11:23:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 150 ms / 5,000 ms |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-05-16 21:56:23 |
| 合計ジャッジ時間 | 6,232 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import math
input_list = list(map(int,input().split()))
x, y = input_list
res = 0
distance = 2 * math.sqrt(x ** 2 + y ** 2)
if math.ceil(distance) == math.floor(distance):
res = distance + 1
else:
res = math.ceil(distance)
print(int(res))
_KingdomOfMoray