摘要:
题解 SS231102D【Calculate】 http://pjudge.ac/contest/1526/problem/21809 problem 计算哥给你一个长度为 \(n\) 的非负整数序列 \(a\)(\(0 \le a_i \le n\))与一个正整数 \(m\)(\(m \le n\ 阅读全文
posted @ 2023-11-06 14:38
caijianhong
阅读(35)
评论(0)
推荐(0)
摘要:
问题引入 有一个类 A,A 的某个成员函数需要对 A 的某些变量进行 std::sort,同时要调用 A 的另一个成员函数作为比较器。如代码所示: struct A { vector<int> pos = {0, 4, 2, 5, 3}; bool cmp(int x, int y) { retur 阅读全文
posted @ 2023-11-06 08:55
caijianhong
阅读(228)
评论(0)
推荐(0)
浙公网安备 33010602011771号