摘要: https://www.luogu.com.cn/problem/P2599 全部不为1的时候 如果面临两部分相等,那么后手赢 否则先手赢 #include<bits/stdc++.h> using namespace std; int t,n,a1,an,c; int main() { //fre 阅读全文
posted @ 2020-04-11 20:03 Hazelxcf 阅读(166) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1045 #include <bits/stdc++.h> using namespace std; int n; char ch[10][10]; int dp[4][2] = {-1,0,1,0,0,-1,0,1 阅读全文
posted @ 2020-04-11 18:22 Hazelxcf 阅读(148) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1728 要注意题目给的输入顺序, dfs里面第三条如果不共线并且相应步数已经到了的话 #include <bits/stdc++.h> using namespace std; int t,m,n,k,x1,yy1 阅读全文
posted @ 2020-04-11 16:49 Hazelxcf 阅读(133) 评论(0) 推荐(0) 编辑