結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
51,968 KB
testcase_01 AC 116 ms
76,416 KB
testcase_02 WA -
testcase_03 AC 197 ms
76,288 KB
testcase_04 AC 104 ms
76,160 KB
testcase_05 AC 229 ms
76,288 KB
testcase_06 AC 315 ms
76,800 KB
testcase_07 AC 330 ms
76,544 KB
testcase_08 WA -
testcase_09 AC 315 ms
76,928 KB
testcase_10 WA -
testcase_11 AC 301 ms
76,928 KB
testcase_12 AC 314 ms
77,056 KB
testcase_13 WA -
testcase_14 AC 309 ms
76,672 KB
testcase_15 AC 313 ms
76,800 KB
testcase_16 AC 310 ms
76,928 KB
testcase_17 AC 331 ms
76,544 KB
testcase_18 AC 328 ms
76,672 KB
testcase_19 AC 315 ms
76,800 KB
testcase_20 AC 318 ms
76,544 KB
testcase_21 AC 322 ms
76,672 KB
testcase_22 WA -
testcase_23 AC 332 ms
76,288 KB
testcase_24 WA -
testcase_25 AC 326 ms
76,672 KB
testcase_26 AC 41 ms
51,968 KB
権限があれば一括ダウンロードができます

ソースコード

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
    print(f"{lb/100:0.2f}")
0