結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー 👑 KazunKazun
提出日時 2022-03-13 19:35:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 82,704 KB
実行使用メモリ 107,392 KB
最終ジャッジ日時 2024-04-17 12:25:57
合計ジャッジ時間 17,324 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 TLE -
testcase_22 TLE -
testcase_23 TLE -
testcase_24 TLE -
testcase_25 TLE -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# WA 想定
from decimal import *
import sys
from math import *

input=sys.stdin.readline
write=sys.stdout.write

N=int(input())
Ans=[None]*N
getcontext().prec=7

for n in range(N):
    T,mu,L=map(Decimal,input().split())
    V=36*(-5*mu*T+Decimal(sqrt(5*mu*(L+5*mu*T*T))))/5
    V=str(V)

    if ("." not in V):
        V+=".00"
    elif V.index(".")==len(V)-2:
        V+="00"

    V=V[:V.index(".")+3]
    Ans[n]=V

write("\n".join(map(str,Ans)))
0