![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
博弈
wxfwxf328
这个作者很懒,什么都没留下…
展开
-
hdu 3544 Alice's Game 【博弈】
后一人会尽量选前一人切后小的一块切。 #include using namespace std; int main() { int t,n,cas=1; long long a,b,x,y; cin>>t; while(t--) { cin>>n; a=b=0; for(int i=0;i<n;i++)原创 2012-02-02 19:42:19 · 1244 阅读 · 0 评论 -
hdu3590 PP and QQ 【ext_anti-nim】
anti-nim 博弈扩展(树形博弈) 详细见:http://wenku.baidu.com/view/e0c822d3240c844769eaeea8.html #include #include #include using namespace std; int head[1000],nxt[1000],ev[1000]; int edge=-1; int fa[2000]; v原创 2012-03-02 18:13:23 · 971 阅读 · 0 评论