結果
問題 | No.456 Millions of Submits! |
ユーザー | くれちー |
提出日時 | 2016-12-08 14:13:33 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 471 ms |
コンパイル使用メモリ | 24,816 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-05 14:34:38 |
合計ジャッジ時間 | 11,906 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 0 ms
4,380 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 1 ms
4,380 KB |
testcase_07 | AC | 5 ms
4,376 KB |
testcase_08 | AC | 5 ms
4,376 KB |
testcase_09 | AC | 41 ms
4,376 KB |
testcase_10 | AC | 41 ms
4,380 KB |
testcase_11 | AC | 399 ms
4,380 KB |
testcase_12 | WA | - |
コンパイルメッセージ
main.c:1:24: warning: data definition has no type or storage class double a,b,t,s,n,x,y,z;m; ^ main.c:1:24: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(){for(scanf("%d",&m);m--;printf("%.10lf\n",s)){scanf("%lf%lf%lf",&a,&b,&t);!a?(s=exp(pow(t,1/b))):!b?(s=pow(t,1/a)):0;if(a&&b){n=1;x=pow(t,1/b);y=a/b;for(;s!=n;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n):(n-=z/4)));}}} ^~~~ main.c: In function ‘main’: main.c:2:12: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] main(){for(scanf("%d",&m);m--;printf("%.10lf\n",s)){scanf("%lf%lf%lf",&a,&b,&t);!a?(s=exp(pow(t,1/b))):!b?(s=pow(t,1/a)):0;if(a&&b){n=1;x=pow(t,1/b);y=a/b;for(;s!=n;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n):(n-=z/4)));}}} ^~~~~ main.c:2:12: warning: incompatible implicit declaration of built-in function ‘scanf’ main.c:2:12: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +#include <stdio.h> double a,b,t,s,n,x,y,z;m; main(){for(scanf("%d",&m);m--;printf("%.10lf\n",s)){scanf("%lf%lf%lf",&a,&b,&t);!a?(s=exp(pow(t,1/b))):!b?(s=pow(t,1/a)):0;if(a&&b){n=1;x=pow(t,1/b);y=a/b;for(;s!=n;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n):(n-=z/4)));}}} ^~~~~ main.c:2:31: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] main(){for(scanf("%d",&m);m--;printf("%.10lf\n",s)){scanf("%lf%lf%lf",&a,&b,&t);!a?(s=exp(pow(t,1/b))):!b?(s=pow(t,1/a)):0;if(a&&b){n=1;x=pow(t,1/b);y=a/b;for(;s!=n;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n):(n-=z/4)));}}} ^~~~~~ main.c:2:31: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:2:31: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:2:87: warning: implicit declaration of function ‘exp’ [-Wimplicit-function-declaration] main(){for(scanf
ソースコード
double a,b,t,s,n,x,y,z;m; main(){for(scanf("%d",&m);m--;printf("%.10lf\n",s)){scanf("%lf%lf%lf",&a,&b,&t);!a?(s=exp(pow(t,1/b))):!b?(s=pow(t,1/a)):0;if(a&&b){n=1;x=pow(t,1/b);y=a/b;for(;s!=n;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n):(n-=z/4)));}}}