2018年7月20日

Symmetric Matrix 牛客网暑期ACM多校训练营(第一场) B dp 组合数学

摘要: Count the number of n x n matrices A satisfying the following condition modulo m. * Ai, j ∈ {0, 1, 2} for all 1 ≤ i, j ≤ n. * Ai, j = Aj, i for all 1 阅读全文

posted @ 2018-07-20 16:05 九月旧约 阅读(173) 评论(0) 推荐(0) 编辑

Different Integers 牛客网暑期ACM多校训练营(第一场) J 离线+线状数组或者主席树

摘要: Given a sequence of integers a1, a2, ..., an and q pairs of integers (l 1, r1), (l2, r2), ..., (lq, rq), find count(l1, r1), count(l2, r2), ..., count 阅读全文

posted @ 2018-07-20 10:37 九月旧约 阅读(139) 评论(0) 推荐(0) 编辑

导航