結果
問題 | No.1487 ぺんぎんさんかっけー |
ユーザー |
![]() |
提出日時 | 2021-04-23 22:48:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 785 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-04 08:31:27 |
合計ジャッジ時間 | 2,337 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 37 |
ソースコード
import syssys.setrecursionlimit(10 ** 6)int1 = lambda x: int(x) - 1p2D = lambda x: print(*x, sep="\n")def II(): return int(sys.stdin.buffer.readline())def LI(): return list(map(int, sys.stdin.buffer.readline().split()))def LLI(rows_number): return [LI() for _ in range(rows_number)]def LI1(): return list(map(int1, sys.stdin.buffer.readline().split()))def LLI1(rows_number): return [LI1() for _ in range(rows_number)]def BI(): return sys.stdin.buffer.readline().rstrip()def SI(): return sys.stdin.buffer.readline().rstrip().decode()inf = 10 ** 16md = 10 ** 9 + 7# md = 998244353def ev(a,b,c):cos=(a**2+b**2-c**2)/2/a/bsin=(1-cos**2)**0.5return a*b*sin/8a,b,c=LI()t=(a+b+c)/2s=(t*(t-a)*(t-b)*(t-c))**0.5ans=s-ev(a,b,c)-ev(b,c,a)-ev(c,a,b)print(ans)