08 2015 档案

摘要:DescriptionRain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 2 #include 3 #include 4 using namespace std; 5 #define N ... 阅读全文
posted @ 2015-08-31 21:22 UniqueColor 阅读(368) 评论(0) 推荐(0) 编辑
摘要:DescriptionIn a kindergarten, there are a lot of kids. All girls of the kids know each other and all boys also know each other. In addition to that, s... 阅读全文
posted @ 2015-08-31 19:17 UniqueColor 阅读(158) 评论(0) 推荐(0) 编辑
摘要:DescriptionIn the second year of the university somebody started a study on the romantic relations between the students. The relation "romantically in... 阅读全文
posted @ 2015-08-31 18:15 UniqueColor 阅读(220) 评论(0) 推荐(0) 编辑
摘要:DescriptionProfessor Clumsey is going to give an important talk this afternoon. Unfortunately, he is not a very tidy person and has put all his transp... 阅读全文
posted @ 2015-08-31 17:10 UniqueColor 阅读(245) 评论(0) 推荐(0) 编辑
摘要:DescriptionFJ has moved his K (1 15, a row is broken into successive lines of 15 numbers and a potentially shorter line to finish up a row. Each new ... 阅读全文
posted @ 2015-08-30 22:15 UniqueColor 阅读(334) 评论(0) 推荐(0) 编辑
摘要:DescriptionFarmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering probl... 阅读全文
posted @ 2015-08-30 20:54 UniqueColor 阅读(229) 评论(0) 推荐(0) 编辑
摘要:DescriptionBessie noted that although humans have many universities they can attend, cows have none. To remedy this problem, she and her fellow cows f... 阅读全文
posted @ 2015-08-30 20:17 UniqueColor 阅读(288) 评论(0) 推荐(0) 编辑
摘要:DescriptionGiven n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if... 阅读全文
posted @ 2015-08-30 18:05 UniqueColor 阅读(212) 评论(0) 推荐(0) 编辑
摘要:DescriptionLet's play a card game called Gap. You have 28 cards labeled with two-digit numbers. The first digit (from 1 to 4) represents the suit of t... 阅读全文
posted @ 2015-08-30 17:52 UniqueColor 阅读(305) 评论(0) 推荐(0) 编辑
摘要:DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga... 阅读全文
posted @ 2015-08-30 13:19 UniqueColor 阅读(181) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is o... 阅读全文
posted @ 2015-08-29 23:50 UniqueColor 阅读(319) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is o... 阅读全文
posted @ 2015-08-29 22:22 UniqueColor 阅读(198) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is o... 阅读全文
posted @ 2015-08-29 22:18 UniqueColor 阅读(179) 评论(0) 推荐(0) 编辑
摘要:Untrusted PatrolTime Limit:3 Seconds Memory Limit:65536 KBEdward is a rich man. He owns a large factory for health drink production. As a matter of co... 阅读全文
posted @ 2015-08-29 18:37 UniqueColor 阅读(218) 评论(0) 推荐(0) 编辑
摘要:Descriptionn points are given on the Cartesian plane. Now you have to use some rectangles whose sides are parallel to the axes to cover them. Every po... 阅读全文
posted @ 2015-08-29 02:38 UniqueColor 阅读(266) 评论(0) 推荐(0) 编辑
摘要:DescriptionTo avoid unsightly burns while tanning, each of the C (1 ≤ C ≤ 2500) cows must cover her hide with sunscreen when they're at the beach. Cow... 阅读全文
posted @ 2015-08-29 00:28 UniqueColor 阅读(481) 评论(0) 推荐(0) 编辑
摘要:Description Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow som... 阅读全文
posted @ 2015-08-28 21:55 UniqueColor 阅读(166) 评论(0) 推荐(0) 编辑
摘要:DescriptionFarmer Johnson's Bulls love playing basketball very much. But none of them would like to play basketball with the other bulls because they ... 阅读全文
posted @ 2015-08-28 20:23 UniqueColor 阅读(254) 评论(0) 推荐(0) 编辑
摘要:DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a... 阅读全文
posted @ 2015-08-28 19:26 UniqueColor 阅读(203) 评论(0) 推荐(0) 编辑
摘要:DescriptionKing George has recently decided that he would like to have a new design for the royal graveyard. The graveyard must consist of several sec... 阅读全文
posted @ 2015-08-28 18:31 UniqueColor 阅读(232) 评论(0) 推荐(0) 编辑
摘要:DescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given pos... 阅读全文
posted @ 2015-08-28 17:41 UniqueColor 阅读(282) 评论(0) 推荐(0) 编辑
摘要:DescriptionSignals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and Space Administration (that must ... 阅读全文
posted @ 2015-08-28 02:46 UniqueColor 阅读(373) 评论(0) 推荐(0) 编辑
摘要:DescriptionFJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 2 #include 3 #include 4 using namespace std; 5 #de... 阅读全文
posted @ 2015-08-28 01:33 UniqueColor 阅读(249) 评论(0) 推荐(0) 编辑
摘要:DescriptionGiven a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and writing them in some... 阅读全文
posted @ 2015-08-27 22:43 UniqueColor 阅读(223) 评论(0) 推荐(0) 编辑
摘要:DescriptionOh those picky N (1 >>>>>>>>>>>>>>>>>>>>>>>>>>Stall 2 .. c2>>>>>> c4>>>>>>>>> .. ..Stall 3 .. .. c3>>>>>>>>> .. .. .. ..Stall 4 .. .. .. c5 阅读全文
posted @ 2015-08-27 20:38 UniqueColor 阅读(165) 评论(0) 推荐(0) 编辑
摘要:Problem Description Coach Pang and Uncle Yang both love numbers. Every morning they play a game with number together. In each game the following will... 阅读全文
posted @ 2015-08-27 18:44 UniqueColor 阅读(232) 评论(0) 推荐(0) 编辑
摘要:DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating ... 阅读全文
posted @ 2015-08-27 01:34 UniqueColor 阅读(235) 评论(0) 推荐(0) 编辑
摘要:DescriptionFarmer John is assigning some of his N (1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define N 26000 8 struct No... 阅读全文
posted @ 2015-08-27 00:00 UniqueColor 阅读(228) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionToday is CRB's birthday. His mom decided to buy many presents for her lovely son. She went to the nearest shop withMWon(currency un... 阅读全文
posted @ 2015-08-21 00:54 UniqueColor 阅读(409) 评论(0) 推荐(0) 编辑
摘要:Problem Description《Journey to the West》(also 《Monkey》) is one of the Four Great Classical Novels of Chinese literature. It was written by Wu Cheng'en... 阅读全文
posted @ 2015-08-20 04:47 UniqueColor 阅读(373) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionThere are 2 special dices on the table. On each face of the dice, a distinct number was written. Consider a1.a2,a3,a4,a5,a6to be nu... 阅读全文
posted @ 2015-08-20 02:29 UniqueColor 阅读(225) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionXinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not very ... 阅读全文
posted @ 2015-08-19 23:04 UniqueColor 阅读(184) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionFollowing is the recursive definition of Fibonacci sequence:Fi=⎧⎩⎨01Fi−1+Fi−2i = 0i = 1i > 1Now we need to check whether a number c... 阅读全文
posted @ 2015-08-19 22:36 UniqueColor 阅读(249) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionThere are x cards on the desk, they are numbered from 1 to x. The score of the card which is numbered i(1 2 #include 3 #include 4 #... 阅读全文
posted @ 2015-08-19 22:09 UniqueColor 阅读(197) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionJohn has n points on the X axis, and their coordinates are (x[i],0),(i=0,1,2,…,n−1). He wants to know how many pairs that |x[b]−x[a... 阅读全文
posted @ 2015-08-19 18:11 UniqueColor 阅读(748) 评论(0) 推荐(0) 编辑
摘要:Break Standard WeightTime Limit: 2 Seconds Memory Limit: 65536 KBThe balance was the first mass measuring instrument invented. In its traditional f... 阅读全文
posted @ 2015-08-19 03:32 UniqueColor 阅读(302) 评论(0) 推荐(0) 编辑
摘要:Problem Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the... 阅读全文
posted @ 2015-08-19 02:03 UniqueColor 阅读(290) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionTeacher Mai hasnnumbersa1,a2,⋯,anandn−1operators("+", "-" or "*")op1,op2,⋯,opn−1, which are arranged in the forma1op1a2op2a3⋯an.He ... 阅读全文
posted @ 2015-08-18 23:38 UniqueColor 阅读(258) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionA sequence b1,b2,⋯,bn are called (d1,d2)-arithmetic sequence if and only if there exist i(1≤i≤n) such that for every j(1≤j 2 #inclu... 阅读全文
posted @ 2015-08-18 20:00 UniqueColor 阅读(235) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionTeacher Mai is in a maze with n rows and m columns. There is a non-negative number in each cell. Teacher Mai wants to walk from the... 阅读全文
posted @ 2015-08-18 19:52 UniqueColor 阅读(304) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionLee has a string of n pearls. In the beginning, all the pearls have no color. He plans to color the pearls to make it more fascinat... 阅读全文
posted @ 2015-08-17 23:44 UniqueColor 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Network of SchoolsDescriptionA number of schools are connected to a computer network. Agreements have been developed among those schools: each school ... 阅读全文
posted @ 2015-08-17 21:28 UniqueColor 阅读(226) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionTo prove two sets A and B are equivalent, we can first prove A is a subset of B, and then prove B is a subset of A, so finally we g... 阅读全文
posted @ 2015-08-17 20:58 UniqueColor 阅读(292) 评论(0) 推荐(0) 编辑
摘要:#1156 : 彩色的树时间限制:2000ms单点时限:1000ms内存限制:256MB描述给定一棵n个节点的树,节点编号为1, 2, …, n。树中有n - 1条边,任意两个节点间恰好有一条路径。这是一棵彩色的树,每个节点恰好可以染一种颜色。初始时,所有节点的颜色都为0。现在需要实现两种操作:1.... 阅读全文
posted @ 2015-08-17 20:27 UniqueColor 阅读(318) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionThere are N cities in the country. Each city is represent by a matrix size of M*M. If city A, B and C satisfy that A*B = C, we say ... 阅读全文
posted @ 2015-08-17 18:05 UniqueColor 阅读(217) 评论(0) 推荐(0) 编辑
摘要:DescriptionYYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy's base. After overcoming a series difficult... 阅读全文
posted @ 2015-08-17 17:50 UniqueColor 阅读(200) 评论(0) 推荐(0) 编辑
摘要:1、Context概念:Context,相信不管是第一天开发Android,还是开发Android的各种老鸟,对于Context的使用一定不陌生~~你在加载资源、启动一个新的Activity、获取系统服务、获取内部文件(夹)路径、创建View操作时等都需要Context的参与,可见Context的常... 阅读全文
posted @ 2015-08-17 04:15 UniqueColor 阅读(317) 评论(0) 推荐(0) 编辑
摘要:动画类型Android的animation由四种类型组成XML中alpha渐变透明度动画效果scale渐变尺寸伸缩动画效果translate画面转换位置移动动画效果rotate画面转移旋转动画效果JavaCode中AlphaAnimation渐变透明度动画效果ScaleAnimation渐变尺寸伸缩... 阅读全文
posted @ 2015-08-17 04:04 UniqueColor 阅读(371) 评论(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 阅读(252) 评论(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 阅读(307) 评论(0) 推荐(0) 编辑
摘要:题意:有k种颜色,每种颜色对应a[i]个球,球的总数不超过1000要求第i种颜色的最后一个球,其后面接着的必须是第i+1种颜色的球问一共有多少种排法Sample test(s)input3221output3input41234output1680NoteIn the first sample, w... 阅读全文
posted @ 2015-08-16 22:03 UniqueColor 阅读(301) 评论(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 阅读(279) 评论(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 阅读(190) 评论(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 阅读(231) 评论(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 阅读(310) 评论(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 阅读(505) 评论(0) 推荐(0) 编辑
摘要:问题描述Tina Town 是一个善良友好的地方,这里的每一个人都互相关心。Tina有一个球,它的名字叫zball。zball很神奇,它会每天变大。在第一天的时候,它会变大11倍。在第二天的时候,它会变大22倍。在第nn天的时候,它会变大nn倍。zball原来的体积是11。Tina想知道,zball... 阅读全文
posted @ 2015-08-16 00:36 UniqueColor 阅读(426) 评论(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 阅读(241) 评论(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 阅读(410) 评论(0) 推荐(0) 编辑
摘要:有时候我们需要修改已经生成的列表,添加或者修改数据,notifyDataSetChanged()可以在修改适配器绑定的数组后,不用重新刷新Activity,通知Activity更新ListView。今天的例子就是通过Handler AsyncTask两种方式来动态更新ListView.布局main.... 阅读全文
posted @ 2015-08-15 01:45 UniqueColor 阅读(206) 评论(0) 推荐(0) 编辑
摘要:前言:大家都知道Android程序的实现一般都由四大组件构成:Activity :Android程序实现功能的主体,提供了和客户交互的界面,也提供了和后台交互的功能。Service :是一个没有界面的activity,主要用于后台运行的程序。Broadcast :是当前程序和系统之间通信的工具。Co... 阅读全文
posted @ 2015-08-14 23:14 UniqueColor 阅读(232) 评论(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 阅读(154) 评论(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 阅读(150) 评论(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 阅读(203) 评论(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 阅读(298) 评论(0) 推荐(0) 编辑
摘要:ProblemDescriptionThereisadicewithnsides,whicharenumberedfrom1,2,...,nandhavetheequalpossibilitytoshowupwhenonerollsadice.Eachsidehasanintegeraionit.N... 阅读全文
posted @ 2015-08-14 20:13 UniqueColor 阅读(224) 评论(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 阅读(250) 评论(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 阅读(181) 评论(0) 推荐(0) 编辑
摘要:Problem Description圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人。如果从第一个人开始数数,数到第m个人,则立即处死该人;然后从被处死的人之后开始数数,再将数到的第m个人处死……依此方法不断处死围坐在圆桌上的人。试问预先应如何安排这些好人与坏人的座位,能使得在处死n个人之... 阅读全文
posted @ 2015-08-14 16:33 UniqueColor 阅读(942) 评论(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 阅读(303) 评论(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 阅读(200) 评论(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 阅读(252) 评论(0) 推荐(0) 编辑

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