【题目】
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas
to travel from sta...
分类:
其他好文 时间:
2014-09-10 10:58:30
阅读次数:
216
Gas Station
Total Accepted: 19381 Total
Submissions: 75345My Submissions
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car w...
分类:
其他好文 时间:
2014-09-09 16:05:40
阅读次数:
203
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs...
分类:
其他好文 时间:
2014-09-09 10:42:38
阅读次数:
157
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[...
分类:
其他好文 时间:
2014-09-07 00:57:24
阅读次数:
148
GAS orGNU assyntax is a different form of syntax for assembly language files, known also as AT&T syntax after the original style. It is commonly used ...
分类:
其他好文 时间:
2014-09-06 22:32:33
阅读次数:
322
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[...
分类:
其他好文 时间:
2014-09-04 20:39:00
阅读次数:
153
class Solution {
public:
int canCompleteCircuit(vector &gas, vector &cost) {
int len = gas.size();
int tank_all = 0;
int pos = 0;
int tank_cur =0;
for (int i = 0; i < len; i++){
int tank...
分类:
其他好文 时间:
2014-09-04 17:08:19
阅读次数:
181
The area west of Hamburg's central railway station is mainly a shopping area with the streets Spitaler Straße and Mönckebergstraße, leading to Hamburg...
分类:
其他好文 时间:
2014-09-03 22:39:47
阅读次数:
516
题目地址:HDU 3879
无语。。。对这题的数据范围无语。。刚上来一看,建图思路很快出来了,但是一看数据范围。。需要5w个点。。于是我以为需要缩点或是别的优化。。于是又想了会怎么优化,感觉没法优化了。。于是上网一搜。。还真都是就这么过了。。。过了。。过了。。于是,我就按刚上来那个思路敲,结果203ms过了。。。我真怀疑出题者是不是不小心把数据范围多写了几个0.这要放在比赛中。。肯定不敢这么写。...
分类:
其他好文 时间:
2014-09-02 17:49:35
阅读次数:
214
- OpenWrt 无线驱动采用wireless.kernel.org的开源版本, backports.
- 我们采用qdk 版本的开源版本(无线驱动从Ralink的驱动移植过来).
期间遇到各种问题总结:
1. UI问题,未显示Station, 不能设置Channel,加密我们自己添加上去的。
2. Ralink驱动问题, 建立双ssid,位于不同vlan下,多次切换会导...
分类:
其他好文 时间:
2014-08-30 16:26:09
阅读次数:
224