結果
| 問題 |
No.1980 [Cherry 4th Tune D] 停止距離
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-05-25 01:33:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 451 bytes |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 28,196 KB |
| 最終ジャッジ日時 | 2024-12-24 00:28:26 |
| 合計ジャッジ時間 | 99,838 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 TLE * 23 |
ソースコード
import sys
input = sys.stdin.readline
def calc(v,t,m):
return v*t+v*v/(20*m)
eps=10**(-10)
T0=int(input())
for tests in range(T0):
T,mu,L=map(float,input().split())
OK=0
NG=1<<60
for tests in range(100):
mid=(OK+NG)/2
if calc(mid,T,mu)>L+eps:
NG=mid
else:
OK=mid
ANS=str(int(OK*360))
while len(ANS)<3:
ANS="0"+ANS
print(ANS[:-2]+"."+ANS[-2:])
titia