首页 > TAG信息列表 > Expedition

papamelong 226. 远征 Expedition(挑战程序设计竞赛)

地址 https://www.papamelon.com/problem/226 你需要驾驶一辆汽车行驶 L 单位距离。 最开始时, 卡车上有 P 单位的汽油。 汽车每开 1 单位距离需要消耗 1 单位的汽油。 如果在途中车上的汽油耗尽, 车就无法继续前行, 因而无法达到终点。 在途中一共有 N 个加油站。第ii 个加油

每日英语【编号141202】

stretch 伸展;延伸 ferry 渡轮;渡口;摆渡 expedition 探险;考察 expedience 便利 milestone 里程碑;转折点 slack 松散的;懈怠的;淡季;无力地 imitate 模仿;效仿 tribute 悼念;吊唁;贡品 trader 商人;交易员;经商者 endure 忍受;忍耐;持续;持久 date back to 追溯到... be entitled to 有资格做 e

[USACO2005OPEN]Expedition

贪心+堆/优先队列 如果现在的油量能到达下一个加油站则继续走;否则就要加上之前走过的加油站中油最多且没走过的加油站的油,如果前面的所有加油站都加过油了还不能到达下一个加油站输出 -1。 看到要求最大值,第一想到的肯定是 sort。但是!sort 被卡了。 那怎么办呢?这样一来,就想到了

Codeforces 1091F New Year and the Mallard Expedition SA

New Year and the Mallard Expedition 把sa求出来之后, 对于每个询问用单调栈处理。 #include<bits/stdc++.h>#define LL long longusing namespace std;const int N = (int)2e5 + 7;const int LOG = 18;namespace SA {int sa[N], rk[N], ht[N], s[N<<1], t[N<<1], p[N], cnt[

Expedition---POJ - 2431

A group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to run over a rock and puncture the truck's fuel tank. The truck now leaks one unit of fuel every unit of di

POJ2431--Expedition(优先队列)

Description A group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to run over a rock and puncture the truck's fuel tank. The truck now leaks one unit of fuel ever