摘要: include include using namespace std; int main() { int a1, a2, n; cin >> a1 >> a2 >> n; vector seq; seq.push_back(a1); if (n > 1) { seq.push_back(a2); 阅读全文
posted @ 2025-12-22 08:17 Cx330。 阅读(6) 评论(0) 推荐(0)
摘要: include include using namespace std; int main() { int N, M; cin >> N >> M; cin.ignore(); string problems[30]; for (int i = 0; i < N; ++i) { getline(ci 阅读全文
posted @ 2025-12-22 08:17 Cx330。 阅读(4) 评论(0) 推荐(0)
摘要: include include include include using namespace std; // 消除多余空格、处理首尾空格和标点前空格 string cleanSpaces(const string &s) { string res = regex_replace(s, regex( 阅读全文
posted @ 2025-12-22 08:16 Cx330。 阅读(2) 评论(0) 推荐(0)
摘要: include include using namespace std; int main() { int N; cin >> N; while (N--) { string name; int rate, pulse; cin >> name >> rate >> pulse; // 假设呼吸频率 阅读全文
posted @ 2025-12-22 08:16 Cx330。 阅读(3) 评论(0) 推荐(0)
摘要: include include using namespace std; int main() { int A, B; cin >> A >> B; if (B == 0) { cout << A << "/" << B << "=Error" << endl; } else { double re 阅读全文
posted @ 2025-12-22 08:15 Cx330。 阅读(3) 评论(0) 推荐(0)
摘要: include include include using namespace std; int main() { vector names; string name; while (cin >> name) { if (name == ".") break; names.push_back(nam 阅读全文
posted @ 2025-12-22 08:14 Cx330。 阅读(3) 评论(0) 推荐(0)
摘要: include include include using namespace std; int main() { int N; cin >> N; vector activity(N); for (int i = 0; i < N; ++i) { cin >> activity[i]; } // 阅读全文
posted @ 2025-12-22 08:14 Cx330。 阅读(3) 评论(0) 推荐(0)
摘要: 《代码大全》第八部分以 “新时代编程” 为主题,为我们扬起了驶向未来编程领域的风帆。这一部分让我深刻认识到,编程技术在不断发展,程序员也需要与时俱进,不断学习新的知识和技能,才能在未来的编程浪潮中立于不败之地。 随着信息技术的飞速发展,编程领域也发生了翻天覆地的变化。从传统的单体应用开发,到如今的云 阅读全文
posted @ 2025-12-22 08:13 Cx330。 阅读(8) 评论(0) 推荐(0)
摘要: include include include include include include using namespace std; const int INF = numeric_limits::max(); // 邻接表节点 struct Edge { int to; // 目标顶点 int 阅读全文
posted @ 2025-12-22 08:11 Cx330。 阅读(3) 评论(0) 推荐(0)
摘要: include include include include <unordered_map> include using namespace std; // 节点结构体 struct TreeNode { int id; string name; int size; // 文件大小,目录大小为0 阅读全文
posted @ 2025-12-22 08:10 Cx330。 阅读(7) 评论(0) 推荐(0)