結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー lloyzlloyz
提出日時 2022-06-17 23:56:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 628 ms / 3,000 ms
コード長 411 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2024-04-17 16:27:32
合計ジャッジ時間 16,151 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
51,968 KB
testcase_01 AC 147 ms
76,032 KB
testcase_02 AC 436 ms
76,140 KB
testcase_03 AC 319 ms
76,160 KB
testcase_04 AC 118 ms
75,976 KB
testcase_05 AC 393 ms
76,160 KB
testcase_06 AC 625 ms
76,324 KB
testcase_07 AC 577 ms
76,040 KB
testcase_08 AC 583 ms
76,160 KB
testcase_09 AC 590 ms
76,256 KB
testcase_10 AC 585 ms
76,108 KB
testcase_11 AC 590 ms
76,416 KB
testcase_12 AC 587 ms
76,032 KB
testcase_13 AC 582 ms
76,360 KB
testcase_14 AC 589 ms
76,032 KB
testcase_15 AC 595 ms
76,032 KB
testcase_16 AC 600 ms
76,544 KB
testcase_17 AC 589 ms
76,096 KB
testcase_18 AC 596 ms
76,500 KB
testcase_19 AC 588 ms
76,416 KB
testcase_20 AC 606 ms
76,144 KB
testcase_21 AC 596 ms
76,260 KB
testcase_22 AC 591 ms
76,060 KB
testcase_23 AC 603 ms
76,240 KB
testcase_24 AC 628 ms
76,288 KB
testcase_25 AC 588 ms
76,160 KB
testcase_26 AC 30 ms
52,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for _ in range(n):
    t, mu, l = input().split()
    t = int(t.replace('.', ''))
    l = int(l.replace('.', ''))
    mu = int(mu.replace('.', ''))
    left = -1
    right = 520000
    while right - left > 1:
        mid = (left + right) // 2
        if 25 * mid**2 + 18 * mid * t * mu <= 6480 * mu * l:
            left = mid
        else:
            right = mid
    print(f"{left/100:.2f}")
0