結果
| 問題 | No.456 Millions of Submits! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-07 23:02:47 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 553 bytes |
| 記録 | |
| コンパイル時間 | 656 ms |
| コンパイル使用メモリ | 97,676 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-07 17:50:44 |
| 合計ジャッジ時間 | 6,213 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 6 |
ソースコード
#include "iostream"
#include "iomanip"
#include "math.h"
#include "algorithm"
#include "functional"
using namespace std;
const double dis = 0.0000000005;
int m;
double a, b, t;
double l,r;
double mid;
int main() {
cin >> m;
for (int i = 0; i < m; i++) {
cin >> a >> b >> t;
l = 0;
r = 100;
while ((r*r - l*r) > dis*r) {
mid = (l + r) / 2;
if (pow(mid, a)*pow(log(mid),b) > t) {
r = mid;
}
else {
l = mid;
}
//cout << setprecision(15) << mid << "\n";
}
cout << setprecision(15) << mid << "\n";
}
return 0;
}