该文被密码保护。 阅读全文
posted @ 2022-10-08 22:54 Pat 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 说明:本文用 \(\phi\) 表示欧拉函数而不用 \(\varphi\),尽管后者更为常用。\(\DeclareMathOperator{\lcm}{lcm}\) 欧拉函数 \(\phi\colon\mathbb Z_{>0}\to \mathbb Z\) 定义为 \[ \phi(n) = |\{ 阅读全文
posted @ 2021-08-18 18:07 Pat 阅读(854) 评论(0) 推荐(0) 编辑
摘要: The void_t idiom in C++ template metaprogramming. 阅读全文
posted @ 2021-06-08 15:30 Pat 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 无聊的套路。 阅读全文
posted @ 2021-04-22 17:28 Pat 阅读(53) 评论(0) 推荐(0) 编辑
摘要: An interesting proof. 阅读全文
posted @ 2021-03-25 14:10 Pat 阅读(72) 评论(0) 推荐(0) 编辑
摘要: A boring technique. 阅读全文
posted @ 2021-01-17 16:52 Pat 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 一道不那么直白的逆序数计算问题。 阅读全文
posted @ 2020-10-16 11:13 Pat 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一个计算连续型随机变量期望的方法。 阅读全文
posted @ 2020-10-15 15:46 Pat 阅读(214) 评论(0) 推荐(0) 编辑
摘要: An educational problem of discrete expectation. 阅读全文
posted @ 2020-08-18 23:11 Pat 阅读(290) 评论(3) 推荐(0) 编辑
摘要: 一道经典的计数问题。 阅读全文
posted @ 2020-07-29 02:20 Pat 阅读(247) 评论(0) 推荐(0) 编辑