結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー nyyanyya
提出日時 2022-06-17 21:52:06
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 402 bytes
コンパイル時間 2,964 ms
コンパイル使用メモリ 163,332 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 13:36:44
合計ジャッジ時間 20,692 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 126 ms
5,376 KB
testcase_02 AC 519 ms
5,376 KB
testcase_03 AC 348 ms
5,376 KB
testcase_04 AC 86 ms
5,376 KB
testcase_05 WA -
testcase_06 AC 680 ms
5,376 KB
testcase_07 AC 710 ms
5,376 KB
testcase_08 AC 680 ms
5,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 686 ms
5,376 KB
testcase_12 AC 685 ms
5,376 KB
testcase_13 AC 686 ms
5,376 KB
testcase_14 AC 679 ms
5,376 KB
testcase_15 WA -
testcase_16 AC 706 ms
5,376 KB
testcase_17 AC 695 ms
5,376 KB
testcase_18 AC 702 ms
5,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 688 ms
5,376 KB
testcase_22 AC 709 ms
5,376 KB
testcase_23 AC 713 ms
5,376 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

void solve(){
    double t,mu,l;
    cin >> t >> mu >> l;

    double ue,sita;
    
    sita=mu*t;
    sita+=sqrt((mu*t)*(mu*t)+0.2*mu*l);
    ue=2*mu*l;

    int ans= ue*360/sita;
    cout << fixed << setprecision(2) << (double) ans/100 << endl;
}

int main(){

    int n;
    cin >> n;

    for(int i=0;i<n;i++){
        solve();
    }

    return 0;
}
0