結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,096 KB
testcase_01 AC 105 ms
76,288 KB
testcase_02 WA -
testcase_03 AC 172 ms
76,904 KB
testcase_04 AC 100 ms
76,500 KB
testcase_05 AC 200 ms
76,800 KB
testcase_06 AC 268 ms
76,800 KB
testcase_07 AC 273 ms
77,568 KB
testcase_08 AC 265 ms
76,852 KB
testcase_09 AC 270 ms
77,256 KB
testcase_10 WA -
testcase_11 AC 263 ms
77,056 KB
testcase_12 AC 263 ms
77,440 KB
testcase_13 AC 269 ms
77,312 KB
testcase_14 AC 264 ms
76,928 KB
testcase_15 AC 267 ms
77,056 KB
testcase_16 AC 266 ms
77,184 KB
testcase_17 AC 267 ms
77,056 KB
testcase_18 AC 263 ms
76,800 KB
testcase_19 AC 272 ms
77,148 KB
testcase_20 AC 270 ms
77,184 KB
testcase_21 AC 266 ms
77,124 KB
testcase_22 WA -
testcase_23 AC 263 ms
76,928 KB
testcase_24 AC 266 ms
76,860 KB
testcase_25 AC 269 ms
76,672 KB
testcase_26 AC 41 ms
52,480 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:
            if 20 * 360 * m * mid * t + mid ** 2 > 20 * (360 ** 2) * 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