qingcheng奕  

2013年5月22日

摘要: http://poj.org/problem?id=3750小孩报数问题好不容易写出了单链表版本,提交竟然out time limited。代码如下:#include <iostream>#include <string>using namespace std;typedef struct child{ char name[20]; struct child* next;};void child_delete(child* p){ child* _p = p->next; p->next = _p->next; free(_p);}int main() 阅读全文
posted @ 2013-05-22 08:57 qingcheng奕 阅读(410) 评论(0) 推荐(0)