摘要:
#include <iostream> #include <vector> #include <algorithm> #include <set> using namespace std; struct Node { int id; int score; // 重载 < 运算符 // 规则:分数高的 阅读全文
posted @ 2026-03-21 16:22
9102700
阅读(4)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <string> using namespace std; void stringDemo() { string s = "algorithm"; // 1. 字符串拼接 s += " is fun"; // 2. 截取子串 (O(N) 复杂 阅读全文
posted @ 2026-03-21 16:20
9102700
阅读(7)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <set> using namespace std; void multisetDemo() { multiset<int> ms; // 1. 插入元素 ms.insert(5); ms.insert(3); ms.insert(5); / 阅读全文
posted @ 2026-03-21 15:53
9102700
阅读(5)
评论(0)
推荐(0)

浙公网安备 33010602011771号