結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー k_o_pasturek_o_pasture
提出日時 2022-06-17 22:35:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 82,080 KB
実行使用メモリ 77,652 KB
最終ジャッジ日時 2024-04-17 14:50:40
合計ジャッジ時間 21,758 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
52,480 KB
testcase_01 AC 238 ms
77,536 KB
testcase_02 AC 598 ms
77,440 KB
testcase_03 AC 423 ms
77,312 KB
testcase_04 AC 184 ms
77,540 KB
testcase_05 AC 510 ms
77,496 KB
testcase_06 AC 728 ms
77,280 KB
testcase_07 AC 745 ms
77,440 KB
testcase_08 AC 750 ms
77,212 KB
testcase_09 AC 745 ms
77,312 KB
testcase_10 WA -
testcase_11 AC 740 ms
77,312 KB
testcase_12 AC 736 ms
77,312 KB
testcase_13 AC 742 ms
77,588 KB
testcase_14 AC 744 ms
77,440 KB
testcase_15 WA -
testcase_16 AC 761 ms
77,312 KB
testcase_17 AC 754 ms
77,440 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 768 ms
77,272 KB
testcase_22 AC 746 ms
77,428 KB
testcase_23 AC 747 ms
77,312 KB
testcase_24 WA -
testcase_25 AC 770 ms
77,312 KB
testcase_26 AC 43 ms
52,096 KB
権限があれば一括ダウンロードができます

ソースコード

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((10*m*T)**2 + 20*m*L)
	ans = ans * 0.001 * 3600
	n = 5
	ans = floor(ans * 10 ** n) / (10 ** n)
	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