結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー k_o_pasture
提出日時 2022-06-17 22:22:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 82,276 KB
実行使用メモリ 77,784 KB
最終ジャッジ日時 2024-10-09 08:32:00
合計ジャッジ時間 20,952 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt,floor

N = int(input())
for _ in range(N):
	T, m, L = map(float, input().split())
	ans = -10 * m * T + sqrt(100*m*m*T*T + 20*m*L)
	ans = ans * 0.001 * 3600
	i = str(ans).find('.')
	if len(str(ans)) - i == 2:
		print(str(ans) + '0')
	elif len(str(ans)) - i == 1:
		print(str(ans) + '00')
	else:
		print(str(ans)[:i+3])
0