
组合---组合数学相关
forezxl
水君一枚
展开
-
BZOJ1008 [HNOI2008]越狱(洛谷P3197)
组合数学原创 2017-10-31 08:12:32 · 637 阅读 · 0 评论 -
洛谷P2822 组合数问题(NOIp2016)
找规律 组合数学原创 2017-10-20 19:10:28 · 725 阅读 · 0 评论 -
BZOJ3505: [Cqoi2014]数三角形(洛谷P3166)
组合BZOJ题目传送门洛谷题目传送门直接计算比较烦,考虑全部方案减不合法的方案。不合法的方案就是三个点都在一条直线上。除去横的和竖的线,其它的枚一枚求一求gcd乘一乘就好了。代码:#include<cstdio>#include<cstring>#include<algorithm>#define N 1005using namespace s...原创 2018-10-08 20:00:01 · 312 阅读 · 0 评论