結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー lloyzlloyz
提出日時 2022-06-17 23:38:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 381 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 82,720 KB
実行使用メモリ 77,040 KB
最終ジャッジ日時 2024-04-17 16:10:03
合計ジャッジ時間 24,189 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
51,840 KB
testcase_01 AC 234 ms
76,288 KB
testcase_02 AC 672 ms
76,668 KB
testcase_03 AC 480 ms
76,544 KB
testcase_04 AC 185 ms
76,416 KB
testcase_05 AC 608 ms
76,416 KB
testcase_06 WA -
testcase_07 AC 946 ms
76,544 KB
testcase_08 AC 948 ms
76,520 KB
testcase_09 AC 939 ms
76,544 KB
testcase_10 WA -
testcase_11 AC 919 ms
76,416 KB
testcase_12 AC 947 ms
76,416 KB
testcase_13 AC 905 ms
76,544 KB
testcase_14 AC 913 ms
76,416 KB
testcase_15 WA -
testcase_16 AC 924 ms
76,416 KB
testcase_17 AC 951 ms
76,416 KB
testcase_18 AC 939 ms
76,672 KB
testcase_19 AC 956 ms
76,288 KB
testcase_20 AC 964 ms
76,700 KB
testcase_21 AC 939 ms
76,544 KB
testcase_22 AC 961 ms
76,416 KB
testcase_23 AC 964 ms
76,288 KB
testcase_24 AC 957 ms
77,040 KB
testcase_25 AC 927 ms
76,672 KB
testcase_26 AC 43 ms
52,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for _ in range(n):
    t, mu, l = map(float, input().split())
    left = 0.0
    right = 5200.0
    for _ in range(60):
        mid = (left + right) / 2
        v = 5 * mid / 18
        d = v * t + v**2 / (20 * mu)
        if d < l:
            left = mid
        else:
            right = mid
    right *= 100
    right = int(right)
    print(f"{right/100:.2f}")
0