随笔分类 -  *数学---组合数

摘要:神、上帝以及老天爷 HDU - 2048 错排~ c[n] = (n-1) * (c[n-1] + c[n-2]); c[1] = 0; c[2] = 1; 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define ll long lon 阅读全文
posted @ 2017-09-27 16:40 yijiull 阅读(177) 评论(0) 推荐(0)
摘要:844B - Rectangles 最多有2^50*2个!! 我也用long long 了,可是移位的时候忘记了,导致溢出,然后一早起来发现被hack了=_=|| 1<<temp; 1LL<<temp; 1 #include <bits/stdc++.h> 2 using namespace std 阅读全文
posted @ 2017-08-25 09:45 yijiull 阅读(293) 评论(0) 推荐(0)
摘要:839D - Winter is here 题意: 题解: 那个式子我都没想着去化简~太弱了=_= 参考的dalao的代码~ 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define ll long long 4 const int ma 阅读全文
posted @ 2017-08-15 10:48 yijiull 阅读(178) 评论(0) 推荐(0)
摘要:忽然想起来不会编辑公式,,先不写了=_= 阅读全文
posted @ 2017-08-02 09:32 yijiull 阅读(108) 评论(0) 推荐(0)