Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:突然发现添加了销毁链表的操作后时间变成0MS了

Posted by 15700764631 at 2016-01-14 10:36:50 on Problem 1007
In Reply To:用链表解决的,汗,16MS 1090B的代码,好像太复杂了点,欢迎大牛改进 Posted by:15700764631 at 2016-01-14 10:18:51
p=head->next;//销毁链表操作
while(p)
{
free(head);
head=p;	
p=p->next;
}
free(head);

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator