結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー rlangevinrlangevin
提出日時 2023-05-20 14:46:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,654 ms / 3,000 ms
コード長 611 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 89,752 KB
最終ジャッジ日時 2024-04-08 19:19:07
合計ジャッジ時間 41,947 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,460 KB
testcase_01 AC 385 ms
78,616 KB
testcase_02 AC 1,204 ms
85,660 KB
testcase_03 AC 874 ms
82,572 KB
testcase_04 AC 303 ms
78,088 KB
testcase_05 AC 1,095 ms
84,632 KB
testcase_06 AC 1,637 ms
89,752 KB
testcase_07 AC 1,604 ms
89,244 KB
testcase_08 AC 1,623 ms
89,116 KB
testcase_09 AC 1,611 ms
89,356 KB
testcase_10 AC 1,624 ms
89,244 KB
testcase_11 AC 1,654 ms
89,124 KB
testcase_12 AC 1,610 ms
89,244 KB
testcase_13 AC 1,602 ms
89,248 KB
testcase_14 AC 1,615 ms
89,120 KB
testcase_15 AC 1,620 ms
89,120 KB
testcase_16 AC 1,602 ms
87,200 KB
testcase_17 AC 1,581 ms
87,588 KB
testcase_18 AC 1,600 ms
87,708 KB
testcase_19 AC 1,583 ms
87,204 KB
testcase_20 AC 1,586 ms
87,584 KB
testcase_21 AC 1,595 ms
87,332 KB
testcase_22 AC 1,592 ms
87,076 KB
testcase_23 AC 1,585 ms
87,332 KB
testcase_24 AC 1,602 ms
87,716 KB
testcase_25 AC 1,599 ms
87,588 KB
testcase_26 AC 39 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

def f(T, m, L, V):
    V *= 10
    return 36 * V * 20 * m * T * 100 + V * V * 10000 <= 36 * 36 * L * 20 * m * 10000

N = int(input())
for _ in range(N):
    T, m, L = input().split()
    a, b = T.split(".")
    T = int(a + b)
    a, b = m.split(".")
    m = int(a + b)
    a, b = L.split(".")
    L = int(a + b)
    yes = 0
    no = 10 ** 18
    while abs(yes - no) != 1:
        mid = (yes + no)//2
        if f(T, m, L, mid):
            yes = mid
        else:
            no = mid
    low = yes % 100
    yes //= 100
    print("{0}.{1}".format(yes, str(low).zfill(2)))
0