hdu 1087 Super Jumping! Jumping! Jumping!(最长上升子序列变形)

2025东三省D题深圳杯数学建模实战解析:基于多模型融合的法医STR混合样本智能识别系统 本文深入解析了2025年东三省数学建模竞赛D题,即深圳杯赛题,聚焦于法医STR混合样本的智能识别挑战。文章系统阐述了构建一个基于多模型融合的智能识别系统的完整流程,涵盖贡献者人数判定、DNA贡献比例估计、个体基因型推断以及STR谱图去噪四大核心步骤。通过融合高斯混合模型、随机森林、非负矩阵分解、小波变换与深度学习等多种技术,并强调特征工程的重要性,为破解法医DNA混合样本分析这一行业难题提供了清晰的数学建模与AI实战思路。 阅读详情

注意:对最长上升子序列,理解不深刻,一直wa.....

题目分析:每次从左向右,找arr[i]>a[j]&&dp[i]最大的,


#include<iostream>
#include<cstdio>
using namespace std;
int arr[1010];
int dp[1010];
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{
            if(n==0)
	       break;
	   for(int i=1;i<=n;i++)
		   scanf("%d",&arr[i]);
	    for(int i=1; i<=n; ++i)  
		dp[i] = 0;  
	   dp[1]=arr[1];
       int ans,temp=0,j;   
       for(int i=2; i<=n; ++i)  
       {  
           ans = 0;  
           for(j=1; j<i;j++)  
           {  
	       if(arr[i]>arr[j] && dp[j]>ans) 
	      {
	         ans = dp[j];
	      }
           } 
	  dp[i]=ans+arr[i];
       }  
       ans = 0;  
       for(int i=1; i<=n; ++i)  
       {  
	    if(dp[i]>ans)  
	     ans = dp[i];  
       }
	   printf("%d\n",ans);
     }
   system("pause");
   return 0;
}


/***************************样例能过,错的!!!
#include<iostream>
#include<cstdio>
using namespace std;
int arr[1010];
struct node
{
	__int64  no,w;
}dp[1010];
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{
       if(n==0)
		   break;
	   for(int i=1;i<=n;i++)
		   scanf("%d",&arr[i]);
	   /*for(int i=1;i<=n;i++)
		   dp[i].w=0;
	    for(int i=1; i<=n; ++i)  
			dp[i].no = 0;  
	   dp[1].w=arr[1];
	   dp[1].no=1;
       __int64 ans,temp=0,j;   
       for(int i=2; i<=n; ++i)  
       {  
		   ans = dp[i].no;  
           for(j=1; j<i; ++j)  
           {  
			   if(arr[i]>arr[j] && dp[j].no>ans) 
			 {
				   ans = dp[j].no; 
				   //temp=j;
			 }
           }  
		   dp[i].no = ans+1;  
		   dp[i].w=dp[temp].w+arr[i];
       }  
       ans = 0;  
       for(int i=1; i<=n; ++i)  
       {  
		   if(dp[i].w>ans)  
			   ans = dp[i].w;  
        } 
	   /* for(int i=1; i<=n; ++i)  
       {  
		   if(dp[i].no>ans)  
			   ans = dp[i].no;  
        } 
		ans=dp[ans].w;
	   /*for(int i=1;i<=n;i++)
		   printf("%d  ",dp[i].w);
	   printf("\n\n");
	   printf("%I64d\n",ans);
	}
	system("pause");
	return 0;
}
*/

/*
#include<iostream>
#include<cstdio>
using namespace std;
int arr[1010],dp[1010];
//int B_search(int )
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{
       if(n==0)
		   break;
	   for(int i=1;i<=n;i++)
		   scanf("%d",&arr[i]);
	   dp[1]=arr[1];
	   int c=1;
	   for(int i=2;i<=n;i++)
	   {
		   if(arr[i]>dp[j])
			       dp[++c]=arr[i];
		   else
		   {
		      for(int j=1;j<=c;j++)
		      {
			     if(arr[i]<=dp[j])
				      dp[j]=arr[i];
		      }
		   }
		   /*if(arr[i]<=dp[1])
			   dp[1]=arr[i];
		   else if(arr[i]>=dp[c])
		   {
               dp[++c]=arr[i];
		   }*/
		   /*else
		   {

             int low=1,high=i,mid;
			  while(low<=high)
			 {
                 mid=(low+high)/2;
			     if(dp[i]<arr[mid])
				     high=mid-1;
			     else
				     low=mid+1;
			 }  
	   }
	}
}
*/





