結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー tamatotamato
提出日時 2022-06-17 21:43:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 587 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 77,312 KB
最終ジャッジ日時 2024-04-17 13:19:55
合計ジャッジ時間 9,655 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,096 KB
testcase_01 AC 108 ms
76,416 KB
testcase_02 AC 223 ms
76,672 KB
testcase_03 AC 181 ms
76,416 KB
testcase_04 AC 104 ms
76,032 KB
testcase_05 AC 199 ms
76,800 KB
testcase_06 AC 282 ms
77,056 KB
testcase_07 AC 281 ms
77,184 KB
testcase_08 AC 275 ms
77,184 KB
testcase_09 AC 270 ms
77,056 KB
testcase_10 WA -
testcase_11 AC 280 ms
77,056 KB
testcase_12 AC 283 ms
77,056 KB
testcase_13 WA -
testcase_14 AC 268 ms
76,928 KB
testcase_15 WA -
testcase_16 AC 273 ms
76,928 KB
testcase_17 AC 282 ms
76,928 KB
testcase_18 WA -
testcase_19 AC 277 ms
76,672 KB
testcase_20 WA -
testcase_21 AC 276 ms
76,544 KB
testcase_22 WA -
testcase_23 AC 285 ms
76,544 KB
testcase_24 WA -
testcase_25 AC 293 ms
76,800 KB
testcase_26 AC 42 ms
52,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    import math
    input = sys.stdin.readline

    for _ in range(int(input())):
        t, m, l = map(float, input().split())
        ok = 0
        ng = 510000 + 1
        mid = (ok + ng) // 2
        while ng - ok > 1:
            v = mid / 360
            if v * t + (v ** 2 / (20 * m)) > l:
                ng = mid
            else:
                ok = mid
            mid = (ok + ng) // 2
        ans = str(ok).zfill(3)
        ans1, ans2 = ans[:-2], ans[-2:]
        print(ans1 + "." + ans2)


if __name__ == '__main__':
    main()
0