![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学
lanxuan365
这个作者很懒,什么都没留下…
展开
-
A Bug's Life(分组并查集 奇偶表)
Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gend原创 2015-08-10 20:04:52 · 352 阅读 · 0 评论 -
带模除法
What day is that day?It's Saturday today, what day is it after 11 + 22 + 33 + ... + NN days?InputThere are multiple test cases. The first line of input contains an integer T indicating t原创 2015-07-19 13:24:49 · 1449 阅读 · 0 评论 -
一定要注意特殊情况!!!POJ1845
求A^B的所有因子的和(A,B<=50000000)把A分解最后就是cnt个等比数列求和再相乘然而用等比数列求和公式的时候,有可能因子 mod 9901之后得1,等比数列公式就不对了所以需要特殊判断,也就是这里卡了我很久很久。。。#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>using na原创 2015-08-17 20:26:04 · 393 阅读 · 0 评论 -
hdu 5411 多校——矩阵快速幂模板
#include #include #include using namespace std;const int N = 52;long long ans=0;struct Mat { int mat[N][N];};int num[N];int n, m;Mat a;void init() { int i,j; int x,k; me原创 2015-08-20 21:12:55 · 344 阅读 · 0 评论 -
多校数论题-CRB and Candies
Problem DescriptionCRB has N different candies. He is going to eat K candies.He wonders how many combinations he can select.Can you answer his question for all K(0 ≤ K ≤ N)?CRB is too hu原创 2015-08-20 20:09:43 · 798 阅读 · 0 评论