摘要: 问题描述Tina Town 是一个善良友好的地方,这里的每一个人都互相关心。Tina有一个球,它的名字叫zball。zball很神奇,它会每天变大。在第一天的时候,它会变大11倍。在第二天的时候,它会变大22倍。在第nn天的时候,它会变大nn倍。zball原来的体积是11。Tina想知道,zball... 阅读全文
posted @ 2015-08-16 00:36 UniqueColor 阅读(443) 评论(0) 推荐(0)
摘要: DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled... 阅读全文
posted @ 2015-08-15 18:15 UniqueColor 阅读(250) 评论(0) 推荐(0)
摘要: Problem DescriptionSoda has a bipartite graph withnvertices andmundirected edges. Now he wants to make the graph become a complete bipartite graph wit... 阅读全文
posted @ 2015-08-15 18:03 UniqueColor 阅读(419) 评论(0) 推荐(0)
摘要: 有时候我们需要修改已经生成的列表,添加或者修改数据,notifyDataSetChanged()可以在修改适配器绑定的数组后,不用重新刷新Activity,通知Activity更新ListView。今天的例子就是通过Handler AsyncTask两种方式来动态更新ListView.布局main.... 阅读全文
posted @ 2015-08-15 01:45 UniqueColor 阅读(221) 评论(0) 推荐(0)
摘要: 前言:大家都知道Android程序的实现一般都由四大组件构成:Activity :Android程序实现功能的主体,提供了和客户交互的界面,也提供了和后台交互的功能。Service :是一个没有界面的activity,主要用于后台运行的程序。Broadcast :是当前程序和系统之间通信的工具。Co... 阅读全文
posted @ 2015-08-14 23:14 UniqueColor 阅读(246) 评论(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 阅读(165) 评论(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 阅读(162) 评论(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 阅读(214) 评论(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 阅读(307) 评论(0) 推荐(0)
摘要: ProblemDescriptionThereisadicewithnsides,whicharenumberedfrom1,2,...,nandhavetheequalpossibilitytoshowupwhenonerollsadice.Eachsidehasanintegeraionit.N... 阅读全文
posted @ 2015-08-14 20:13 UniqueColor 阅读(241) 评论(0) 推荐(0)