随笔分类 -  算法->数论

摘要:1013: [JSOI2008]球形空间产生器sphere Description 有一个球形空间产生器能够在n维空间中产生一个坚硬的球体。现在,你被困在了这个n维球体中,你只知道球面上n+1个点的坐标,你需要以最快的速度确定这个n维球体的球心坐标,以便于摧毁这个球形空间产生器。 有一个球形空间产生 阅读全文
posted @ 2017-01-16 20:00 sigongzi 阅读(192) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-01-12 20:07 sigongzi 阅读(580) 评论(0) 推荐(0)
摘要:In this problem, `lattice points' in the plane are points with integer coordinates. In order to contain his cows, Farmer John constructs a triangular 阅读全文
posted @ 2017-01-02 18:31 sigongzi 阅读(393) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-12-11 18:09 sigongzi 阅读(401) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-12-04 20:43 sigongzi 阅读(498) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-12-04 19:35 sigongzi 阅读(355) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-10-23 19:46 sigongzi 阅读(5) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-10-23 19:21 sigongzi 阅读(6) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-09-25 17:04 sigongzi 阅读(8) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-09-24 21:25 sigongzi 阅读(6) 评论(0) 推荐(0)
摘要:1. 关羽(guanyu.cpp/c/pas )【问题描述】xpp 每天研究天文学研究哲学,对于人生又有一些我们完全无法理解的思考。在某天无聊学术之后, xpp 打开了 http://web.sanguosha.com, 准备用他心爱的关羽虐人。进入了八人身份局,作为一位主公,xpp 果断选了关羽, 阅读全文
posted @ 2016-09-10 23:10 sigongzi 阅读(420) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-08-29 17:02 sigongzi 阅读(407) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-08-22 17:23 sigongzi 阅读(5) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-08-22 16:44 sigongzi 阅读(8) 评论(0) 推荐(0)
摘要:数值距离(dis.pas/c/cpp)题目大意我们可以对一个数 x 进行两种操作:1、 选择一个质数 y,将 x 变为 x*y2、 选择一个 x 的质因数 y,将 x 变为 x/y定义两个数 a,b 之间的距离为把 a 变成 b 所需要执行的最少操作次数。例如数 69 与 42之间的距离为 3,因为 阅读全文
posted @ 2016-08-22 13:19 sigongzi 阅读(236) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-08-14 22:04 sigongzi 阅读(5) 评论(0) 推荐(0)