In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic ...
分类:
编程语言 时间:
2018-08-02 22:43:47
阅读次数:
158
传送门 题目大意 给定一个数N,现在又一个数x,在1~N之间,现在每次可以猜一个数a,返回gcd(x,a),问说最少猜几次可以确定x。 分析 这个题应该可以算是贪心,但是没人知道这样为啥是对的(雾),我们现在来感性认识一下,我们知道对于任意一个数都可以写p1e1p2e2 ... 的形式,所以我们在每 ...
分类:
其他好文 时间:
2018-08-02 13:51:11
阅读次数:
120
最近想要模仿写雪人兄弟得游戏,其中开场想要用雪花效果。自己琢磨了半天,又去找了一些文章参考,最后实现效果如下: 这是最终得实现效果,一开始参照了Phaser3官方的demo,找了一圈没找到合适得。其中有一个是game objects\group\sprite pool.js 下面的例子,仿照得做发现 ...
分类:
其他好文 时间:
2018-08-01 18:15:37
阅读次数:
1340
var dir = new Dictionary<string, string>(); dir.Add("channelId", "1"); dir.Add("gameid", "1"); dir.Add("game_id", "1"); dir.Add("orderStatus", "1"); d ...
分类:
编程语言 时间:
2018-08-01 14:09:02
阅读次数:
269
Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto ...
分类:
其他好文 时间:
2018-08-01 11:39:10
阅读次数:
211
Little Q and Little T are playing a game on a tree. There are n vertices on the tree, labeled by 1,2,...,n , connected by n?1 bidirectional edges. The ...
分类:
其他好文 时间:
2018-07-31 23:32:58
阅读次数:
203
Alice and Bob are playing a simple game. They line up a row of n identical coins, all with the heads facing down onto the table and the tails upward. ...
分类:
其他好文 时间:
2018-07-31 22:10:50
阅读次数:
197
"292. Nim Game" Description You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take ...
分类:
其他好文 时间:
2018-07-31 19:17:05
阅读次数:
223
题目链接:https://www.nowcoder.com/acm/contest/141/C 题目描述 Eddy likes to play cards game since there are always lots of randomness in the game. For most of ...
分类:
其他好文 时间:
2018-07-31 11:16:29
阅读次数:
169
https://zybuluo.com/ysner/note/1232552 题面 一棵$n$个点的有根树,两个人轮流操作。一次操作是选择一条边,删除此边以及删掉边后和根不连通的部分。询问谁有必胜策略。 $n\leq10^5,T\leq100$ 解析 可以把这棵树看成一堆石子,每个点(或它的父边)看 ...
分类:
其他好文 时间:
2018-07-31 01:30:47
阅读次数:
169