题目:传送门。 题意:长度为N的格子,Alice和Bob各占了最左边以及最右边K个格子,每回合每人可以选择一个棋子往对面最近的一个空格移动。最先不能移动的人获得胜利。 题解: k=1时 很容易看出,n为奇数则后手获胜,n为偶数则先手获胜 k>1时 如果n=2*k+1,则棋 盘中只有一个空白的格子,每 ...
分类:
其他好文 时间:
2016-08-11 20:54:29
阅读次数:
122
Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to vis ...
分类:
其他好文 时间:
2016-07-29 21:23:48
阅读次数:
209
8-24 stone.c 8-25 gameoflife.c ...
分类:
其他好文 时间:
2016-07-19 20:50:43
阅读次数:
178
dp方程很简单: f[i] = min{ f[i-j] } + stone[i] 但是数据10^9太大了,超时超空间,这样只能过30% 来自:http://blog.csdn.net/w19960702123/article/details/40478187 当我们看到10^9与100块石头,和s, ...
分类:
其他好文 时间:
2016-07-08 18:04:23
阅读次数:
120
words: parcel,包裹 detective,侦探 expect,期待 airfield,飞机起落的场地 guard,警戒,守卫,n precious,adj,珍贵的 stone,石头 expressions: keep guard,守卫 to one's surprise,令某人吃惊 过去 ...
分类:
其他好文 时间:
2016-07-08 13:30:25
阅读次数:
171
A New Stone Game Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 5453 Accepted: 2989 Description Alice and Bob decide to play a new stone g ...
分类:
其他好文 时间:
2016-07-06 23:31:22
阅读次数:
374
Frogger Time Limit: 1000MS Memory Limit: 65536K Time Limit: 1000MS Memory Limit: 65536K Description Freddy Frog is sitting on a stone in the middle of ...
分类:
其他好文 时间:
2016-07-02 17:17:26
阅读次数:
3835
There is a stone game.At the beginning of the game the player picks n piles of stones in a line. The goal is to merge the stones in one pile observing ...
分类:
其他好文 时间:
2016-06-22 18:37:01
阅读次数:
138
摘要本文主要介绍在部署cassandra集群以及使用cassandra过程中遇到的一些问题。文章只发布在CSDN 和个人站点更多nosql文章可以访问stone fang 个人主页
正文Q1:cassandra 如何将一个节点设置为seed node,seed node与其他node有什么区别A1:设置seed node很简单,在cassandra.yaml 中 -seeds 选项中设置。可以设置...
分类:
其他好文 时间:
2016-06-21 07:29:02
阅读次数:
305
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 turns to remove 1 to 3 stones. The one who removes the last stone will be the...
分类:
其他好文 时间:
2016-06-21 06:42:30
阅读次数:
130