Loading

上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
该文被密码保护。 阅读全文
posted @ 2023-10-29 22:42 Meatherm 阅读(8) 评论(0) 推荐(3)
摘要: Codeforces Round #850 (Div.2) https://codeforces.com/contest/1786 Problem A1 Non-alternating Deck (easy version) Problem A2 Alternating Deck (hard ver 阅读全文
posted @ 2023-10-25 22:34 Meatherm 阅读(43) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-10-24 22:33 Meatherm 阅读(0) 评论(0) 推荐(0)
摘要: Miller-Rabin 素性检测 部分内容摘自 题解 P4718/论 Miller-Rabin 算法的确定性化 - It's LUNATIC time!) 根据费马小定理,若 \(p\) 为素数,那么对于 \(1 \leq a < p\),都有 \(a^{p-1} \equiv 1 \pmod p 阅读全文
posted @ 2023-10-11 15:51 Meatherm 阅读(66) 评论(1) 推荐(1)
该文被密码保护。 阅读全文
posted @ 2023-09-30 21:42 Meatherm 阅读(3) 评论(0) 推荐(1)
摘要: 2023.9.30 校内测试。 阅读全文
posted @ 2023-09-30 18:11 Meatherm 阅读(3) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-09-24 17:12 Meatherm 阅读(9) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-08-28 21:30 Meatherm 阅读(11) 评论(0) 推荐(0)
摘要: [Link](https://www.luogu.com.cn/problem/P6773) **题意** 给定一棵 $n$ 个节点的有根树和 $m$ 条祖先到后代的链。问有多少种把边权设置为 $0$ 或 $1$ 的方案使得每条链上至少有一条边是 $1$。 答案对 $998244353$ 取模。 $ 阅读全文
posted @ 2023-08-01 12:04 Meatherm 阅读(81) 评论(2) 推荐(1)
摘要: [Link](https://www.luogu.com.cn/problem/P6816) **题意** 给定一个小写字母串 $s$,求: - 有多少字符串 $t$ 可以超出头尾地,可重复地覆盖 $s$。 - 在上面的条件下,最短的 $t$;如果有多个,输出字典序最小的。 $|s| \leq 2 阅读全文
posted @ 2023-08-01 10:26 Meatherm 阅读(84) 评论(2) 推荐(1)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页