题目链接:
3088
题意:一个滑雪胜地包含了n 个地点,m 个滑雪斜坡,k 架雪橇,其中2≤n≤1000、1≤m≤1000、1≤k≤1000。滑雪斜坡和雪橇总是从一个地点到另一个地点:滑雪斜坡是从高地点到低地点,而雪橇刚好相反(注意,雪橇不能下降)。Per 是一个滑雪初学者,他很害怕雪橇,尽管他想滑得尽可能快。现在,他发现他可以选择不同的雪橇和滑雪斜坡。他现在...
分类:
其他好文 时间:
2015-02-01 16:14:18
阅读次数:
198
判断下就好,直接贴代码。
//poj 3386
//sep9
#include
using namespace std;
int A,a,B,b,P;
int judge()
{
if(A+BB){
swap(A,B);
swap(a,b);
}
if(B>P)
return 0;
if(A>b)
return 0;
...
分类:
其他好文 时间:
2015-01-24 10:12:55
阅读次数:
174
Disky and Sooma, two of the biggest mega minds of Bangladesh went to a far country. They ate, coded and wandered around, even in their holidays. They passed several months in this way. But everything ...
分类:
其他好文 时间:
2014-10-12 02:44:17
阅读次数:
316
First Iwant to talk about my enjoyable travelling holidays of the National Day.It is always happy when you meeting your family members after leaving.....
分类:
其他好文 时间:
2014-10-10 02:45:03
阅读次数:
222
Easter Holidays
Time Limit: 1 Second Memory Limit: 32768 KB Special Judge
Scandinavians often make vacation during the Easter holidays in the largest ski resort Are. Are provides fan...
分类:
其他好文 时间:
2014-09-04 22:21:58
阅读次数:
275
1 Mid-Autumn Festival eg. The Dragon Boat Festival is one of three major Chinese holidays,along with the Spring and Moon Festivals.端午节是三个中国主要节日之一,另两个是...
分类:
其他好文 时间:
2014-08-19 00:46:53
阅读次数:
242
Description
Tamim and Lina, two of the biggest mega minds of Bangladesh went to a far country. They ate, coded and wandered around, even in their holidays. They passed several months in this way. B...
分类:
其他好文 时间:
2014-08-15 12:51:18
阅读次数:
217
其实就是枚举最高点和起点,然后以最高点为源点在两张图上分别做spfa。一遍最短路,一遍最长路。暴露出来的问题:思维不够清晰,代码能力还不够#include #include #include #include #include #include #include #include #include ...
分类:
其他好文 时间:
2014-07-17 18:16:43
阅读次数:
206
1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示: 示例代码: Leaves Summary hr.holidays form tree,form {'search_default_group_type': 1, ...
分类:
其他好文 时间:
2014-06-18 10:22:52
阅读次数:
333
1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示:示例代码:
Leaves Summary hr.holidays form tree,form ...
分类:
其他好文 时间:
2014-05-08 23:59:31
阅读次数:
661