博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  哈希

摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1496View Code 1 #include<stdio.h> 2 #include<memory.h> 3 4 int pin[101]; 5 int hash[2000001]; 6 7 int main( ) 8 { 9 int a;10 int b;11 int c;12 int d;13 int i;14 int j;15 int sum;16 for( i=1; i<101; i++ )17 pin[i] = ... 阅读全文

posted @ 2012-10-15 15:07 皇星客栈--Linux 阅读(241) 评论(0) 推荐(0)

摘要:(HDOJ-1425 sort )http://acm.hdu.edu.cn/showproblem.php?pid=1425题目特点:数据量大数据在一定范围View Code 1 #include<cstring> 2 #include<cstdio> 3 //using namespace std; 4 #define num 1000001 5 int Hash[num]; 6 7 int main( ) 8 { 9 int n;10 int m;11 int mid = 500000;12 int max = -mid;13 int min ... 阅读全文

posted @ 2012-10-14 20:23 皇星客栈--Linux 阅读(185) 评论(0) 推荐(0)