会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
WeiAR
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
15
16
17
18
19
20
21
22
23
···
56
下一页
2019年8月26日
P1627 [CQOI2009]中位数
摘要: P1627 [CQOI2009]中位数对于只考虑相对大小的情况,考虑离散化,或者转化成1,0,-1,1表示比它打,0表示相等,-1表示比它小这个题就是前缀和统计一下答案
阅读全文
posted @ 2019-08-26 14:52 WeiAR
阅读(185)
评论(0)
推荐(0)
2019年8月24日
P3806 【模板】点分治1
摘要: https://www.luogu.org/problem/P3806
阅读全文
posted @ 2019-08-24 10:43 WeiAR
阅读(128)
评论(0)
推荐(0)
2019年8月22日
https://vjudge.net/contest/321565#problem/C 超时代码
摘要: #include #include #include #include #include #include #define inf 2147483647 #define N 10100 #define p(a) putchar(a) #define For(i,a,b) for(register long long i=a;i'9'){if(c=='-')y=-1;c=getchar...
阅读全文
posted @ 2019-08-22 23:31 WeiAR
阅读(361)
评论(0)
推荐(0)
2019年8月21日
P1390 公约数的和
摘要: #include <iostream> #include <cstdio> #include <queue> #include <algorithm> #include <cmath> #include <cstring> #define inf 2147483647 #define N 2000010 #define mod 1000000007 #define p(a) putchar(a)
阅读全文
posted @ 2019-08-21 20:51 WeiAR
阅读(191)
评论(0)
推荐(0)
CodeForces - 803F
摘要: http://codeforces.com/problemset/problem/803/F
阅读全文
posted @ 2019-08-21 20:01 WeiAR
阅读(175)
评论(0)
推荐(0)
P2261 [CQOI2007]余数求和
摘要: P2261 [CQOI2007]余数求和 做法就是分块k%i=k-(k/i)*i;对(k/i)分块,一个细节问题就是n,k谁大谁小的问题
阅读全文
posted @ 2019-08-21 17:11 WeiAR
阅读(201)
评论(0)
推荐(0)
莫比乌斯函数
摘要: #include <iostream> #include <cstdio> #include <queue> #include <algorithm> #include <cmath> #include <cstring> #define inf 2147483647 #define N 1000010 #define p(a) putchar(a) #define For(i,a,b) for(
阅读全文
posted @ 2019-08-21 16:41 WeiAR
阅读(169)
评论(0)
推荐(0)
2019年8月19日
a^a^a^a^a^a^a^a^a
摘要: a^a^a^a是从前向后算,也就是a^(a^3)
阅读全文
posted @ 2019-08-19 19:51 WeiAR
阅读(300)
评论(0)
推荐(0)
C(n,m)的奇偶性判断
摘要: C(n,m)的奇偶性判断奇数:当且仅当(n&m)==m偶数:否则为偶数证明:根据卢卡斯定理,c(n,m)%2=c(n%2,m%2)*c((n>>1),(m>>1))%2;c(0,0)=1c(0,1)=0c(1,0)=1c(1,1)=1也就是只有m当前位为1的时候,n的当前位也必须为1
阅读全文
posted @ 2019-08-19 19:15 WeiAR
阅读(472)
评论(0)
推荐(0)
P1820 寻找AP数
摘要: P1820 寻找AP数两个性质,分解质因数后,连续,且指数递减,dfs就完了
阅读全文
posted @ 2019-08-19 15:48 WeiAR
阅读(233)
评论(0)
推荐(0)
上一页
1
···
15
16
17
18
19
20
21
22
23
···
56
下一页
公告