摘要:
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()
阅读全文