随笔分类 - 算法->数论
摘要:1013: [JSOI2008]球形空间产生器sphere Description 有一个球形空间产生器能够在n维空间中产生一个坚硬的球体。现在,你被困在了这个n维球体中,你只知道球面上n+1个点的坐标,你需要以最快的速度确定这个n维球体的球心坐标,以便于摧毁这个球形空间产生器。 有一个球形空间产生
阅读全文
摘要:Farmer Brown's cows are up in arms, having heard that McDonalds is considering the introduction of a new product: Beef McNuggets. The cows are trying
阅读全文
摘要:In this problem, `lattice points' in the plane are points with integer coordinates. In order to contain his cows, Farmer John constructs a triangular
阅读全文
摘要:Following the success of the magic cube, Mr. Rubik invented its planar version, called magic squares. This is a sheet composed of 8 equal-sized square
阅读全文
摘要:Consider an ordered set S of strings of N (1 <= N <= 31) bits. Bits, of course, are either 0 or 1. This set of strings is interesting because it is or
阅读全文
摘要:The factorial of an integer N, written N!, is the product of all the integers from 1 through N inclusive. The factorial quickly becomes very large: 13
阅读全文
摘要:1. 关羽(guanyu.cpp/c/pas )【问题描述】xpp 每天研究天文学研究哲学,对于人生又有一些我们完全无法理解的思考。在某天无聊学术之后, xpp 打开了 http://web.sanguosha.com, 准备用他心爱的关羽虐人。进入了八人身份局,作为一位主公,xpp 果断选了关羽,
阅读全文
摘要:Prime Palindromes The number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as
阅读全文
摘要:数值距离(dis.pas/c/cpp)题目大意我们可以对一个数 x 进行两种操作:1、 选择一个质数 y,将 x 变为 x*y2、 选择一个 x 的质因数 y,将 x 变为 x/y定义两个数 a,b 之间的距离为把 a 变成 b 所需要执行的最少操作次数。例如数 69 与 42之间的距离为 3,因为
阅读全文

浙公网安备 33010602011771号