摘要: 前言:大家都知道Android程序的实现一般都由四大组件构成:Activity :Android程序实现功能的主体,提供了和客户交互的界面,也提供了和后台交互的功能。Service :是一个没有界面的activity,主要用于后台运行的程序。Broadcast :是当前程序和系统之间通信的工具。Co... 阅读全文
posted @ 2015-08-14 23:14 UniqueColor 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 共有属性: java代码中通过btn1关联次控件 android:id="@+id/btn1"控件宽度 android:layout_width="80px"//"80dip"或"80dp"android:layout_width =“wrap_content”android:layout_widt... 阅读全文
posted @ 2015-08-14 23:09 UniqueColor 阅读(151) 评论(0) 推荐(0) 编辑
摘要: DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regul... 阅读全文
posted @ 2015-08-14 22:16 UniqueColor 阅读(149) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card o... 阅读全文
posted @ 2015-08-14 21:36 UniqueColor 阅读(201) 评论(0) 推荐(0) 编辑
摘要: DescriptionFJ has purchased N (1 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 using namespace std;11 #de... 阅读全文
posted @ 2015-08-14 21:00 UniqueColor 阅读(295) 评论(0) 推荐(0) 编辑
摘要: ProblemDescriptionThereisadicewithnsides,whicharenumberedfrom1,2,...,nandhavetheequalpossibilitytoshowupwhenonerollsadice.Eachsidehasanintegeraionit.N... 阅读全文
posted @ 2015-08-14 20:13 UniqueColor 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionLike everyone, cows enjoy variety. Their current fancy is new shapes for pastures. The old rectangular shapes are out of favor; new... 阅读全文
posted @ 2015-08-14 20:07 UniqueColor 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionShaolin temple is very famous for its Kongfu monks.A lot of young men go to Shaolin temple every year, trying to be a monk there. T... 阅读全文
posted @ 2015-08-14 19:27 UniqueColor 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Problem Description圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人。如果从第一个人开始数数,数到第m个人,则立即处死该人;然后从被处死的人之后开始数数,再将数到的第m个人处死……依此方法不断处死围坐在圆桌上的人。试问预先应如何安排这些好人与坏人的座位,能使得在处死n个人之... 阅读全文
posted @ 2015-08-14 16:33 UniqueColor 阅读(938) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionZero Escape, is a visual novel adventure video game directed by Kotaro Uchikoshi (you may hear about ever17?) and developed by Chun... 阅读全文
posted @ 2015-08-14 16:01 UniqueColor 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionWe all love recursion! Don't we?Consider a three-parameter recursive function w(a, b, c):if a 20 or b > 20 or c > 20, then w(a, b,... 阅读全文
posted @ 2015-08-14 15:50 UniqueColor 阅读(198) 评论(0) 推荐(0) 编辑
摘要: FatMouse and CheeseProblem DescriptionFatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid... 阅读全文
posted @ 2015-08-14 15:08 UniqueColor 阅读(249) 评论(0) 推荐(0) 编辑