01 2016 档案

摘要:方法一:由十字相乘相关理论我们能知道,如果要有p,k,q,m,那么首先要有解,所以b*b-4*a*c要>0,然而因为p,k,q,m是正整数,所以代表x1,x2都是有理数,有理数是什么鬼呢?就是解不带根号,我们知道有求根公式,其中2*a,-b都保证是自然数了,如果根号下b*b-4*a*c也保证是有理数 阅读全文
posted @ 2016-01-31 15:28 UniqueColor 阅读(274) 评论(0) 推荐(0) 编辑
摘要:由于看了IOS上面很多开发者开发的APP的视图界面切换动画体验非常好,这些都是IOS自带的,但是Android的Activity等视图切换动画并没有提供原生的,所以特此写了一个可以媲美IOS视图切换动画的Android视图切换动画特效库!SwitchLayout!可以说是目前Android上第一个, 阅读全文
posted @ 2016-01-31 14:51 UniqueColor 阅读(329) 评论(0) 推荐(0) 编辑
摘要:1、语法简单 2、学习成本低 3、开发效率高 4、跨平台 5、开发部署方便 6、开源框架非常丰富(如:ThinkPHP) 7、开源CMS系统非常丰富(如:Joomla,Wordpress) 8、开源网站系统非常丰富(如:DiscuzX) 阅读全文
posted @ 2016-01-29 12:58 UniqueColor 阅读(186) 评论(0) 推荐(0) 编辑
摘要:思路:直接暴力枚举区间[l,r]的整数值,然后max和min就可以了。 AC代码: 1 #pragma comment(linker, "/STACK:1024000000,1024000000") 2 #include<iostream> 3 #include<cstdio> 4 #include 阅读全文
posted @ 2016-01-29 03:07 UniqueColor 阅读(275) 评论(0) 推荐(0) 编辑
摘要:考虑一个经典的问题: 询问从某个点出发,走 k 步到达其它各点的方案数? 这个问题可以转化为矩阵相乘,所以矩阵快速幂即可解决。 本题思路: 矩阵经典问题:求从i点走k步后到达j点的方案数(mod p)。 本题输出X/Y,可以看成X是u走k步到j的方案数,Y是从u走k步的所有方案数 于是对矩阵先进行处 阅读全文
posted @ 2016-01-29 02:48 UniqueColor 阅读(300) 评论(1) 推荐(0) 编辑
摘要:Problem Description There is a tree(the tree is a connected graph which contains n points and n−1 edges),the points are labeled from 1 to n,which edge 阅读全文
posted @ 2016-01-28 00:39 UniqueColor 阅读(228) 评论(0) 推荐(0) 编辑
摘要:Problem Description There is a point P at coordinate (x,y). A line goes through the point, and intersects with the postive part of X,Y axes at point A 阅读全文
posted @ 2016-01-27 19:15 UniqueColor 阅读(308) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionYou are givenNsets.Thei−th set hasAinumbers.You should divide the sets intoLparts.And each part should have at least one number in ... 阅读全文
posted @ 2016-01-26 02:08 UniqueColor 阅读(241) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionThere are many unsolvable problem in the world.It could be about one or about zero.But this time it is about bigger number. Given a... 阅读全文
posted @ 2016-01-25 18:41 UniqueColor 阅读(292) 评论(0) 推荐(0) 编辑
摘要:DescriptionJimmy writes down the decimal representations of all natural numbers between and including m and n, (m ≤ n). How many zeroes will he write ... 阅读全文
posted @ 2016-01-25 01:22 UniqueColor 阅读(333) 评论(0) 推荐(0) 编辑
摘要:PearlsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2018Accepted Submission(s): 953 Problem Des... 阅读全文
posted @ 2016-01-23 16:26 UniqueColor 阅读(232) 评论(0) 推荐(0) 编辑
摘要:输入n,把1-n分成两个和相等的子集,有多少种分法想了个dp,直接背包也行 1 #include 2 #include 3 4 using namespace std; 5 6 int dp[55]; 7 8 int main() 9 {10 int n;11 scanf... 阅读全文
posted @ 2016-01-23 15:37 UniqueColor 阅读(223) 评论(0) 推荐(0) 编辑
摘要:Problem Description这是一个简单的生存游戏,你控制一个机器人从一个棋盘的起始点(1,1)走到棋盘的终点(n,m)。游戏的规则描述如下: 1.机器人一开始在棋盘的起始点并有起始点所标有的能量。 2.机器人只能向右或者向下走,并且每走一步消耗一单位能量。 3.机器人不能在原地停留。 4... 阅读全文
posted @ 2016-01-23 03:08 UniqueColor 阅读(188) 评论(0) 推荐(0) 编辑
摘要:Problem Description穿过幽谷意味着离大魔王lemon已经无限接近了! 可谁能想到,yifenfei在斩杀了一些虾兵蟹将后,却再次面临命运大迷宫的考验,这是魔王lemon设下的又一个机关。要知道,不论何人,若在迷宫中被困1小时以上,则必死无疑! 可怜的yifenfei为了去救MM,义... 阅读全文
posted @ 2016-01-21 12:59 UniqueColor 阅读(193) 评论(0) 推荐(0) 编辑
摘要:Problem Description搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,实在是太多了,于是xhd决定随便搬2*k件过去就行了.但还是会很累,因... 阅读全文
posted @ 2016-01-21 01:11 UniqueColor 阅读(275) 评论(0) 推荐(0) 编辑
摘要:1、打开时提示如下错误。2、在安装路径下找到idea.properties文件,用记事本打开,添加disable.android.first.run=true,保存即可。3、再次打开Android Studio即可。 阅读全文
posted @ 2016-01-20 17:07 UniqueColor 阅读(976) 评论(0) 推荐(0) 编辑
摘要:DescriptionOne traveler travels among cities. He has to pay for this while he can get some incomes.Now there are n cities, and the traveler has m days... 阅读全文
posted @ 2016-01-19 20:37 UniqueColor 阅读(203) 评论(0) 推荐(0) 编辑
摘要:龟兔赛跑Problem Description据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。... 阅读全文
posted @ 2016-01-19 02:45 UniqueColor 阅读(344) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示