智启古文字新章:AI、ML与大数据驱动的知识图谱构建 摘要:本文聚焦AI、ML与大数据驱动的古文字知识图谱构建。开篇点明古文字研究困境,凸显技术革新迫切性。随后阐释AI、ML、大数据基础概念,详解其在图谱构建里的数据采集、知识抽取、关系挖掘运作流程,穿插线性代数、概率论等数学原理。实战展示殷商甲骨文图谱搭建全程,含数据处理、模型训练。还探讨跨模态融合等前沿挑战应对,兼述技术融合衍生的教育科普革新、伦理文化责任、国际合作交流,勾勒古文字数字永生的长远愿景。 阅读详情

相关推荐

GPU运维工程师入门指南 (第九篇): 高性能网络 - InfiniBand与RDMA技术

本文介绍了支撑AI分布式训练的高性能网络技术InfiniBand和RDMA。传统TCP/IP网络因内核开销和内存拷贝成为性能瓶颈,而InfiniBand提供高带宽、低延迟的专用网络,RDMA则通过内核旁路和零拷贝技术实现节点间内存直接访问,显著提升通信效率。特别介绍了GPUDirect RDMA技术,使GPU显存可直接通信。文章还列举了运维人员在部署这些技术时需要考虑的硬件、驱动、配置和监控等关键点。这些技术共同构成了支撑大规模AI集群的"数据高速公路",为后续讨论存储性能瓶颈奠定了基础

weixin_42587823的博客 1107

hdu 1087 Super Jumping! Jumping! Jumping! 最长上升子序列的变形

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The g

01的世界 260

RS485差分信号A下拉B上拉导致的乱码问题:一个硬件工程师的踩坑实录

本文通过一个工业网关项目中的RS485通信乱码故障,深入剖析了差分信号偏置电路设计的核心要点。文章详细记录了从波形抓取、原理图分析到多节点冲突排查的全过程,重点揭示了A下拉、B上拉这一反常规配置如何导致总线空闲状态不稳定,进而引发数据包末尾多出0x00字节及前导乱码的问题,并最终给出了硬件与软件协同的系统级解决方案与设计准则。

weixin_29159441的博客 242

