結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー mnmmnm
提出日時 2022-06-17 22:59:11
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,002 bytes
コンパイル時間 956 ms
コンパイル使用メモリ 81,716 KB
実行使用メモリ 14,572 KB
最終ジャッジ日時 2024-04-17 15:20:38
合計ジャッジ時間 11,269 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
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 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <tuple>
#include <bitset>

#define rep(i,n) for(i=0; i<n; ++i)
#define in(a) cin >> a
#define out(a,b) cout << a << b
#define print_vec(v) for(auto it=v.begin();it!=v.end();++it)cout<<*it <<" ";cout<<endl
#define print_vec2d(v) for(int i=0;i<v.size();++i){for(int j=0;j<v[i].size();++j)cout<<v[i][j]<<" ";cout<<endl;}cout<<endl
using namespace std;
using lint = long long;

int main(void){
    lint i, j, k, cnt=0;
    lint p, n, m;
    in(n);
    vector<vector<float>> v(n,vector<float> (3));
    rep(i,n){
        rep(j,3){
            in(v[i][j]);
        }
    }

    rep(i,n){
        // 10*v[i][1]*(10*v[i][1]*pow(v[i][0],2))+2*v[i][2]
        float rt=pow(10*v[i][1]*v[i][0],2)+20*v[i][1]*v[i][2];
        float vms=-10*v[i][1]*v[i][0]+sqrt(rt);
        vms=vms*3600.0/1000.0;
        int v_100 = vms*100;
        float vkmh=v_100/100.0;
        printf("%.2f\n", vkmh);
    }
    return 0;
}
0