結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2020-10-16 15:34:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-20 20:37:19 |
合計ジャッジ時間 | 942 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
nums=input().split() a=int(nums[0]) b=int(nums[1]) c=(a**2+b**2)**(1/2) import math ans=math.ceil(c*2) if (ans/2)**2==c**2: print(ans+1) else: print(ans)