結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-16 18:47:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 298 bytes |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-21 14:37:44 |
| 合計ジャッジ時間 | 1,055 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import math
if __name__ == '__main__':
xy = list(map(int, input().split()))
x, y = xy[0], xy[1]
hypotenuse = math.sqrt(x ** 2 + y ** 2)
hypotenuse *= 2
if hypotenuse - int(hypotenuse) == 0:
print(int(hypotenuse) + 1)
else:
print(int(math.ceil(hypotenuse)))