摘要: Doctor serves at a military air force base. One day, the enemy launch a sudden attack and the base is under heavy fire. The fighters in the airport must take off to intercept enemy bombers. However, the enemies know this clearly and they now focus on destroying the runway. The situation is becoming 阅读全文
posted @ 2012-02-25 19:54 qijinbiao1 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 时间限制:3000 ms | 内存限制:65535 KB难度:4View Code #include<iostream>#include<cstdio>#include<cstring>#define N 1005#define max(a,b) (((a) > (b)) ? (a) : (b))using namespace std;struct node{ int a,b;}map[N];int d[N],n;int dp(int k){ int ans=1,i; if(d[k]!=-1) return d[k]; for(i=0;i<n;i 阅读全文
posted @ 2012-02-25 09:33 qijinbiao1 阅读(159) 评论(0) 推荐(0) 编辑