03 2024 档案

摘要:1. dp概述 103 最长上升子序列 点击查看代码 const int N = 1e6 + 10; int n, m; int a[N], f[N]; void solve() { cin >> n; for (int i = 1; i <= n; i ++) cin >> a[i]; for ( 阅读全文
posted @ 2024-03-18 08:08 ComistryMo 阅读(10) 评论(0) 推荐(0)
摘要:Part2 基础算法 模拟 P1003 铺地毯https://www.luogu.com.cn/problem/P1003 点击查看代码 int n; struct Node{ int a, b, g, k; }node[N]; void solve() { cin >> n; for (int i 阅读全文
posted @ 2024-03-13 21:24 ComistryMo 阅读(23) 评论(0) 推荐(0)