D. Tokitsukaze, CSL and Stone Game 题意:有n堆石头,每人每次只能去一颗石子,若轮到当前人没任何一堆石子可以取或当前人取到后剩下有俩堆石子个数相同则当前人输; 给定石子序列。 分析:1、若有类似“2 3 3 ”则后手胜,因为有这个序列就必须在这个序列中去石子(因为如 ...
分类:
其他好文 时间:
2019-07-13 13:50:33
阅读次数:
110
去吧,皮皮虾 题意: 有 n 堆石子,每堆有 a[ i ] 个,然后每次 操作 可以选择任意一堆 石子,取走一个。 若你取完了之后,存在两堆石子,他们的个数一样多,你就输了( 包括两堆都是0个), 或者你不能取了,你也输了。 解: 1、若只有一堆,那就判奇偶就行了。 2、若存在 至少 两对 相等个数 ...
分类:
其他好文 时间:
2019-07-13 13:49:50
阅读次数:
274
https://codeforces.com/contest/1191/problem/D 好像在哪里见过类似的? 相当于在棋盘上面移动棋子,每次只能左移一格,移动完之后有棋子重叠或本身就是不能移动就输。 那么只有一颗棋子的情况,判断奇偶就行。 当有多颗棋子,假如检测到某两颗棋子重叠,那么左边那颗棋 ...
分类:
其他好文 时间:
2019-07-13 09:26:36
阅读次数:
99
链接: https://vjudge.net/problem/HDU 1054 题意: Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution f ...
分类:
其他好文 时间:
2019-07-10 23:09:56
阅读次数:
148
Nginx 1、nginx启动的2种方式 + 这2种方式不能混用,只能用一种 2、nginx的配置文件 3、站点目录配置解析 http server location 扩展了解项 4、nginx搭建静态资源web服务器 编写Nginx配置文件 [root@nginx conf.d] cat game ...
分类:
其他好文 时间:
2019-07-10 20:08:23
阅读次数:
115
"题目" include include using namespace std; int dfs(int a,int b,int ans) { if(a%b==0) { return ans; } else if(a b&&a ...
分类:
其他好文 时间:
2019-07-10 10:27:45
阅读次数:
85
You are given a tree (an undirected connected acyclic graph) consisting of nn vertices. You are playing a game on this tree. Initially all vertices ar ...
分类:
其他好文 时间:
2019-07-10 01:16:01
阅读次数:
78
步骤创建GameObject(命名Mesh Genrate网格生成器),为其添加两个组件Mesh Filter和Mesh Renderer.,创建脚本Mesh Genrate。 【1】基础知识 【1】基础知识 (Unity三角形绘制渲染,正反都是顺时针方向:012;132) ...
分类:
编程语言 时间:
2019-07-09 19:12:46
阅读次数:
90
题目链接:http://codeforces.com/problemset/problem/1187/E E. Tree Painting You are given a tree (an undirected connected acyclic graph) consisting of n<!-- ...
分类:
其他好文 时间:
2019-07-09 10:50:32
阅读次数:
74
五星宏辉游戏项目小结 web服务端和game服务端的区别 Server的定义和分类 wiki对Server的定义: In computing, a server is a computer program or a device that provides functionality for oth ...
分类:
其他好文 时间:
2019-07-09 00:02:30
阅读次数:
116