- 博客(31)
- 资源 (2)
- 收藏
- 关注
原创 Android 判断运行环境(ART or Dalvik)
现在可以通过获取java.vm.version的值来判断系统是否使用ART环境了,如果版本高于“2.0.0”即使用了ART环境。You can verify which runtime is in use by calling System.getProperty("java.vm.version"). If ART is in use, the property's value is "
2014-11-29 17:23:45
4315
原创 重置mysql root 密码
前几天安装的mysql,今天想登的时候突然发现root用户的密码忘记了,对自己很无语,无奈只有上网找方法重置密码了。当时通过ubuntu的apt-get安装的,网上很多方法都不适用,最后终于找到以下方法成功重置密码了。1.切换到root下su root2. 停止mysqld; /etc/init.d/mysql stop3. 用以下命令启动MySQL,以不检查权限的方
2013-01-04 15:36:21
441
原创 1088 滑雪
DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 516 17 18 19 615 24 25 20 714 2
2012-11-10 15:12:54
472
原创 1504 Adding Reversed Numbers
DescriptionThe Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advisor of ACM has decided to transfigu
2012-09-03 17:14:15
1960
原创 2406 Power Strings
DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti
2012-09-02 21:47:46
359
原创 1493 Machined Surfaces
DescriptionAn imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughness of this final contact is to be estimated.
2012-09-02 15:28:26
448
原创 1484 Blowing Fuses
DescriptionMaybe you are familiar with the following situation. You have plugged in a lot of electrical devices, such as toasters, refrigerators, microwave ovens, computers, stereos, etc, and have
2012-09-02 14:41:51
452
原创 1477 Box of Bricks
DescriptionLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. "Look, I've built a wall!", he tells his older sister Alice.
2012-09-01 23:43:58
1059
原创 1450 Gridland
DescriptionBackground For years, computer scientists have been trying to find efficient solutions to different computing problems. For some of them efficient algorithms are already available,
2012-09-01 23:29:00
342
原创 1350 Cabric Number Problem
DescriptionIf we input a number formed by 4 digits and these digits are not all of one same value, then it obeys the following law. Let us operate the number in the following way: (1) Arrange th
2012-09-01 20:59:21
457
原创 1338 Ugly Numbers
DescriptionUgly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ... shows the first 10 ugly numbers. By convention, 1 is included. Gi
2012-09-01 20:17:48
333
原创 1326 Mileage Bank
DescriptionMileage program of ACM (Airline of Charming Merlion) is really nice for the travelers flying frequently. Once you complete a flight with ACM, you can earn ACMPerk miles in your ACM Mile
2012-09-01 16:56:40
632
原创 1316 Self Numbers
DescriptionIn 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n plus the sum of the digits of n. (The d
2012-09-01 16:23:56
515
原创 1298 The Hardest Problem Ever
DescriptionJulius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him to survive, he decided to create one of the fir
2012-09-01 15:48:10
839
原创 1318 Word Amalgamation
DescriptionIn millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in order to find the letters that appear in the
2012-09-01 15:25:18
1594
原创 1250 Tanning Salon
DescriptionTan Your Hide, Inc., owns several coin-operated tanning salons. Research has shown that if a customer arrives and there are no beds available, the customer will turn around and leave, t
2012-08-31 22:47:58
636
原创 1248 Safecracker
Description"The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them, along with Klein and his factory, were destroyed in Worl
2012-08-31 20:36:45
441
原创 1247 Magnificent Meatballs
DescriptionSam and Ella run a catering service. They like to put on a show when serving meatballs to guests seated at round tables. They march out of the kitchen with pots of meatballs and start s
2012-08-31 18:48:46
510
原创 1207 The 3n + 1 problem
DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an a
2012-08-31 18:21:45
833
原创 1046 Color Me Less
DescriptionA color reduction is a mapping from a set of discrete colors to a smaller one. The solution to this problem requires that you perform just such a mapping in a standard twenty-four bit R
2012-08-30 11:04:43
1606
原创 1007 DNA Sorting
DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this m
2012-08-30 00:32:15
302
原创 1004 Financial Management
DescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfo
2012-08-29 22:55:54
294
原创 1003 Hangover
DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicul
2012-08-29 22:37:27
719
原创 1005 I Think I Need a Houseboat
DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinkin
2012-08-29 22:05:41
242
原创 1040 凑表达式
Description:有一些整数组,每三个数成一组。如果三个数经过四则运算(+、-、×、÷)得出结果0,则输出“yes”,否则输出“no”。当三个数为全0时,表示输入结束。Sample Input:1 2 33 8 10100 210 7900 1 00 0 0Sample Output:yesnonoyessource:#include
2012-08-29 16:15:26
532
原创 1019 打怪的力量
Description:Tyr最喜欢吃罐装的菠菜,因为Tyr的力量来自于吃掉的菠菜。每次Tyr出去冒险的时候都会带上很多的菠菜罐头,当遇到危险的时候,他就会从背包里拿出菠菜罐头,以最快的速度吃掉它们,以最快的速度增加力量,从而克服困难。根据历史的统计数据,Tyr拿出一个菠菜罐头需要花费A s的时间,吃掉一个菠菜罐头的时间是B s。每当Tyr遇到一个怪物的时候,怪物会在C s之后的时间里吃掉Ty
2012-08-29 15:27:19
452
原创 1096 减肥
Description:SC的同学们参加ZJUT电台的节目,在拍摄前需要进行减肥试验,按照计划每天减一斤。现有N个同学在拍摄前Di天就进行减肥试验,求在拍摄时的体重,并按升序输出。Input:第一行为T,表明有T组测试数据。 每组测试数据第一行为N(1≤N≤50),表明有N个同学,接下来N行,每行有2个整数Di,Wi。Di表示第i个同学减肥的天数,Wi表示第i个同学原先的体重(Wi
2012-08-29 14:22:38
382
原创 1056 织花纹布
Description:输入中含有若干组数据,每组数据由四部分组成,第一个是花纹字符,后面三个是整数,分别表示宽度(<80的奇数),高度(≤40)和重复度(≤20)。请编程画出该花纹。Sample Input:W 9 17 1E 15 6 2Sample Output:WWWWWWWWW W W W W W WWWWWWWWW W W W W W W
2012-08-29 01:18:31
507
原创 1029 Fibonacci数
Description:有一些整数N(N≤46),输出以这些整数为序数的第n项fibonacci数。文件中的数据可能上万,但要求运行时间不超过1秒钟。Sample Input:5678940Sample Output:58132134102334155source:#include #include usi
2012-08-29 00:15:42
468
原创 1028 按长度排序
Description:有一些整数,它的结构是:第一行为一个整数N,表示后面有N个整数需要排序输出,先按长度排,如长度一样则按大小排,若遇到N等于零,则运行结束。Sample Input:31231233332100000000000000010Sample Output:12123333311000000000000000sourc
2012-08-28 23:27:57
986
原创 1027 大数的乘法
Description:给出一些整数对,一个是可能接近100位的大数,另一个只有1位数,求这些整数对的乘积。Sample Input:1 1123 012345678910 8123456789101234567891012345678910 7Sample Output:10987654312808641975237086419752370864197523
2012-08-28 16:11:11
1120
Android中文翻译组——Android中文API合集(3)
2011-06-22
Android中文翻译组——Android中文API——android.widget合集(中)
2011-06-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人