結果
問題 | No.1980 [Cherry 4th Tune D] 停止距離 |
ユーザー | k_o_pasture |
提出日時 | 2022-06-17 22:38:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 441 bytes |
コンパイル時間 | 407 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 78,080 KB |
最終ジャッジ日時 | 2024-04-17 14:56:51 |
合計ジャッジ時間 | 18,949 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
51,840 KB |
testcase_01 | AC | 216 ms
77,440 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 182 ms
77,440 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 715 ms
77,696 KB |
testcase_08 | WA | - |
testcase_09 | AC | 685 ms
77,440 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 674 ms
77,440 KB |
testcase_13 | WA | - |
testcase_14 | AC | 722 ms
77,312 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 42 ms
52,096 KB |
ソースコード
from math import sqrt,floor N = int(input()) for _ in range(N): T, m, L = map(float, input().split()) T += 0.000000001 m += 0.000000001 L += 0.000000001 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])