結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー 沙耶花沙耶花
提出日時 2022-06-17 21:35:19
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 797 ms / 3,000 ms
コード長 710 bytes
コンパイル時間 4,181 ms
コンパイル使用メモリ 254,288 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-17 13:07:46
合計ジャッジ時間 24,054 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,816 KB
testcase_01 AC 135 ms
6,940 KB
testcase_02 AC 530 ms
6,940 KB
testcase_03 AC 374 ms
6,944 KB
testcase_04 AC 93 ms
6,940 KB
testcase_05 AC 479 ms
6,940 KB
testcase_06 AC 740 ms
6,940 KB
testcase_07 AC 743 ms
6,944 KB
testcase_08 AC 750 ms
6,948 KB
testcase_09 AC 755 ms
6,940 KB
testcase_10 AC 742 ms
6,944 KB
testcase_11 AC 753 ms
6,944 KB
testcase_12 AC 755 ms
6,944 KB
testcase_13 AC 738 ms
6,940 KB
testcase_14 AC 755 ms
6,940 KB
testcase_15 AC 751 ms
6,940 KB
testcase_16 AC 763 ms
6,944 KB
testcase_17 AC 776 ms
6,940 KB
testcase_18 AC 776 ms
6,944 KB
testcase_19 AC 769 ms
6,940 KB
testcase_20 AC 788 ms
6,944 KB
testcase_21 AC 766 ms
6,944 KB
testcase_22 AC 775 ms
6,944 KB
testcase_23 AC 797 ms
6,940 KB
testcase_24 AC 772 ms
6,940 KB
testcase_25 AC 783 ms
6,940 KB
testcase_26 AC 2 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
using mint = modint998244353;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000001



int main(){
	
	int _t;
	cin>>_t;
	
	rep(_,_t){
		long long T,m,L;
		{
			double tt,mm,LL;
			cin>>tt>>mm>>LL;
			T = round(tt*100.0);
			m = round(mm*100.0);
			L = round(LL*100.0);
		}
		L *= 100;
		long long ok = 0,ng = 5100 * 100+1;
		
		while(ng-ok>1LL){
			long long mid  =(ok+ng)/2;
			long long V = mid;
			if(m*L*18*18 >= V*T*m*18*5 + V*V*5*5*5)ok = mid;
			else ng = mid;
			
		}
		double ans = ok;
		ans /= 100.0;
		cout<<fixed<<setprecision(2)<<ans<<endl;
		
		
	}
	
    return 0;
}
0