結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2020-01-28 17:16:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 199 bytes |
コンパイル時間 | 210 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-15 13:45:43 |
合計ジャッジ時間 | 1,120 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
import mathx, y = map(int, input().split())ans = math.ceil(2 * math.sqrt(x ** 2 + y ** 2))if math.sqrt(x ** 2 + y ** 2) - math.floor(math.sqrt(x ** 2 + y ** 2)) == 0:ans += 1print(ans)