随笔分类 -  poj_together

摘要:Matches Game Description Here is a simple game. In this game, there are several piles of matches and two players. The two player play in turn. In each 阅读全文
posted @ 2020-07-22 16:49 wqtnb_tql_qwq_%%% 阅读(130) 评论(0) 推荐(0)
摘要:取石子游戏 Description 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好 阅读全文
posted @ 2020-07-22 16:03 wqtnb_tql_qwq_%%% 阅读(125) 评论(0) 推荐(0)
摘要:#include <cstdio> #include <cstring> #include <algorithm> #include <stack> #include <vector> using namespace std; int n,dfn[110],low[110],scc[110],scc 阅读全文
posted @ 2020-07-15 15:39 wqtnb_tql_qwq_%%% 阅读(127) 评论(0) 推荐(0)