摘要: [TOC] 题目 "P1244 青蛙过河" 思路 要多读题,题目的意思是在$A$石墩上有一堆青蛙从上到下按照$1$ $n$的顺序排列,向$B$石墩跳时只能从上往下一个一个跳,并且保持从上到下的顺序,问你最多有多少只青蛙可以从$A$石墩跳到$B$石墩。 我们设$\text{f[h][k]}$为当有$h 阅读全文
posted @ 2019-08-31 08:45 yu__xuan 阅读(251) 评论(1) 推荐(0) 编辑
摘要: [TOC] 题目 "洛谷 P1004 方格取数" 思路 方法一:四维dp 设$\text{dp[i][j][k][l]}$表示第一个人走到了$(i,j)$第二个人走到了$(k,l)$的位置时的最大和,因为可以向下走也可以向右走所以$\text{dp[i][j][k][l]=max(dp[i 1][j 阅读全文
posted @ 2019-08-30 15:12 yu__xuan 阅读(250) 评论(0) 推荐(0) 编辑
摘要: ###题目 CF894A ###思路 \(\text{DP}\) 一个数组$\text{QAQ[4][101]}$ \(\text{QAQ[1][i]表示在i这个位置q的个数}\) \(\text{QAQ[2][i]表示在i这个位置qa的个数}\) \(\text{QAQ[3][i]表示在i这个位置 阅读全文
posted @ 2019-08-14 15:52 yu__xuan 阅读(261) 评论(1) 推荐(0) 编辑
摘要: 题目 P5506 封锁 思路 模拟 \(\large\text{读题一定要细心}\) 解释都在代码里。 ###\(Code\) #include<bits/stdc++.h> #define MAXN 101 using namespace std; int n,t; struct qwq{ int 阅读全文
posted @ 2019-08-14 09:17 yu__xuan 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-14 08:04 yu__xuan 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-13 11:23 yu__xuan 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-02 16:01 yu__xuan 阅读(241) 评论(2) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-01 09:33 yu__xuan 阅读(191) 评论(2) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-31 20:20 yu__xuan 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-31 19:55 yu__xuan 阅读(241) 评论(0) 推荐(0) 编辑