摘要:
这题目我做的时候有个大坑..................气死我了.......一个int n的定义Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21195Accepted Submission(s): 9480Problem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, .. 阅读全文
posted @ 2013-10-03 21:52
天天AC
阅读(245)
评论(0)
推荐(0)
摘要:
定义一个结构体# include# include# includeusing namespace std;typedef struct{ int *elem; int length; int maxsize;} ListNode;View Code 初始化ListNodevoid InitList(ListNode &L){ L.elem = (int *)malloc(sizeof(int)); if(L.elem == NULL) exit(-1); L.length = 0; L.maxsize = 100;}View Code ... 阅读全文
posted @ 2013-10-03 13:40
天天AC
阅读(434)
评论(0)
推荐(0)
摘要:
定义一个结构体# include# include# includeusing namespace std;typedef struct{ int *elem; int length; int maxsize;} ListNode;View Code 初始化ListNodeint InitList(ListNode &L){ L.elem=(int *)malloc(100*sizeof(int)); if(!L.elem) exit(-1); L.length=0; L.maxsize=100; return 1;}View Co... 阅读全文
posted @ 2013-10-03 12:59
天天AC
阅读(247)
评论(0)
推荐(0)

浙公网安备 33010602011771号