結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー mkawa2mkawa2
提出日時 2022-06-17 21:40:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 640 ms / 3,000 ms
コード長 959 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-17 13:16:39
合計ジャッジ時間 17,263 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 137 ms
10,880 KB
testcase_02 AC 448 ms
11,008 KB
testcase_03 AC 332 ms
10,880 KB
testcase_04 AC 104 ms
10,752 KB
testcase_05 AC 395 ms
10,752 KB
testcase_06 AC 604 ms
10,880 KB
testcase_07 AC 597 ms
10,752 KB
testcase_08 AC 603 ms
10,752 KB
testcase_09 AC 609 ms
10,752 KB
testcase_10 AC 602 ms
10,752 KB
testcase_11 AC 607 ms
10,752 KB
testcase_12 AC 640 ms
10,880 KB
testcase_13 AC 628 ms
10,752 KB
testcase_14 AC 603 ms
10,752 KB
testcase_15 AC 616 ms
10,752 KB
testcase_16 AC 604 ms
10,880 KB
testcase_17 AC 615 ms
10,752 KB
testcase_18 AC 616 ms
10,752 KB
testcase_19 AC 601 ms
11,008 KB
testcase_20 AC 609 ms
10,880 KB
testcase_21 AC 616 ms
10,752 KB
testcase_22 AC 595 ms
10,880 KB
testcase_23 AC 608 ms
10,880 KB
testcase_24 AC 614 ms
10,752 KB
testcase_25 AC 598 ms
10,752 KB
testcase_26 AC 29 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

# sys.setrecursionlimit(200005)
int1 = lambda x: int(x)-1
pDB = lambda *x: print(*x, end="\n", file=sys.stderr)
p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr)
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LF(): return list(map(float, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
inf = (1 << 63)-1
# inf = (1 << 31)-1
# md = 10**9+7
md = 998244353

def solve():
    t,m,l=LF()
    ans=36*(-5*m*t+(5*(l*m+5*m*m*t*t))**0.5)/5
    # print(ans)
    ans=f"{ans:.10f}"
    print(ans[:-8])

for _ in range(II()):
    solve()
0