結果
| 問題 | No.456 Millions of Submits! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-07 23:32:48 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 737 bytes |
| 記録 | |
| コンパイル時間 | 680 ms |
| コンパイル使用メモリ | 78,852 KB |
| 実行使用メモリ | 9,088 KB |
| 最終ジャッジ日時 | 2024-06-23 03:56:33 |
| 合計ジャッジ時間 | 8,072 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 12 TLE * 1 |
ソースコード
#include "iostream"
#include "time.h"
#include "stdlib.h"
#include "iomanip"
#include "math.h"
#include "algorithm"
#include "functional"
using namespace std;
int m;
double a, b, t;
double l,r;
double mid;
int start_t;
int end_t;
int num;
int main() {
cin >> m;
//start_t = clock();
for (int i = 0; i < m; i++) {
cin >> a >> b >> t;
//a = rand() % 9+1;
//b = rand() % 9+1;
//t = rand() % 9+1;
l = 0;
r = 10000;
num = 0;
while (num<35) {
mid = (l + r) / 2;
if (pow(mid, a)*pow(log(mid), b) > t) {
r = mid;
}
else {
l = mid;
}
num++;
//cout << setprecision(15) << mid << "\n";
}
cout << setprecision(15) << mid << "\n";
}
//end_t = clock();
//cout << end_t - start_t;
return 0;
}