結果
問題 | No.456 Millions of Submits! |
ユーザー | butsurizuki |
提出日時 | 2016-12-08 22:04:25 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 26,432 KB |
実行使用メモリ | 6,700 KB |
最終ジャッジ日時 | 2023-09-05 20:57:43 |
合計ジャッジ時間 | 9,354 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,504 KB |
testcase_03 | AC | 1 ms
4,384 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,384 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 7 ms
4,380 KB |
testcase_08 | AC | 7 ms
4,380 KB |
testcase_09 | AC | 60 ms
4,376 KB |
testcase_10 | AC | 59 ms
4,376 KB |
testcase_11 | AC | 588 ms
4,384 KB |
testcase_12 | TLE | - |
ソースコード
#include<stdio.h> #include<math.h> #define e 2.7182818284590452355 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); if(a!=0){min = 0;max = 10;} else{bx = b;printf("%.12lf\n",pow(e,pow(t,1/bx)));continue;} for(j = 1;j <= 40;j++){ c = (min+max)/2; ax = pow(c,a); bx = pow(log(c),b); if(ax*bx < t){min = c;} else{max = c;} } printf("%.12lf\n",(max+min)/2); } return 0; }