Loading

上一页 1 ··· 3 4 5 6 7
摘要: 暴力很容易写,找一下规律,可以发现: 实际上不用找规律,显然$2 \to p$,每个合数肯定是被某个质因子连上去 对于质数$p(>3)$,首先有$2 \to p$的边,之后有$p \to p \cdot (p+2k)$的边,其中$k=0,1,2,3,\cdots$ 最后连上$2 \to \(,其中\ 阅读全文
posted @ 2021-10-09 22:51 nekko 阅读(60) 评论(0) 推荐(0)
摘要: https://acm.ecnu.edu.cn/contest/448/problem/A/ \(a + k\sqrt b \Rightarrow (a+k\sqrt b) \cdot (A+K\sqrt b)= aA+kKb+(aK+kA)\sqrt b\) #include <bits/stdc 阅读全文
posted @ 2021-10-08 13:49 nekko 阅读(58) 评论(0) 推荐(0)
摘要: https://acm.ecnu.edu.cn/problem/3314/ 二项式展开得: \[ \begin{aligned} &\sum_{i=0}^{n}a_i(x+A)^i \\ =&\sum_{i=0}^{n}a_i\sum_{j=0}^{i}{i \choose j} x^jA^{i-j 阅读全文
posted @ 2021-10-08 09:21 nekko 阅读(225) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7