結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー legosukelegosuke
提出日時 2022-06-17 22:01:41
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 2,080 ms
コンパイル使用メモリ 194,764 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 13:54:48
合計ジャッジ時間 20,795 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 121 ms
5,248 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 90 ms
5,376 KB
testcase_05 AC 448 ms
5,376 KB
testcase_06 AC 710 ms
5,376 KB
testcase_07 AC 694 ms
5,376 KB
testcase_08 AC 708 ms
5,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 705 ms
5,376 KB
testcase_12 AC 676 ms
5,376 KB
testcase_13 AC 705 ms
5,376 KB
testcase_14 AC 698 ms
5,376 KB
testcase_15 WA -
testcase_16 AC 717 ms
5,376 KB
testcase_17 AC 744 ms
5,376 KB
testcase_18 AC 699 ms
5,376 KB
testcase_19 AC 733 ms
5,376 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

double f(double T, double mu, double L) {
    return 36 * (sqrt(T * T + L / (5 * mu)) - T) * mu;
}

int main() {
    int N;
    cin >> N;
    for (int i = 0; i < N; ++i) {
        double T, mu, L;
        cin >> T >> mu >> L;
        double V = f(T, mu, L);
        cout << fixed << setprecision(2) << (int)(V * 100) / 100.0 << endl;
    }
}
0