Time Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionYou are in a cave, a long cave! The cave can be represented by a1 x Ngrid. ...
分类:
其他好文 时间:
2015-05-22 00:30:06
阅读次数:
196
全球黄金需求在第一季度下降1%,受到中国投资者蜂拥投入牛市炒股所导致的珠宝购买大幅减少的打击。世界黄金协会(World Gold Council)昨日在一份报告中表示,在中国股市上涨的同时,该全球最大黄金消费国的珠宝需求下降10%。http://www.ximalaya.com/zhubo/27479671/
http://www.ximalaya.com/zhubo/27479672/
ht...
分类:
其他好文 时间:
2015-05-18 06:37:06
阅读次数:
154
{
itemid:“272475230”,
item_name:“又再又环北冰洋”,
stock:11,
price:“11111.00”,
sold:0,
seller_id:“406467”,
istop:0,
merchant_code:“2e”,
fx_fee_rate:“0.00”,
status:"onsale",
skus:[{
id:“914449912”,
title:“gold”,
price:“11111.00”,
stock:“11..
分类:
其他好文 时间:
2015-05-16 18:45:11
阅读次数:
315
Gold Nuggets Distribution(0490)Time limit(ms): 1000Memory limit(kb): 65535Submission: 421Accepted: 234DescriptionBosses have a bag of gold. Each month...
分类:
其他好文 时间:
2015-05-08 21:51:40
阅读次数:
200
Gold TransportationTime Limit:2000MSMemory Limit:65536KTotal Submissions:3060Accepted:1089DescriptionRecently, a number of gold mines have been discov...
分类:
其他好文 时间:
2015-05-08 12:45:47
阅读次数:
120
题意:
给N个字符,每次只能取第一个或者最后一个,问构成最小字典序的串是什么。
思路:
贪心,每次取字典序最小的串,的首字符。
其实就是l和r比较一下构成的串那个字典序小。
这里运用后缀数组要实现O(1)的查询。
将原串反拼进串内做da。
然后根据ra判断。
代码:
#include"cstdlib"
#include"cstdio"
#include"cstring"
#inc...
分类:
编程语言 时间:
2015-05-07 16:47:58
阅读次数:
147
Problem StatementYou are a goblin miner. Your job is to mine gold.Picture yourself located in a mine. The mine can be seen as a rectangular grid of (N+1) times (M+1) cells. Rows are numbered 0 through...
分类:
其他好文 时间:
2015-05-07 16:41:22
阅读次数:
122
B - Discovering Gold
Description
You are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave can contain any amount of gold.
Initially you are in positi...
分类:
其他好文 时间:
2015-05-05 08:54:20
阅读次数:
129
@keyframes fadein { 0%{ opacity:0; background-color:red; } 40% { background-color:darkblue; } 70% { background-color:gold; } 100% { opacity:1; backg.....
分类:
Web程序 时间:
2015-05-04 19:59:58
阅读次数:
149
题目:给你一个二维的地图,里面有陷阱'T',金子'G'以及墙壁'#',和普通的道路'.',现在已知一个人在起点'P';
每次只能走到上下左右4个方向的格子,如果走到一个格子周围有陷阱,人就会停下不走,防止陷阱;
问最多能得到多少金子。
分析:图论,搜索。直接利用dfs求解即可,把'T'周围的点标记成停止即可。
说明:╮(╯▽╰)╭。
#in...
分类:
其他好文 时间:
2015-05-02 08:29:16
阅读次数:
163