結果
問題 | No.456 Millions of Submits! |
ユーザー |
![]() |
提出日時 | 2016-12-08 14:18:50 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 2,907 ms / 4,500 ms |
コード長 | 253 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 21,632 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 03:13:19 |
合計ジャッジ時間 | 10,151 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
main.c:1:24: warning: data definition has no type or storage class 1 | double a,b,t,s,n,x,y,z;q,m; | ^ main.c:1:24: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] main.c:1:26: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 1 | double a,b,t,s,n,x,y,z;q,m; | ^ main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | 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(q=1;q;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n,q=0):(n-=z/4)));}}} | ^~~~ main.c: In function ‘main’: main.c:2:12: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 2 | 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(q=1;q;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n,q=0):(n-=z/4)));}}} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | double a,b,t,s,n,x,y,z;q,m; main.c:2:12: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 2 | 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(q=1;q;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n,q=0):(n-=z/4)));}}} | ^~~~~ main.c:2:12: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:2:31: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 2 | 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(q=1;q;z=n-exp(x/pow(
ソースコード
double a,b,t,s,n,x,y,z;q,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(q=1;q;z=n-exp(x/pow(n,y)),(fabs(z)<10e-10?(s=n,q=0):(n-=z/4)));}}}