摘要:
简介 对cmp的理解能力 常规题 code #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; struct Student{ int idx; int n 阅读全文
posted @ 2021-06-28 13:46
HDU李少帅
阅读(51)
评论(0)
推荐(0)
摘要:
简介 用传统的算法, 可能要用到递归栈, 什么鬼. 太难记了 还是python香. code a=input() a = a.replace('{', '(') a = a.replace('}', ')') a = a.replace('[', '(') a = a.replace(']', ') 阅读全文
posted @ 2021-06-28 10:59
HDU李少帅
阅读(66)
评论(0)
推荐(0)
摘要:
简介 c = c++ ? c = ++c ? code #include <iostream> #include <string> using namespace std; int main() { long long n; while(cin >> n) { bool pre = true; in 阅读全文
posted @ 2021-06-28 09:50
HDU李少帅
阅读(47)
评论(0)
推荐(0)
摘要:
简介 动态规划问题。 对于贪心无法解决的问题, 要第一时间想到动态规划问题的解法。 但是对于动态规划问题, 你要想的是使用dp[] 还是 dp[][] 其中每个dp元素表示的意义 这题的dp[i] 表示的是, 从0开始的桩子到 i 个桩子 , 从小到大最大的序列。 dp[i] = max(dp[i] 阅读全文
posted @ 2021-06-28 09:36
HDU李少帅
阅读(53)
评论(0)
推荐(0)
浙公网安备 33010602011771号