結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー sotanishysotanishy
提出日時 2022-06-17 22:30:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 401 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,928 KB
最終ジャッジ日時 2024-04-17 14:43:14
合計ジャッジ時間 7,411 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 214 ms
76,416 KB
testcase_17 AC 227 ms
76,288 KB
testcase_18 AC 215 ms
76,288 KB
testcase_19 AC 207 ms
76,160 KB
testcase_20 AC 208 ms
76,572 KB
testcase_21 AC 226 ms
76,184 KB
testcase_22 WA -
testcase_23 AC 218 ms
76,288 KB
testcase_24 WA -
testcase_25 AC 224 ms
76,416 KB
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
for _ in range(N):
    T, m, L = map(float, input().split())
    lb, ub = 0, 10**7
    while ub - lb > 1:
        v = (lb + ub) // 2
        if 20*m*360*T*v + v**2 <= 20*m*360**2*L:
            lb = v
        else:
            ub = v
    ans = str(lb)
    while len(ans) < 3:
        ans += "0"
    ans = ans[:-2] + "." + ans[-2:]
    print(ans)
0