hdoj_5643 King's Game(约瑟夫环问题变种)----超时版本(自己模拟的循环链表)
我很搞笑的用C++写了个C版本的双向循环链表(虽然是超时的,但是很久没有写过链表的,所以试一试)。。。#include#include#include#includeusingnamespacestd;structnode{intnum;structnode*pre,*next;};structnode*create(structnode*head,intn){structnode*p,*q;fo