結果

問題 No.456 Millions of Submits!
コンテスト
ユーザー mamekin
提出日時 2016-12-14 20:59:29
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 922 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 609 ms
コンパイル使用メモリ 113,852 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-03-08 21:56:26
合計ジャッジ時間 10,592 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 6 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#define _USE_MATH_DEFINES
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
#include <iterator>
using namespace std;

int main()
{
    int m;
    cin >> m;

    while(--m >= 0){
        int a, b;
        double t;
        cin >> a >> b >> t;

        double left = 1.0;
        double right = 100000.0;
        for(int i=0; i<100; ++i){
            double n = (left + right) / 2.0;
            double x = pow(n, a) * pow(log(n), b);
            if(x < t)
                left = n;
            else
                right = n;
        }
        printf("%.10f\n", left);
    }

    return 0;
}
0