hdu 1087 Super Jumping! Jumping! Jumping!

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1087 题意分析:LIS变形,由于是要求最大和上升子序列而不是最长上升子序列,故状态转移方程:dp[i] = max(dp[i], dp[j]+a[i]) /*Problem Description Nowadays, a kind of chess game called “Super Ju...

weixin_30508309的博客 123

STM32-CubeMx-HAL库-串口空闲中断+DMA——利用HAL_UARTEx_ReceiveToIdle_DMA实现不定长数据接收

STM32-CubeMx-HAL库-串口空闲中断+DMA——利用HAL_UARTEx_ReceiveToIdle_DMA实现不定长数据接收

weixin_43864631的博客 1万+

实战演练:基于Veristand Custom Device的硬件在环(HIL)数据流控制模块开发

本文详细介绍了基于Veristand Custom Device的硬件在环(HIL)数据流控制模块开发实战。通过LabVIEW环境配置、动态路由逻辑构建、实时处理核心开发及性能优化等关键步骤,帮助工程师快速掌握定制化HIL测试系统的开发技巧,提升测试效率与准确性。

weixin_29206669的博客 479

【dp专题1】hdu1087最大上升子段和 E - Super Jumping! Jumping! Jumping!

Super Jumping! Jumping! Jumping! Problem Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know lit

loving coding 523

FISCO-BCOS配置及使用控制台

如果因为网络问题长时间无法下载,请尝试:curl -#LO https://gitee.com/FISCO-BCOS/console/raw/master-2.0/tools/download_console.sh && bash download_console.sh。为了可以更加方便快捷,所以HelloWorld合约已经被内置了,位于控制台下面的contracts/solidity/HelloWorld.sol。用于获取和设置name的值,合约代码如下。部署成功会返回合约地址。

qq_51562644的博客 836

HDUOJ 1087 Super Jumping! Jumping! Jumping!(最长上升子序列)

Super Jumping! Jumping! Jumping! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 60127 Accepted Submission(s): 28004 Problem Description Now...

weixin_44014982的博客 194

用例设计:滴滴打车从轿车到完成支付如何测?

滴滴打车全流程测试用例设计从业务场景覆盖、功能逻辑分解、异常流验证三个维度展开,系统化地构建了测试方案。首先,业务流主干场景被分解为叫车、行程中、支付结算三个阶段,每个阶段都设计了核心测试用例,包括正向和异常用例,如定位准确性、车型选择逻辑、路径偏移监控、费用实时计算、多支付方式兼容等。专项测试补充了状态机验证、资损防控测试和性能测试,确保系统在不同情况下的稳定性和安全性。测试数据策略采用等价类划分设计,实战技巧包括流量回放技术、混沌工程注入和计费沙盒验证,以提高测试的覆盖率和准确性。最终输出交付物包括流程

海姐软件测试的博客 1531

YOLOv12改进策略【模型轻量化】| 替换骨干网络为EfficientNet v1 高效的移动倒置瓶颈结构

本文记录的是基于。采用了创新性的方法,通过精心平衡网络和来提升性能。本文将的设计优势融入YOLOv12中,提升YOLOv12的性能与效率,使其在目标检测任务中表现更为出色。本文配置了原模型中的共种不同大小的模型结构,以满足不同的需求。

Limiiiing的博客 967

HDU1087 Super Jumping! Jumping! Jumping!(最长上升子序列和)

HDU1087 Super Jumping! Jumping! Jumping!(最长上升子序列和) HDU1087 Super Jumping Jumping Jumping最长上升子序列和 题意 思路 AC代码 原题地址:http://acm.hdu.edu.cn/showproblem.php?pid=1087 题意 一道水题,就是要求玩家从棋盘开始跳到结束中间所经...

HuiSeKongHuan的博客 344

《UDS协议从入门到精通》系列——图解0x27:安全访问

什么是安全访问服务?应用场景和基本原理是什么?全网最直观详细的图解UDS-0x27:安全访问服务!!

车载系统攻城狮 7262

HDU 1087 Super Jumping!Jumping!Jumping!(DP之LIS问题变形)

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The game can be played by two or more than two players. It consists o

GETOVERMIND的博客 193

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

Super Jumping! Jumping! Jumping! ---HDU - 1087

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The ga...

weixin_30689307的博客 117

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

hdu 1087 Super Jumping! Jumping! Jumping!——LIS变形 寻找和最大的递增子序列

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The game ...

连长少尉 167

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

hdoj 1087 Super Jumping! Jumping! Jumping!(最大递增子段和)

Super Jumping! Jumping! Jumping! Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 33971    Accepted Submission(s): 15388 Problem Descri

CillyB的博客 494

hdu 1087 Super Jumping! Jumping! Jumping! (LIS)

Super Jumping! Jumping! Jumping! Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 24549    Accepted Submission(s): 10838 Problem Desc

sxk 823

HDOJ--1087--Super Jumping! Jumping! Jumping!

题目描述: Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The game...

猩猩是个好程序员的博客 155

HDU - 1087-Super Jumping! Jumping! Jumping! 【LIS变形】

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The game can b...

北里五井的博客 192

HDU 1087 Super Jumping! Jumping! Jumping! ——(LIS变形)

  和之前那个长方体最大高度是换汤不换药的题目。每次找之前最大的一个能接的接上即可。代码如下: 1 #include <stdio.h> 2 #include <algorithm> 3 #include <string.h> 4 using namespace std; 5 const int inf = 0x3f3f3f3f...

ddmxynl793173的博客 149

hdu 1087 Super Jumping! Jumping! Jumping!(LIS变形题,求上升子序列的最大和)

1、http://acm.hdu.edu.cn/showproblem.php?pid=1087 2、题目大意: 有一种游戏,人可以从一个棋子的位置走向另一个棋子的位置,每个棋子都有一个权值,可以一步跳过多个棋子,但是必须保证每个棋子的权值都比前边的权值大,且不能走回头路 开始按照LIS做的,一直wrong,看了网上的代码才过的 3、 Super Jumping! Jumping! Ju

sdjzping的专栏 802

(LIS)hdu 1087 Super Jumping! Jumping! Jumping!

题目 hdu1087 题意: 输出数组中的最大递增子序列和(可以不连续) 思路: LIS的变形,把统计最大递增子序列长度换成统计最大递增子序列和即可(状态dp[ i ] 表示以第 i 个数为结尾的最大递增子序列和)。 代码 #include <bits/stdc++.h> #define DEBUG freopen("_in.txt", "r", stdin); freopen("_out1.txt", "w", stdout); using namespace std; const int M

ymxyld的博客 199

【HDU 1087 】Super Jumping! Jumping! Jumping! 【LIS 的变形】

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The game can be

lzs_lazy 259

【hdu 1087】 Super Jumping! Jumping! Jumping! (LIS变形)

Super Jumping! Jumping! Jumping!   Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so

Harley567 332

HDU1087——Super Jumping! Jumping! Jumping!【LIS】

Problem Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to yo...

xiang_hehe的博客 225
上一篇: 计算机专业就业方向
下一篇: poj 做题小结
sumi
博客等级 码龄15年 189粉丝 210原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值