結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー tamatotamato
提出日時 2022-06-17 21:49:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 289 ms / 3,000 ms
コード長 772 bytes
コンパイル時間 499 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 77,380 KB
最終ジャッジ日時 2024-04-17 13:32:19
合計ジャッジ時間 10,729 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
52,480 KB
testcase_01 AC 122 ms
76,032 KB
testcase_02 AC 227 ms
76,544 KB
testcase_03 AC 183 ms
76,288 KB
testcase_04 AC 109 ms
76,160 KB
testcase_05 AC 203 ms
76,672 KB
testcase_06 AC 283 ms
77,136 KB
testcase_07 AC 281 ms
76,928 KB
testcase_08 AC 277 ms
77,056 KB
testcase_09 AC 284 ms
76,672 KB
testcase_10 AC 280 ms
77,124 KB
testcase_11 AC 278 ms
76,928 KB
testcase_12 AC 285 ms
77,296 KB
testcase_13 AC 288 ms
76,928 KB
testcase_14 AC 288 ms
77,292 KB
testcase_15 AC 288 ms
77,380 KB
testcase_16 AC 277 ms
76,544 KB
testcase_17 AC 289 ms
76,672 KB
testcase_18 AC 284 ms
76,416 KB
testcase_19 AC 280 ms
76,672 KB
testcase_20 AC 281 ms
76,696 KB
testcase_21 AC 281 ms
76,672 KB
testcase_22 AC 279 ms
76,692 KB
testcase_23 AC 278 ms
76,976 KB
testcase_24 AC 285 ms
76,672 KB
testcase_25 AC 281 ms
76,416 KB
testcase_26 AC 46 ms
52,608 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())
        t = int(t * 100 + 0.5)
        m = int(m * 100 + 0.5)
        l = int(l * 100 + 0.5)
        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) * (10 ** 4) > 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