题目248题目信息运行结果本题排行讨论区
BUYING FEED
时间限制:3000 ms | 内存限制:65535 KB
难度:4
描述
Farmer John needs to travel to town to pick up K (1 <= K <= 100)pounds of feed. Driving D miles with K pounds of fee...
分类:
其他好文 时间:
2016-05-19 17:48:17
阅读次数:
226
题目:
戳题意:
有n个城市,一个人要在m天内travel 这n个城市。他每天在一个城市 要得到一个income 但是从一个城市到另一个城市也要有cost 如果呆在一个城市 也就是在矩阵中的从i到i表示呆在这个城市的cost
nm 都小于100 然后给出n*n的矩阵 cost cost[i][j]表示的是从i到j的花费
然后一个m*n的矩阵 income[i][j]表示第i天在城市j得到的钱...
分类:
其他好文 时间:
2016-05-12 18:31:57
阅读次数:
109
题意:一个不愿意做在bus等时间的人想去旅游,给出n个城市,m条道路和q个询问 题意思路参考:传送门 PS:暴力求n次最小生成树肯定超时、因为边的个数达到了10的5次方 ...
分类:
其他好文 时间:
2016-05-02 22:53:28
阅读次数:
231
A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 or 1, where each 1 marks the h
分类:
其他好文 时间:
2016-03-18 10:44:45
阅读次数:
198
A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 or 1, where each 1 marks the h
分类:
其他好文 时间:
2016-03-14 07:07:25
阅读次数:
178
//晴神模板,dij+dfs,貌似最近几年PAT的的图论大体都这么干的,现在还在套用摸板阶段。。。。估计把这及格图论题题搞完,dij,dfs,并查集就掌握差不多了(模板还差不多)为何bfs能自己干出来,dfs就各种跪。。。。感觉需要把图论的经典算法都码一遍,才能有更深的理解,现在只是浅表 #incl
分类:
其他好文 时间:
2016-03-02 20:05:33
阅读次数:
159
A few time-travel models and the movies that employ them
分类:
其他好文 时间:
2016-02-15 16:18:39
阅读次数:
135
Travel Time Limit: 1500/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2404 Accepted Submission(s): 842 Problem
分类:
其他好文 时间:
2016-02-04 19:08:16
阅读次数:
253
今天终于不加班了!!!让我先撒花 高呼万岁!! 其实 这样的加班工作 有的时候真的挺没有效率的 有几次晚上 我是真的真的 感觉很累了 但是想到项目的进度 我还是默默的抓紧赶 由于有保密问题 没有代码 就谈谈遇到的问题 主要是两个需求的改变,为某行的app的 travel insurance 模块增加
分类:
其他好文 时间:
2016-01-29 00:16:40
阅读次数:
143