結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー ニックネームニックネーム
提出日時 2022-06-17 22:19:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 82,064 KB
実行使用メモリ 77,460 KB
最終ジャッジ日時 2024-04-17 14:25:05
合計ジャッジ時間 25,837 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,472 KB
testcase_01 AC 223 ms
76,520 KB
testcase_02 AC 732 ms
77,028 KB
testcase_03 WA -
testcase_04 AC 201 ms
76,440 KB
testcase_05 AC 710 ms
76,880 KB
testcase_06 WA -
testcase_07 AC 1,065 ms
77,008 KB
testcase_08 WA -
testcase_09 AC 1,053 ms
76,576 KB
testcase_10 WA -
testcase_11 AC 1,033 ms
76,700 KB
testcase_12 AC 999 ms
77,044 KB
testcase_13 WA -
testcase_14 AC 1,013 ms
77,372 KB
testcase_15 WA -
testcase_16 AC 993 ms
76,784 KB
testcase_17 AC 1,006 ms
76,820 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 996 ms
76,984 KB
testcase_23 AC 1,042 ms
76,772 KB
testcase_24 AC 1,071 ms
76,768 KB
testcase_25 AC 1,059 ms
76,628 KB
testcase_26 AC 35 ms
53,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import floor
for _ in range(int(input())):
    t, m, l = map(float, input().split())
    ok = 0; ng = 5101
    for _ in range(100):
        mid = (ok+ng)/2
        v = mid/3.6
        if v*t+v*v/20/m < l: ok = mid
        else: ng = mid
    print(f"{floor(mid*100)/100:.2f}")
0