結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー hamuhei4869hamuhei4869
提出日時 2022-03-24 04:11:56
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 769 bytes
コンパイル時間 2,070 ms
コンパイル使用メモリ 174,248 KB
実行使用メモリ 10,400 KB
最終ジャッジ日時 2024-04-17 12:23:36
合計ジャッジ時間 7,333 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
5,248 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>

using namespace std;
using ll = long long;

int main(){
    int N;cin >> N;
    while(N--){
        string _T, _u, _L;
        cin >> _T >> _u >> _L;
        _T.erase(find(_T.begin(), _T.end(), '.'));
        _u.erase(find(_u.begin(), _u.end(), '.'));
        _L.erase(find(_L.begin(), _L.end(), '.'));

        ll T = stoi(_T);
        ll u = stoi(_u);
        ll L = stoi(_L);
        
        for(ll V = 600100;V >= 0;V--){
            if(L * (20 * u) * (3600 * 3600) >= V * 3600 * T * (20 * u) * 10 + V * V * (1000000)){
                printf("%lld.%02lld\n", V / 100, V % 100);
                break; 
            }
        }
    }
    return 0;
}
0