摘要:
LIS有三种写法,此文章仅写出两种复杂度分别为(n^2)和(nlogn) 第一种写法O(n^2) int num[1000], n,out=0;//n为字母个数,num存放数字,out为最长上升子序列的长度 int dp[1000];//dp存放该数字为最后一个数字的时候最长上升子序列的长度 cin 阅读全文
摘要:
题目描述 In the Byteotian Line Forest there are nn trees in a row. On top of the first one, there is a little bird who would like to fly over to the top o 阅读全文
摘要:
Super Jumping! Jumping! Jumping! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 63733 Accepted S 阅读全文
摘要:
Building Shops Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 4446 Accepted Submission(s): 155 阅读全文