Fork me on GitHub

  2013年2月5日
摘要: #include<iostream>#include<cstdio>#include<algorithm>#include<map>#define max(a,b) ((a)>(b)?(a):(b))using namespace std;int dist[5][5]={5, -1, -2, -1, -3,-1, 5, -3, -2, -4,-2, -3, 5, -2, -2,-1, -2, -2, 5, -1,-3, -4, -2, -1, -100};int dp[101][101];int main(){ //freopen(&quo 阅读全文
posted @ 2013-02-05 19:57 huashiyiqike 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<algorithm>#define max(a,b) ((a)>(b)?(a):(b))class bg{public :int value,len,end;};int n,res,dp[31][1000];bg b[31];bool operator<(bg a,bg b){ return a.end<b.end;}int main(){ //freopen("in.txt","r",stdin); int i,j,m; while(scanf("% 阅读全文
posted @ 2013-02-05 16:32 huashiyiqike 阅读(129) 评论(0) 推荐(0) 编辑