摘要:
快速排序+随机化: cpp include define Rand(a,b) rand()%(b a)+a using namespace std; const int maxn=200010; int a[maxn]; int read(){ int Value=0,Base=1;char Ch= 阅读全文
摘要:
好久没写博客了。不过noip的努力一直没有停止过~ 今天学习了线性筛的扩展,正好时间有空,就来写博客了 1.线性筛 线性筛思路还是比较简单,即保证每个数只被它最小的因数筛去一次, 先看裸的代码: cpp include using namespace std; const int maxn=1000 阅读全文
摘要:
来看一下这道题~ "题目链接" 题目描述 Bessie is leading the cows in an attempt to escape! To do this, the cows are sending secret binary messages to each other. Ever t 阅读全文