結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー umimelumimel
提出日時 2022-06-17 21:54:26
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 756 bytes
コンパイル時間 1,748 ms
コンパイル使用メモリ 166,348 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-17 13:42:39
合計ジャッジ時間 19,794 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 120 ms
5,376 KB
testcase_02 AC 493 ms
5,376 KB
testcase_03 AC 330 ms
5,376 KB
testcase_04 AC 85 ms
5,376 KB
testcase_05 AC 424 ms
5,376 KB
testcase_06 AC 673 ms
5,376 KB
testcase_07 AC 671 ms
5,376 KB
testcase_08 WA -
testcase_09 AC 664 ms
5,376 KB
testcase_10 WA -
testcase_11 AC 654 ms
5,376 KB
testcase_12 AC 667 ms
5,376 KB
testcase_13 AC 667 ms
5,376 KB
testcase_14 AC 660 ms
5,376 KB
testcase_15 WA -
testcase_16 AC 700 ms
5,376 KB
testcase_17 AC 689 ms
5,376 KB
testcase_18 AC 692 ms
5,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 699 ms
5,376 KB
testcase_22 AC 694 ms
5,376 KB
testcase_23 AC 690 ms
5,376 KB
testcase_24 WA -
testcase_25 AC 693 ms
5,376 KB
testcase_26 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
#define drep(i, cc, n) for (ll i = (cc); i <= (n); ++i)
#define rep(i, n) drep(i, 0, n - 1)
#define all(a) (a).begin(), (a).end()
#define pb push_back
#define fi first
#define se second

const ll MOD = 1000000007;
const ll MOD2 = 998244353;
const ll INF = 1LL << 60;
const ll N_MAX = 2e5;

double solve(){
    double t, u, l;
    cin >> t >> u >> l;
    
    double second = sqrt((double)100*u*u*t*t+(double)20*u*l) - (double)10*u*t;
    return second*(double)3.6;
}

int main(){
    ll n;
    cin >> n;

    vector<double> ans(n);
    rep(i, n) ans[i] = solve();
    rep(i, n) cout << fixed << setprecision(2) << floor((double)100*ans[i])/(double)100 << endl;
}
0