結果
| 問題 |
No.456 Millions of Submits!
|
| コンテスト | |
| ユーザー |
kyuridenamida
|
| 提出日時 | 2016-12-07 22:49:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 561 bytes |
| コンパイル時間 | 1,602 ms |
| コンパイル使用メモリ | 158,300 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-23 03:03:52 |
| 合計ジャッジ時間 | 10,844 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 11 TLE * 1 |
ソースコード
// もちろん落ちるけど
#include <bits/stdc++.h>
using namespace std;
typedef double Double;
#define double long double
double solve(int a,int b,int t){
double l = 0 , r = 10;
for(int i = 0 ; i < 256 ; i++){
double m = (l+r) / 2;
double v = a * m + b * log(m) - log(t);
if( v < 0 ){
l = m;
}else{
r = m;
}
}
return l;
}
int main(){
ios::sync_with_stdio(false);
int n;
cin >> n;
for(int i = 0 ; i < n ; i++){
int a,b,t;
cin >> a >> b >> t;
printf("%.16lf\n",(Double)exp(solve(a,b,t)));
//cout << solve(a,b,t) << endl;
}
}
kyuridenamida