結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
kutsutama
|
| 提出日時 | 2019-01-16 12:58:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 228 bytes |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-27 20:58:30 |
| 合計ジャッジ時間 | 1,009 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import math
xp, yp = [int(x) for x in input().split()]
res = 0
r2 = 4 * (xp * xp + yp * yp)
r_can = int(math.floor(math.sqrt(r2)))
for r in range(r_can, 4 * 10**4):
if r * r > r2:
res = r
break
print(res)
kutsutama