結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー testestesttestestest
提出日時 2016-12-05 03:25:15
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 91 bytes
コンパイル時間 223 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-05 20:12:56
合計ジャッジ時間 8,717 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1,342 ms
5,376 KB
testcase_02 AC 1,356 ms
5,376 KB
testcase_03 AC 1,362 ms
5,376 KB
testcase_04 AC 1,351 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:22: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | double s,n;int i=5e8;main(){for(scanf("%lf",&n);--i;)s+=1/(i+n)/(i+n);i=!printf("%.0f",s);}
      |                      ^~~~
main.c: In function ‘main’:
main.c:1:33: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | double s,n;int i=5e8;main(){for(scanf("%lf",&n);--i;)s+=1/(i+n)/(i+n);i=!printf("%.0f",s);}
      |                                 ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | double s,n;int i=5e8;main(){for(scanf("%lf",&n);--i;)s+=1/(i+n)/(i+n);i=!printf("%.0f",s);}
main.c:1:33: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    1 | double s,n;int i=5e8;main(){for(scanf("%lf",&n);--i;)s+=1/(i+n)/(i+n);i=!printf("%.0f",s);}
      |                                 ^~~~~
main.c:1:33: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:74: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    1 | double s,n;int i=5e8;main(){for(scanf("%lf",&n);--i;)s+=1/(i+n)/(i+n);i=!printf("%.0f",s);}
      |                                                                          ^~~~~~
main.c:1:74: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:74: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
main.c:1:74: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

double s,n;int i=5e8;main(){for(scanf("%lf",&n);--i;)s+=1/(i+n)/(i+n);i=!printf("%.0f",s);}
0