
hash
shuangyueliao
这个作者很懒,什么都没留下…
展开
-
前m大的数
http://acm.hdu.edu.cn/showproblem.php?pid=1280 #include #include using namespace std; int n,m,hash1[10010],a[3010]; int main() { int i,j,temp; while(cin>>n>>m) { memset(hash1,0,sizeof(hash原创 2015-07-20 23:24:42 · 439 阅读 · 0 评论 -
敌兵布阵
http://acm.hdu.edu.cn/showproblem.php?pid=1166 #include #include using namespace std; int n,a[50005]; char sh[15]; int lowbit(int i) { return i&(-i); } void updata(int i,int val) { while原创 2015-07-21 23:34:35 · 472 阅读 · 0 评论