思路:高精度\((what)\) 提交:2次(后来发现有种更快的写法) 题解: 设\(n>m\),那么显然答案为\(C(n,m)\),相当于只能放\(m\)个棋子,可以在\(n\)列中选任意不同的\(m\)列上. 刚开始是这种解法:(\(3560ms\)) #include<cstdio> #include<iostream> #define ull unsigned long long #define ll long long #define R register int…
题意:求n-五边形的生成树个数. 结论题,答案为4*n*5^(n-1). 首先中心的n边形一定需要切掉一个边,C(1,n). 然后每个五边形都切一个边,C(1,4)*5^(n-1). 于是答案就是4*n*5^(n-1). # include <cstdio> # include <cstring> # include <cstdlib> # include <iostream> # include <vector> # include <q…