結果

問題 No.352 カード並べ
ユーザー fiordfiord
提出日時 2016-03-12 00:10:13
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 21,016 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-25 06:10:01
合計ジャッジ時間 878 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,348 KB
testcase_01 AC 0 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 0 ms
4,348 KB
testcase_04 AC 0 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 0 ms
4,348 KB
testcase_08 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    3 |         int n;  scanf("%d",&n);
      |                 ^~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
	int n;	scanf("%d",&n);
	double ans[]={2.000000000000000,3.333333333333333,5.666666666666667,9.566666666666666,15.566666666666666,24.185714285714287,35.935714285714283,51.324603174603169,70.857936507936500,95.039754689754687,124.373088023088016,159.360267510267505,200.503124653124644,248.303124653124655,303.261457986457970,365.879105045281506,436.656882823059277,516.095479314287331,604.695479314287354};
	printf("%.7lf\n",ans[n-2]);
	return 0;
}
0