摘要: ```cpp include include include using namespace std; int n, l, k; double dp[205][205][205], ans;//pass [] gates, win [] games, with size[] struct Node{ 阅读全文
posted @ 2018-03-13 19:33 poorpool 阅读(98) 评论(0) 推荐(0)
摘要: 容斥搞出 gcd 不是 $1$ 的四元组个数。 "参考" cpp include include include using namespace std; typedef long long ll; int n, cnt[10005], num[10005], uu, fac[35], din; l 阅读全文
posted @ 2018-03-13 18:54 poorpool 阅读(97) 评论(0) 推荐(0)
摘要: nim和线性基 include include include using namespace std; typedef long long ll; int n, uu, ji[35], a[105]; ll ans; int main(){ cin n; for(int i=1; i=1; i ) 阅读全文
posted @ 2018-03-13 11:30 poorpool 阅读(111) 评论(0) 推荐(0)
摘要: 模意义下整数高斯消元 cpp include include include using namespace std; int n, m, k, uu, a[305][305]; char ss[15]; int getDay(){ if(ss[0]=='M') return 1; if(ss[0] 阅读全文
posted @ 2018-03-13 10:49 poorpool 阅读(161) 评论(0) 推荐(0)