結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー umimelumimel
提出日時 2022-06-17 21:50:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 708 bytes
コンパイル時間 2,072 ms
コンパイル使用メモリ 165,364 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-17 13:33:51
合計ジャッジ時間 20,849 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 119 ms
5,376 KB
testcase_02 AC 495 ms
5,376 KB
testcase_03 AC 331 ms
5,376 KB
testcase_04 AC 85 ms
5,376 KB
testcase_05 AC 428 ms
5,376 KB
testcase_06 AC 683 ms
5,376 KB
testcase_07 AC 661 ms
5,376 KB
testcase_08 WA -
testcase_09 AC 659 ms
5,376 KB
testcase_10 WA -
testcase_11 AC 684 ms
5,376 KB
testcase_12 AC 658 ms
5,376 KB
testcase_13 AC 665 ms
5,376 KB
testcase_14 AC 670 ms
5,376 KB
testcase_15 WA -
testcase_16 AC 699 ms
5,376 KB
testcase_17 AC 717 ms
5,376 KB
testcase_18 AC 705 ms
5,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 702 ms
5,376 KB
testcase_22 AC 680 ms
5,376 KB
testcase_23 AC 681 ms
5,376 KB
testcase_24 WA -
testcase_25 AC 688 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(100*u*u*t*t+20*u*l) - 10*u*t;
    return second*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(100*ans[i])/100 << endl;
}
0