結果

問題 No.287 場合の数
ユーザー square1001square1001
提出日時 2016-11-01 10:40:31
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 1,356 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 19,456 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-03 20:36:19
合計ジャッジ時間 898 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
6,816 KB
testcase_01 AC 1 ms
6,940 KB
testcase_02 AC 0 ms
6,940 KB
testcase_03 AC 0 ms
6,940 KB
testcase_04 AC 0 ms
6,940 KB
testcase_05 AC 1 ms
6,944 KB
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 1 ms
6,944 KB
testcase_08 AC 1 ms
6,940 KB
testcase_09 AC 0 ms
6,940 KB
testcase_10 AC 0 ms
6,940 KB
testcase_11 AC 1 ms
6,940 KB
testcase_12 AC 0 ms
6,944 KB
testcase_13 AC 1 ms
6,940 KB
testcase_14 AC 1 ms
6,940 KB
testcase_15 AC 0 ms
6,940 KB
testcase_16 AC 0 ms
6,940 KB
testcase_17 AC 0 ms
6,944 KB
testcase_18 AC 1 ms
6,944 KB
testcase_19 AC 0 ms
6,944 KB
testcase_20 AC 1 ms
6,940 KB
testcase_21 AC 0 ms
6,944 KB
testcase_22 AC 0 ms
6,940 KB
testcase_23 AC 1 ms
6,940 KB
testcase_24 AC 1 ms
6,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:26:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 |         scanf("%d", &n);
      |         ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
long long a[] = {
	28, 266, 1428, 5475, 16808,
	44052, 102552, 217701, 429220, 796510,
	1405196, 2374983, 3868944, 6104360, 9365232,
	14016585, 20520684, 29455282, 41534020, 57629099,
	78796344, 106302780, 141656840, 186641325, 243349236,
	314222598, 402094396, 510233743, 642394400, 802866768,
	996533472, 1228928657, 1506301116, 1835681370, 2224952820,
	2682927091, 3219423688, 3845354084, 4572810360, 5415158517,
	6387136580, 7504957614, 8786417772, 10251009495, 11920039984,
	13816755064, 15966468560, 18396697305, 21137301900, 24220633346,
	27681685668, 31558254651, 35891102808, 40724130700, 46104554728,
	52083091517, 58714149012, 66056024406, 74171109020, 83126100255,
	92992220736, 103845444768, 115766732224, 128842269985, 143163721052,
	158828481450, 175939945044, 194607776387, 214948191720, 237084248244,
	261146141784, 287271512965, 315605762020, 346302372350, 379523242956,
	415439029863, 454229496656, 496083874248, 541201230000, 589790846313,
	642072608812, 698277404242, 758647528196, 823437102795, 892912504440,
	967352801756, 1047050203848, 1132310518989, 1223453623860, 1320813943462,
	1424740941820, 1535599623599, 1653771046752, 1779652846320, 1913659769504,
	2056224222129, 2207796826620, 2368846991610, 2539863493300, 2721355068691
};
int n;
int main() {
	scanf("%d", &n);
	printf("%lld", a[n - 1]);
	return 0;
}
0