結果

問題 No.1551 誕生日の三角形
ユーザー norioc
提出日時 2025-05-28 02:30:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 184 bytes
コンパイル時間 421 ms
コンパイル使用メモリ 81,732 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2025-05-28 02:30:46
合計ジャッジ時間 1,914 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt


def triangle_area(a, b, c):
    s = (a+b+c) / 2
    return sqrt(s * (s-a) * (s-b) * (s-c))


L = int(input())
x = L / 3
ans = triangle_area(x, x, x)
print(ans)
0