結果

問題 No.456 Millions of Submits!
ユーザー butsurizukibutsurizuki
提出日時 2016-12-08 13:03:20
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 450 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 26,468 KB
実行使用メモリ 6,512 KB
最終ジャッジ日時 2023-09-05 14:12:57
合計ジャッジ時間 9,448 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 15 ms
4,376 KB
testcase_08 AC 14 ms
4,376 KB
testcase_09 AC 142 ms
4,376 KB
testcase_10 AC 141 ms
4,380 KB
testcase_11 AC 1,402 ms
4,376 KB
testcase_12 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<math.h>
#define X 25000

int main(void){
	int i,j,n,a,b;
	double min,max,c,t,ax,bx;
	scanf("%d",&n);
	for(i = 1;i <= n;i++){
		scanf("%d%d%lf",&a,&b,&t);
		min = 0;max = X;
		for(j = 1;j <= 100;j++){
			c = (min+max)/2;
			if(a != 0){ax = pow(c,a);}else{ax = 1.0f;}
			if(b != 0){bx = log(c);bx = pow(bx,b);}else{bx = 1.0f;}
			if(ax*bx < t){min = c;}
			else{max = c;}
		}
		printf("%.12lf\n",(max+min)/2);
	}
	return 0;
}
0