摘要: 1、Context概念:Context,相信不管是第一天开发Android,还是开发Android的各种老鸟,对于Context的使用一定不陌生~~你在加载资源、启动一个新的Activity、获取系统服务、获取内部文件(夹)路径、创建View操作时等都需要Context的参与,可见Context的常... 阅读全文
posted @ 2015-08-17 04:15 UniqueColor 阅读(363) 评论(0) 推荐(0)
摘要: 动画类型Android的animation由四种类型组成XML中alpha渐变透明度动画效果scale渐变尺寸伸缩动画效果translate画面转换位置移动动画效果rotate画面转移旋转动画效果JavaCode中AlphaAnimation渐变透明度动画效果ScaleAnimation渐变尺寸伸缩... 阅读全文
posted @ 2015-08-17 04:04 UniqueColor 阅读(382) 评论(0) 推荐(0)
摘要: Problem DescriptionThe signature of a permutation is a string that is computed as follows: for each pair of consecutive elements of the permutation, w... 阅读全文
posted @ 2015-08-17 02:31 UniqueColor 阅读(261) 评论(0) 推荐(0)
摘要: Problem DescriptionDuring summer vacation,Alice stay at home for a long time, with nothing to do. She went out and bought m pokers, tending to play po... 阅读全文
posted @ 2015-08-17 01:12 UniqueColor 阅读(314) 评论(0) 推荐(0)
摘要: 题意:有k种颜色,每种颜色对应a[i]个球,球的总数不超过1000要求第i种颜色的最后一个球,其后面接着的必须是第i+1种颜色的球问一共有多少种排法Sample test(s)input3221output3input41234output1680NoteIn the first sample, w... 阅读全文
posted @ 2015-08-16 22:03 UniqueColor 阅读(315) 评论(0) 推荐(0)
摘要: Problem DescriptionGoffi is doing his math homework and he finds an equality on his text book:gcd(n−a,n)×gcd(n−b,n)=nk.Goffi wants to know the number ... 阅读全文
posted @ 2015-08-16 21:22 UniqueColor 阅读(285) 评论(1) 推荐(0)
摘要: Problem DescriptionGiven 5 integers: a, b, c, d, k, you're to find x in a...b, y in c...d that GCD(x, y) = k. GCD(x, y) means the greatest common divi... 阅读全文
posted @ 2015-08-16 20:22 UniqueColor 阅读(199) 评论(0) 推荐(0)
摘要: Problem DescriptionThere are n people standing in a line. Each of them has a unique id number.Now the Ragnarok is coming. We should choose 3 people to... 阅读全文
posted @ 2015-08-16 18:51 UniqueColor 阅读(241) 评论(0) 推荐(0)
摘要: Co-primeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2307Accepted Submission(s): 861 Problem D... 阅读全文
posted @ 2015-08-16 05:07 UniqueColor 阅读(327) 评论(0) 推荐(0)
摘要: Problem DescriptionThere is a big stone with smooth surface in Tina Town. When people go towards it, the stone surface will be lighted and show its us... 阅读全文
posted @ 2015-08-16 00:41 UniqueColor 阅读(530) 评论(0) 推荐(0)