摘要: #include #include DWORD WINAPI Fun1Proc( LPVOID lpParameter );DWORD WINAPI Fun2Proc( LPVOID lpParameter );int index=0;int tickets=100;HANDLE hMutex;/... 阅读全文
posted @ 2014-04-19 20:35 Blue-Dream 阅读(157) 评论(0) 推荐(0) 编辑
摘要: void GetResult(int*p,int& Get_Result){ //在这里实现功能int i,j,P,pt,m,v; P = *(p+0+0);m=*(p+0+1);memset(DP,0,sizeof(DP));for(i=0;i=v;j--) { DP[j]=MAX(DP[j-... 阅读全文
posted @ 2014-04-19 16:58 Blue-Dream 阅读(85) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { int []a=new int[1000002]; a[0]=1; a[1]=1; a[2]=2; a[3]=2; for(int i=2;i<=500000;i++){ a[2*i]=(a[i]+a[2*... 阅读全文
posted @ 2014-04-19 16:57 Blue-Dream 阅读(404) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class people{public:int a;int b; people():a(0),b(0){};people(int x,int y):a(x),b(y){}; people& operator+=(const people&)... 阅读全文
posted @ 2014-04-19 14:17 Blue-Dream 阅读(156) 评论(0) 推荐(0) 编辑