1 2 3 4 5 6 7 8 9
| #include <cstdio> int Ans[110] = {0, 2, 6, 40, 290, 3486, 43246, 755616, 13408452, 307487950, 127190630, 344174518, 737806111, 598547111, 84861666, 600841977, 859818824, 995583605, 447205830, 510213804, 718971337, 980895796, 486718666, 887058925, 91801289, 792774646, 48881882, 535088132, 499788903, 412557256, 241482037, 485793783, 900854629, 595628402, 619228279, 190026404, 664155715, 607267617, 275647528, 891974277, 923140092, 74701752, 472302467, 597286332, 549513641, 979861011, 30168574, 388375848, 994336080, 992981349, 433660335, 757041922, 671041214, 748478731, 854334582, 259977065, 333747051, 712109593, 939736254, 723515420, 361927586, 296747311, 217466295, 385808178, 976646435, 837183419, 343441064, 643434731, 528583747, 764921683, 951459111, 12267105, 463197309, 754140426, 696112600, 608621579, 768559754, 75512116, 877279933, 110424636, 795702436, 222122860, 647387539, 483228718, 428782274, 47135023, 391680856, 195888837, 925613007, 666378996, 388886740, 884518820, 857910798, 979779993, 163561272, 388591041, 425964062, 523897739, 648164552, 502643920, 698163860}; int main () { int n = 0; scanf("%d", &n); printf("%d", Ans[n]); return 0; }
|