結果

問題 No.456 Millions of Submits!
ユーザー tailstails
提出日時 2016-12-09 13:53:52
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1,217 ms / 4,500 ms
コード長 147 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 24,640 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-05 21:34:42
合計ジャッジ時間 9,108 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 0 ms
4,380 KB
testcase_02 AC 0 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,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 13 ms
4,380 KB
testcase_10 AC 13 ms
4,376 KB
testcase_11 AC 122 ms
4,376 KB
testcase_12 AC 1,217 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:12: warning: data definition has no type or storage class
 double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}
            ^
main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int]
 double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}
              ^~~~
main.c: In function ‘main’:
main.c:1:14: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:14: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:28: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}
                            ^~~~
main.c:1:40: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}
                                        ^~~~~
main.c:1:40: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:40: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}
                                        ^~~~~
main.c:1:66: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}
                                   

ソースコード

diff #

double t,n;i;main(a,b){for(gets(&a);i=~scanf("%d%d%lf",&a,&b,&t);printf("%.10f\n",exp(n)))for(n=.1;++i<6;n-=(a*n+b*log(n)-log(t))/(a+b/n))n=!b?:n;}
0