摘要: priority_queue 默认大顶堆 小顶堆 include include using namespace std; void max_k_num() { int source_data[10] = {3, 5, 8, 1, 10, 2, 9, 15, 13, 16}; int k = 5; 阅读全文
posted @ 2024-04-19 21:59 niubuniu 阅读(1) 评论(0) 推荐(0) 编辑
摘要: include <bits/stdc++.h> using namespace std; void fun(string a, string b) { int t = b.find(a[0]); if (t != 0) fun(a.substr(1, t), b.substr(0, t)); if 阅读全文
posted @ 2024-04-19 21:57 niubuniu 阅读(1) 评论(0) 推荐(0) 编辑