摘要: #include <cstdio> using namespace std; int n,a[500010],ans; int main(){ scanf("%d",&n); for(int i=1;i<=n;i++)scanf("%d",&a[i]); ans=a[1]; for(int i=2; 阅读全文
posted @ 2020-07-22 20:26 wqtnb_tql_qwq_%%% 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <cstring> using namespace std; int SG[1010],f[1010],cnt; bool S[1010]; void get_SG(){ for(int i=1;i<=1000;i++){ memset(S,0, 阅读全文
posted @ 2020-07-22 19:44 wqtnb_tql_qwq_%%% 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 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_%%% 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 取石子游戏 Description 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好 阅读全文
posted @ 2020-07-22 16:03 wqtnb_tql_qwq_%%% 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Problem Description 对于四川同胞遭受的灾难,全国人民纷纷伸出援助之手,几乎每个省市都派出了大量的救援人员,这其中包括抢险救灾的武警部队,治疗和防疫的医护人员,以及进行心理疏导的心理学专家。根据要求,我校也有一个奔赴灾区救灾的名额,由于广大师生报名踊跃,学校不得不进行选拔来决定最后 阅读全文
posted @ 2020-07-22 15:45 wqtnb_tql_qwq_%%% 阅读(98) 评论(0) 推荐(0) 编辑