結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2015-08-04 16:00:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 146 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-18 01:15:07 |
合計ジャッジ時間 | 967 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
import math x, y = map(int,input().split()) ans = math.ceil(2 * math.sqrt(x*x + y*y)) if 2 * math.sqrt(x*x + y*y) == ans: ans += 1 print(ans)