![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C嘎嘎
爱吃紫菜汤的懒小猪
这个作者很懒,什么都没留下…
展开
-
C++ 链表基本操作
#include<cstdio>using namespace std;struct Node{int data;Node *next;};typedef Node *Mylist;void Createlist(Mylist &head,int n);//1Mylist Copylist(Mylist L);//2void InsertElem(Mylist &head,int原创 2017-11-07 20:48:31 · 197 阅读 · 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 · 302 阅读 · 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 · 266 阅读 · 0 评论 -
POJ1005
I Think I Need a HouseboatTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 105926 Accepted: 46115DescriptionFred Mapper is considering purchasing some land原创 2017-11-02 10:26:09 · 173 阅读 · 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 · 232 阅读 · 0 评论