摘要: 首先杨辉三角是啥: 利益方面,把 (a + b)^n 展开,将会得到一个关于x的多项式: (a + b)^0 = 1 (a + b)^1 = a + b (a + b)^2 = a^2 + 2*a*b + b^2 (a + b)^3 = a^3 + 3*a^2*b + 3*a*b^2 + b^3 ( 阅读全文
posted @ 2017-10-12 21:53 ouyang_wsgwz 阅读(1926) 评论(0) 推荐(0) 编辑
摘要: 把性别相同的虫子放在同一个集合,然后每读入一对虫子号,判断它们在不在同一集合,在则同性别,不在则继续 阅读全文
posted @ 2017-10-12 21:21 ouyang_wsgwz 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn = 30; 8 const int inf = 999999999; 9 double minans; 10 int vis[maxn];//记录选中的点 11 int mp[... 阅读全文
posted @ 2017-10-12 20:49 ouyang_wsgwz 阅读(126) 评论(0) 推荐(0) 编辑