Revenge of LIS IIProblem DescriptionIn computer science, the longest increasing subsequence problem is to find a subsequence of a given sequence in wh...
分类:
其他好文 时间:
2014-11-02 12:04:13
阅读次数:
140
Revenge of Nim II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
...
分类:
其他好文 时间:
2014-11-02 10:55:03
阅读次数:
144
Revenge of LIS II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 444 Accepted Submission(s): 143
Problem Description
In computer sc...
分类:
其他好文 时间:
2014-11-02 09:21:51
阅读次数:
201
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:
其他好文 时间:
2014-11-02 07:04:34
阅读次数:
190
DP的时候记录下是否可以从两个位置转移过来。。。。
Revenge of LIS II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 393 Accepted Submission(s): 116
Pr...
分类:
其他好文 时间:
2014-11-02 00:40:15
阅读次数:
207
Mart Master II
Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 285 Accepted Submission(s): 94
Problem Description
Trader Dogy lives...
分类:
其他好文 时间:
2014-11-02 00:40:04
阅读次数:
230
题意 求一个序列的所有上升子序列中第二长的那个的长度
简单的dp d[i]表示以第i个数结尾的最长上升子序列的长度 c[i]表示到达d[i]的方法数 如序列1 1 2 d[3]=2,c[3]=2 因为选1 3位置和 2 3位置的都可以得到d[3]=2 递推过程很简单 d[i]=max{d[j]+1}其中a[i]>a[j]&&i>j
最后看d[1~n]中最大的数出现了几次 出现...
分类:
其他好文 时间:
2014-11-01 23:16:20
阅读次数:
341
HDU 2236 无题II
题目链接
思路:行列只能一个,想到二分图,然后二分区间长度,枚举下限,就能求出哪些边是能用的,然后建图跑二分图,如果最大匹配等于n就是符合的
代码:
#include
#include
#include
#include
using namespace std;
const int N = 105;
int t, n, x[N][N]...
分类:
其他好文 时间:
2014-11-01 14:53:58
阅读次数:
189
选择File->Convert Programming Files...
Programming File Type选择JTAG Indirect ConfigurationFile(.jic)并选择要烧写的器件EPCS64
在Input files to convert选择Flash Loader,点击Add Device,添加FPGA类型
在Input files...
分类:
其他好文 时间:
2014-11-01 13:29:17
阅读次数:
377