摘要: #include <bits/stdc++.h> using namespace std; struct node{ string mbzt; string dongzuochuan; }; queue <node> q; set<string>s; string start_zt="1234567 阅读全文
posted @ 2023-07-23 09:56 郁佳彬 阅读(35) 评论(0) 推荐(0)
摘要: 1. #include <bits/stdc++.h> #define N 100001 using namespace std; bool vis[N]; int dir[2]={-1,1}; struct node { int x; int step; }q[N]; void bfs(int n 阅读全文
posted @ 2023-07-23 09:11 郁佳彬 阅读(121) 评论(0) 推荐(0)
摘要: 1.STL标准模板库 https://zzk.cnblogs.com/s/blogpost?w=STL%E6%A0%87%E5%87%86%E6%A8%A1%E6%9D%BF%E5%BA%93 https://so.csdn.net/so/search?spm=1000.2115.3001.4498 阅读全文
posted @ 2023-07-22 16:14 郁佳彬 阅读(65) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; long long n,a[1001][1001],maxn[1001][1001]; int main(){ cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=i;j 阅读全文
posted @ 2023-07-22 09:37 郁佳彬 阅读(13) 评论(0) 推荐(0)
摘要: 1316、 1198、 1204、 1158、 1160、 1164. 阅读全文
posted @ 2023-07-21 16:55 郁佳彬 阅读(20) 评论(0) 推荐(0)
摘要: http://ybt.ssoier.cn:8088/problem_show.php?pid=1932 采药dp #include<bits/stdc++.h> using namespace std; int t,m,w[105],v[105],f[105][1005]; int main() { 阅读全文
posted @ 2023-07-21 14:20 郁佳彬 阅读(44) 评论(0) 推荐(0)
摘要: 一、基本概念 递归算法是一种直接或者间接调用自身函数或者方法的算法。递归算法的实质是把问题分解成规模缩小的同类问题的子问题,然后递归调用方法来表示问题的解。递归算法对解决一大类问题很有效,它可以使算法简洁和易于理解。递归算法,其实说白了,就是程序的自身调用。我们可以利用大道至简的思想,把一个大的复杂 阅读全文
posted @ 2023-07-20 16:51 郁佳彬 阅读(173) 评论(0) 推荐(0)