C嘎嘎
爱吃紫菜汤的懒小猪
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++ 链表基本操作
#include<cstdio> using namespace std; struct Node{ int data; Node *next; }; typedef Node *Mylist; void Createlist(Mylist &head,int n);//1 Mylist Copylist(Mylist L);//2 void InsertElem(Mylist &head,int原创 2017-11-07 20:48:31 · 239 阅读 · 0 评论 -
POJ1328 贪心算法
Radar Installation Time Limit: 1000MSMemory Limit: 10000K Total Submissions: 93202Accepted: 20809 Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea原创 2017-11-08 15:07:43 · 369 阅读 · 0 评论 -
POJ 1012 约瑟夫问题
Joseph Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 55108 Accepted: 21067Description The Joseph’s problem is notoriously known. For those who are not familiar with the original probl原创 2017-11-09 10:26:55 · 352 阅读 · 0 评论 -
POJ1005
I Think I Need a Houseboat Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 105926 Accepted: 46115 Description Fred Mapper is considering purchasing some land原创 2017-11-02 10:26:09 · 209 阅读 · 0 评论 -
nlogn排序-归并排序
网上看了各种排序,想实现几种nlogn 的,以备不时之需 以下C嘎嘎归并排序代码using namespace std; void merge(int *a,int first,int mid,int last,int *temp) { int i=first,j=mid+1; int m=mid,n=last; int k=0; while(i<=m&&j<=n转载 2017-11-04 01:17:59 · 295 阅读 · 0 评论
分享