結果

問題 No.1622 三角形の面積
ユーザー weakenweaken
提出日時 2021-09-25 21:38:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-19 02:43:51
合計ジャッジ時間 802 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,876 KB
testcase_01 AC 17 ms
7,996 KB
testcase_02 AC 18 ms
7,808 KB
testcase_03 AC 17 ms
7,972 KB
testcase_04 AC 18 ms
7,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math


def area(r: float, deg: float) -> float:
    return r * r * math.sin(math.radians(deg)) / 2


def main():
    t = int(input())
    for _ in range(t):
        r = float(input())
        print(area(r, 120) * 3)


if __name__ == "__main__":
    main()
0