| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:突然发现添加了销毁链表的操作后时间变成0MS了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator