摘要:
http://poj.org/problem?id=1065DP,最长“上升”子序列 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 struct Sticks 5 { 6 int x, y; 7 }s[5432]; 8 9 int n, dp[5432];10 11 int cmp1(struct Sticks a, struct Sticks b)12 {13 return a.x < b.x || a.y < b.y;14 }15 16 int LIS()17 {18 int i, j, max1, max 阅读全文
posted @ 2013-01-20 01:09
Yuan1991
阅读(136)
评论(0)
推荐(0)

浙公网安备 33010602011771号