摘要: "Matching Problem" 暴力 题意: 给一个序列a,长度为n,序列b,长度为4,求a的子序列中,有多少个长度与b相等且当$b_i = b_j$ 时 $a_i$ = $a_j$ 题解: 因为n int cnt[310], c[310][310]; int main() { int n, 阅读全文
posted @ 2020-01-31 21:45 小饭hhh 阅读(220) 评论(0) 推荐(0) 编辑
摘要: "Alternative Accounts" 贪心匹配 题意: 有n个账号,k场比赛(1 include using std::max; using std::min; int n, t, m[5], a[5][100010], ans = 0, cnt[100010], c[5][100010]; 阅读全文
posted @ 2020-01-31 21:32 小饭hhh 阅读(180) 评论(0) 推荐(0) 编辑