摘要: Problem DescriptionPrincess Alisha invites her friends to come to her birthday party. Each of her friends will bring a gift of some valuev, and all of... 阅读全文
posted @ 2015-10-03 12:52 Traveller_Leon 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe Joseph\\\\\\\'s problem is notoriously known. For those who are not familiar with the original problem: from among n people, nu... 阅读全文
posted @ 2015-09-28 19:20 Traveller_Leon 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThere is a hill with n holes around. The holes are signed from 0 to n-1.A rabbit must hide in one of the holes. A wolf searches the... 阅读全文
posted @ 2015-09-28 18:26 Traveller_Leon 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 描述滑动解锁是智能手机一项常用的功能。你需要在3x3的点阵上,从任意一个点开始,反复移动到一个尚未经过的"相邻"的点。这些划过的点所组成的有向折线,如果与预设的折线在图案、方向上都一致,那么手机将解锁。两个点相邻当且仅当以这两个点为端点的线段上不存在尚未经过的点。此外,这条折线还需要至少经过4个点。... 阅读全文
posted @ 2015-09-28 12:42 Traveller_Leon 阅读(690) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionGiven a prime numberC(1≤C≤2×105), and three integers k1, b1, k2(1≤k1,k2,b1≤109). Please find all pairs (a, b) which satisfied the e... 阅读全文
posted @ 2015-09-27 11:08 Traveller_Leon 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Activity有四种启动模式,默认为标准型。还是先给出表格,看的更加清楚。 "standard"可以有多个相同实例,并且每次启动一个Activity,系统总是在任务栈中创建一个Activity新的实例并且为它设置意图的路径。 "singleTop"的多个实例是有条件的,如果一个Activity的实 阅读全文
posted @ 2015-07-15 08:29 Traveller_Leon 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1,调web浏览器 Uri myBlogUri = Uri.parse("http://xxxxx.com"); returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri); //调用内置浏览器Uri u = Uri.parse(resultString 阅读全文
posted @ 2015-07-14 14:05 Traveller_Leon 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 同样是由于SDK版本引发的问题。版本高的更加严谨,限制更多。 Note: If your application targets API level 13 or higher (as declared by the minSdkVersion and targetSdkVersion attribu 阅读全文
posted @ 2015-07-13 20:23 Traveller_Leon 阅读(553) 评论(0) 推荐(1) 编辑
摘要: 前两天按教学视频在MainActivity中写完ContentProvider后在Manifest中配置了如下代码 <provider android:name="test.provider.SQLiteProvider" android:authorities="test.provider" /> 阅读全文
posted @ 2015-07-13 19:48 Traveller_Leon 阅读(1608) 评论(0) 推荐(1) 编辑