首页 > [USACO 2009 Ope S]Cow Digit Game
头像 白色L号谢谢
发表于 2020-07-07 09:17:00
当一个状态的后继状态有一个必败状态,我们可以通过移动到必败状态使得对手败。当一个状态的后继状态全部为必胜状态,无论怎么移动对手都会取胜。所以设d[x]表示先手拿到数字x的取胜情况,直接判断后继点的取胜情况即可。 #include <bits/stdc++.h> #include < 展开全文
头像 savage
发表于 2019-08-16 16:08:46
题目描述 Bessie is playing a number game against Farmer John, and she wants you to help her achieve victory. Game i starts with an integer . Bessie goes 展开全文
头像 savage
发表于 2019-08-17 16:49:56
题目描述 Bessie is playing a number game against Farmer John, and she wants you to help her achieve victory. Game i starts with an integer . Bessie goes 展开全文

等你来战

查看全部