結果

問題 No.1551 誕生日の三角形
ユーザー moharan627moharan627
提出日時 2021-06-18 21:24:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 1,000 ms
コード長 491 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 8,232 KB
最終ジャッジ日時 2023-09-04 22:23:05
合計ジャッジ時間 946 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,072 KB
testcase_01 AC 17 ms
8,232 KB
testcase_02 AC 17 ms
8,096 KB
testcase_03 AC 17 ms
8,212 KB
testcase_04 AC 17 ms
8,212 KB
testcase_05 AC 17 ms
8,080 KB
testcase_06 AC 16 ms
8,108 KB
testcase_07 AC 16 ms
8,144 KB
testcase_08 AC 17 ms
8,016 KB
testcase_09 AC 16 ms
8,216 KB
testcase_10 AC 17 ms
8,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#sys.setrecursionlimit(10 ** 6)
INF = float('inf')
#10**20に変えるのもあり
MOD = 10**9 + 7
MOD2 = 998244353
def solve():
    def II(): return int(sys.stdin.readline())
    def LI(): return list(map(int, sys.stdin.readline().split()))
    def LC(): return list(input())
    def IC(): return [int(c) for c in input()]
    def MI(): return map(int, sys.stdin.readline().split())
    L = II()
    S = L/2
    import math
    print(math.sqrt(S*((S-L/3))**3))
    return
solve()
0