Problem DescriptionA frog has just learned some number theory, and can't wait to show his ability to his girlfriend.Now the frog is sitting on a grid ...
分类:
其他好文 时间:
2015-12-02 22:09:55
阅读次数:
235
Problem DescriptionToday, Soda has learned a sequence whose n-th (n≥1) item is 3n(n?1)+1. Now he wants to know if an integer m can be represented as t...
分类:
其他好文 时间:
2015-09-10 21:00:37
阅读次数:
172
题目链接:codeforces 225E题目大意:给出一个等式,z=[x2]+y+x?yz=[\frac{x}{2}]+y+x \cdot y,求另这个等式无解的z,从小到大排序,访问第i个。题目分析:
首先为了简便计算先要通过分奇偶去掉向下取整符号,原式转换为如下形式:
{z=k+y+2ky ,x=2kz=k+y+(2k+1)?y ,x=2k+1(1)(2) \begin{aligned}
\...
分类:
其他好文 时间:
2015-09-08 20:17:33
阅读次数:
248
Problem DescriptionWe send a light from one point on a mirror material circle,it reflects N times and return the original point firstly.Your task is c...
分类:
其他好文 时间:
2015-09-06 10:57:44
阅读次数:
157
Break the ChocolateTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4556Accepted Submission(s): 145...
分类:
其他好文 时间:
2015-08-26 01:41:29
阅读次数:
169
看的题解,感觉都不好说什么,,但是据说这个题是某年河南省,一个人都没正解?数学还是太弱,感觉这个题还是通过数学推导,强行将枚举范围缩小缩小小。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespac...
分类:
其他好文 时间:
2015-08-17 06:22:49
阅读次数:
183
GalaxyTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 556Accepted Submission(s): 127Special Judg...
分类:
其他好文 时间:
2015-08-15 21:27:13
阅读次数:
86
转载请注明出处:
blog.csdn.net/yobobobo...
分类:
其他好文 时间:
2015-08-13 22:16:01
阅读次数:
1290
该题是一道需要先进行数学推导的dp题 , 可惜我没有学过离散数学,现在也不是很明白 。 大致的意思是说按照题目中的要求,所有能存活下来的克隆人(一个向量,有很多属性)构成了一条最长反链,具有偏序关系 。偏序关系说白了就是对于向量a、b,不能确定他俩的大小关系 。 那么什么是反链呢? 其实也是不可比的意思,只不过每次将某个属性加减1,可以组成一条最长反链 ,如下图:
对于每一行,...
分类:
其他好文 时间:
2015-08-04 09:26:48
阅读次数:
181
题意:点击打开链接
把m,k表示成d进制,对于这个递归函数,每一次递归都是一次每一位数字的置换,求出每一位的循环节,最终f(m)=k就是要每一位都相等,即解同余方程组。
代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#incl...
分类:
其他好文 时间:
2015-07-30 23:19:21
阅读次数:
137