結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
52,224 KB
testcase_01 AC 261 ms
76,160 KB
testcase_02 AC 806 ms
76,800 KB
testcase_03 AC 604 ms
76,160 KB
testcase_04 AC 205 ms
76,544 KB
testcase_05 AC 731 ms
76,544 KB
testcase_06 WA -
testcase_07 AC 1,116 ms
76,672 KB
testcase_08 AC 1,114 ms
76,416 KB
testcase_09 AC 1,134 ms
76,416 KB
testcase_10 WA -
testcase_11 AC 1,100 ms
76,544 KB
testcase_12 AC 1,100 ms
76,800 KB
testcase_13 AC 1,109 ms
76,544 KB
testcase_14 AC 1,106 ms
76,928 KB
testcase_15 WA -
testcase_16 AC 1,126 ms
76,416 KB
testcase_17 AC 1,104 ms
76,672 KB
testcase_18 AC 1,121 ms
76,672 KB
testcase_19 AC 1,105 ms
76,416 KB
testcase_20 AC 1,102 ms
76,672 KB
testcase_21 AC 1,117 ms
76,928 KB
testcase_22 AC 1,111 ms
76,416 KB
testcase_23 AC 1,104 ms
76,416 KB
testcase_24 AC 1,108 ms
76,416 KB
testcase_25 AC 1,118 ms
76,800 KB
testcase_26 AC 43 ms
52,480 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(100):
        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