首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
hdu5748专题
hdu5748(最长不下降序列)
题目链接:点击打开链接 //hdu5748//题目大意:(证明略)一段序列,求以某个数结尾的严格最长不下降序列的长度//大概思路:f[k],以f[k]结尾长度为k的不下降序列的末尾元素// lower_bound()找到第一个大于等于它的元素的下标#include <iostream>#include <algorithm>#include <fstream>#
阅读更多...
【HDU5748 BestCoder Round 84B】【LIS模板 最长单调上升子序列】Bellovin 以尾端点最长LIS压缩数组
Bellovin Accepts: 428 Submissions: 1685 Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) 问题描述 Peter有一个序列a_1,a_2,...,a_na1,a2,...,an
阅读更多...