結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<math.h>

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 = pow(2.71828183,10);
		for(j = 1;j <= 40;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