会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
SunZY_
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2014年11月5日
noip2012借教室
摘要: 答案满足单调性 二分即可以前缀和的形式存储每天需要教室的数量 计算时暴力O(n)算出每天教室的数量这样总复杂度nlognps:自己真是作死居然用cin..AC代码被cin卡到45#include #include #include #include #include #define N 100000...
阅读全文
posted @ 2014-11-05 08:39 SunZY_
阅读(171)
评论(0)
推荐(0)
编辑
2014年11月2日
乘法逆元
摘要: #include #include #include #include #include using namespace std;typedef long long LL;LL gcd(LL a,LL b){ return b==0?a:gcd(b,a%b);}void kzgcd(LL a,...
阅读全文
posted @ 2014-11-02 14:49 SunZY_
阅读(149)
评论(0)
推荐(0)
编辑
2014年10月30日
noip2008T2 火柴棒等式
摘要: 只会做这种弱智的水题了怎么办。。范围太小枚举便可若范围n#include #include #include #include using namespace std;int n;int pd[10000]; int a[10]={6,2,5,5,4,5,6,3,7,6};int b[4][6];i...
阅读全文
posted @ 2014-10-30 00:21 SunZY_
阅读(236)
评论(0)
推荐(0)
编辑
2014年10月20日
我是逗比!!!!!!
摘要: set和map都不怎么会用的逗比就这样完挂了第一次cfdiv2 D#include #include #include #include #include #include using namespace std;set a,b,c;int aa[400001],bb[400001];int n,k...
阅读全文
posted @ 2014-10-20 00:44 SunZY_
阅读(212)
评论(0)
推荐(0)
编辑
2014年10月15日
noip2006 能量项链
摘要: 做noip水题- -得练dp先找找信心#include #include #include #include using namespace std;int a[1000];int f[1000][1000];int main(){ int n; cin>>n; for (int ...
阅读全文
posted @ 2014-10-15 17:33 SunZY_
阅读(143)
评论(0)
推荐(0)
编辑
2014年9月25日
记录先修课。。
摘要: 生日相同八皇后分解因数走出迷宫流感传染布尔表达式汉诺塔问题输出二进制补码多边形游戏逆波兰表达式DNA排序带通配符的字符串匹配求序列中的众数最长单词2错误勘探距离排序分数求和单词替换第二个重复出现的数字符串的题目都再看一看 坑比较多。。
阅读全文
posted @ 2014-09-25 14:42 SunZY_
阅读(151)
评论(0)
推荐(0)
编辑
公告