ZOJ 2601 Warehouse KeeperThe company where Jerry works owns a number of warehouses that can be used to store various goods. For each warehouse the types of goods that can be stored in this warehouse ar...
分类:
其他好文 时间:
2015-08-18 11:54:54
阅读次数:
136
kafka创建topic时出现如下异常:Errorwhileexecutingtopiccommandorg.apache.zookeeper.KeeperException$NoNodeException:KeeperErrorCode=NoNodefor/brokers/idsorg.I0Itec.zkclient.exception.ZkNoNodeException:org.apache.zookeeper.KeeperException$NoNodeException:Keeper..
分类:
其他好文 时间:
2015-05-28 14:26:09
阅读次数:
2040
ACM,图论,ZOJ3877 ,Earthstone Keeper,双条件最短路
Earthstone Keeper is a famous roguelike game created by Lizard Entertainment. In this game, an adventurer will explore in a single layer dungeon of N × M size.
The adventurer starts at the room (SR, SC) and he wants...
分类:
其他好文 时间:
2015-05-19 19:09:26
阅读次数:
114
#include#include#include#include#include#include#include#include#include#define LL long longusing namespace std;const int MAXN=10;const int INF=0x3f3f...
分类:
其他好文 时间:
2015-04-21 22:14:36
阅读次数:
178
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3867题意:跟炉石游戏里的规则也差不多。给你两个小兵 有生命和攻击,问你第一个去攻击第二个的结果。 1 #include 2 #include 3 #includ.....
分类:
其他好文 时间:
2015-04-13 20:29:35
阅读次数:
133
Earthstone is a famous online card game created by Lizard Entertainment. It is a collectible card game that revolves around turn-based matches between two opponents.
Players start the game with a su...
分类:
其他好文 时间:
2015-04-12 22:46:45
阅读次数:
266
题意:
初始状态为:1个物品,总价为1。
目标状态为:x个物品,总价为y。
操作A:变为x+1,y+y/x。(y不取整)
操作B:变为x, y+1
问最少多少步可以达成条件?(最后操作结束后对y取整)
如果不行输出-1。
题解:
先说"-1"
首先如果x,那么我们可以先一直做操作一,使得状态变为(x,x),然后暴力给y+1
一定可以达成,...
分类:
其他好文 时间:
2015-02-03 17:21:57
阅读次数:
157
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4803解题报告:有一个记录器,一共有两个按钮,还有两行屏幕显示,第一行的屏幕显示的是数目,第二行的屏幕显示的是总价,按第一行的按钮表示单价不变,数量加1,同时第二行的总价会根据当前的单价进行相应的增加,然...
分类:
其他好文 时间:
2014-11-24 23:57:12
阅读次数:
271
Description
Jenny is a warehouse keeper. He writes down the entry records everyday. The record is shown on a screen, as follow:
There are only two buttons on the screen. Pressing the button i...
分类:
其他好文 时间:
2014-10-20 15:06:03
阅读次数:
259
题目链接题意 :屏幕可以显示两个值,一个是数量x,一个是总价y。有两种操作,一种是加一次总价,变成x,1+y;一种是加一个数量,这要的话总价也会相应加上一个的价钱,变成x+1,y+y/x。总价显示的为取整后的整数,小数部分忽略。给定一个目标x,y,初始状态为1,1,求最少需要多少次可以目标状态,不可...
分类:
其他好文 时间:
2014-10-20 14:46:10
阅读次数:
150