結果
| 問題 |
No.1381 Simple Geometry 1
|
| コンテスト | |
| ユーザー |
Ultimate_Tea_04
|
| 提出日時 | 2021-02-07 22:09:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-07-04 15:42:13 |
| 合計ジャッジ時間 | 2,332 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 29 |
ソースコード
x,y,z,w = map(int,input().split())
low = 1
high = x
for i in range(100):
a = (low+high)/2
b = x/a
if (a**2+y**2)**(0.5)-w>(b**2+z**2)**(0.5):
high = (high+low)/2
else:
low = (high+low)/2
s = (high+low)/2
t = x/s
print(x-(s*y)/2-(t-y)*(s-z)/2-(t*z)/2)
Ultimate_Tea_04