Loading

摘要: It's a sunny day with good scenery, and you come to the park for a walk. You feel curious that there are many old guys gathering by a bridge, and want 阅读全文
posted @ 2021-05-11 22:47 脂环 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Alduhmellah and Behlah both like large numbers, lots of numbers and lots of large numbers. They also like to do calculations on those numbers. One day 阅读全文
posted @ 2021-05-11 21:14 脂环 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Yen-Jen loves cat very much. Now, there are 10^{18}1018 cats standing in a line, the i^ith cat's cost value c_ic**i is equal to ii, the i^ith cat's in 阅读全文
posted @ 2021-05-11 19:46 脂环 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 有公式: \(num = \lfloor \frac{x}{p} \rfloor + \lfloor \frac{x}{p^2} \rfloor + \lfloor \frac{x}{p^3} \rfloor + ....\) $\lfloor \frac{pk} \rfloor$相当于1到n中$p 阅读全文
posted @ 2021-05-11 19:41 脂环 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 给你一个整数数组 perm ,它是前 n 个正整数的排列,且 n 是个 奇数 。 它被加密成另一个长度为 n - 1 的整数数组 encoded ,满足 encoded[i] = perm[i] XOR perm[i + 1] 。比方说,如果 perm = [1,3,2] ,那么 encoded = 阅读全文
posted @ 2021-05-11 19:28 脂环 阅读(100) 评论(0) 推荐(0) 编辑
摘要: ABC Conjecture Time limit: 3 seconds Figure 1: Shinichi Mochizuki The ABC conjecture (also known as the Oesterle–Masser conjec- ´ ture) is a famous co 阅读全文
posted @ 2021-05-11 17:20 脂环 阅读(135) 评论(0) 推荐(0) 编辑