2013年9月13日

Max Sum

摘要: Max SumTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 115635Accepted Submission(s): 26817Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma 阅读全文

posted @ 2013-09-13 08:31 ~Love() 阅读(223) 评论(0) 推荐(0)

2013年9月12日

Encoding

摘要: EncodingTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21830Accepted Submission(s): 9547Problem DescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k sam 阅读全文

posted @ 2013-09-12 23:26 ~Love() 阅读(185) 评论(0) 推荐(0)

海阔天空- - - - - - - -送给自己!

摘要: 今天我 寒夜里看雪飘过怀着冷却了的心窝漂远方风雨里追赶 雾里分不清影踪天空海阔你与我可会变 (谁没在变)多少次 迎着冷眼与嘲笑从没有放弃过心中的理想一刹那恍惚 若有所失的感觉不知不觉已变淡心里爱 (谁明白我)原谅我这一生不羁放纵爱自由也会怕有一天会跌倒背弃了理想 谁人都可以哪会怕有一天只你共我今天我 寒夜里看雪飘过怀着冷却了的心窝漂远方风雨里追赶 雾里分不清影踪天空海阔你与我可会变 (谁没在变)原谅我这一生不羁放纵爱自由也会怕有一天会跌倒背弃了理想 谁人都可以哪会怕有一天只你共我仍然自由自我永远高唱我歌 走遍千里原谅我这一生不羁放纵爱自由也会怕有一天会跌倒背弃了理想 谁人都可以哪会怕有一天只你 阅读全文

posted @ 2013-09-12 13:18 ~Love() 阅读(162) 评论(0) 推荐(0)

Binomial Showdown

摘要: Binomial ShowdownTimeLimit:1 Second MemoryLimit:32 MegabyteTotalsubmit:2323 Accepted:572 DescriptionIn how many ways can you choose k elements out of n elements, not taking order into account?Write a program to compute this number.InputThe input will contain one or more test cases.Each test case con 阅读全文

posted @ 2013-09-12 09:33 ~Love() 阅读(492) 评论(0) 推荐(0)

Square

摘要: SquareTimeLimit:1 Second MemoryLimit:32 MegabyteTotalsubmit:1638 Accepted:440 DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first line of input contains N, the number of test cases. Each test case begins with an integer 4 #inclu 阅读全文

posted @ 2013-09-12 09:24 ~Love() 阅读(171) 评论(0) 推荐(0)

Power Strings

摘要: Power StringsTimeLimit:1 Second MemoryLimit:32 MegabyteTotalsubmit:1791 Accepted:528 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 阅读全文

posted @ 2013-09-12 09:11 ~Love() 阅读(224) 评论(0) 推荐(0)

Relatives

摘要: RelativesTimeLimit:1 Second MemoryLimit:32 MegabyteTotalsubmit:1566 Accepted:513 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 there are no integers x > 1, y > 0, z > 0 such that a = xy 阅读全文

posted @ 2013-09-12 08:55 ~Love() 阅读(226) 评论(0) 推荐(0)

Hay Points

摘要: Hay PointsTimeLimit:1 Second MemoryLimit:32 MegabyteTotalsubmit:1022 Accepted:602 DescriptionEach employee of a bureaucracy has a job description - a few paragraphs that describe the responsibilities of the job. The employee's job description, combined with other factors, such as seniority, is u 阅读全文

posted @ 2013-09-12 08:52 ~Love() 阅读(298) 评论(0) 推荐(0)

初学acm感想

摘要: 初学acm,觉得大部分题对我来说都是陌生的,好多类型没见过,好多题没思路,打击确实不小,或许这个阶段正是比较能考验人的时候吧,因为只有坚持下来才有收获,没有人生下来就是大神,所以不能气馁更不能放弃,有些路只有你走过了才知道沿途的风景,唉,就这样吧,希望以此激励自己今后的学习 阅读全文

posted @ 2013-09-12 00:02 ~Love() 阅读(327) 评论(5) 推荐(1)

2013年9月11日

How Many Tables

摘要: How Many TablesTime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 8Accepted Submission(s) : 3Font: Times New Roman | Verdana | GeorgiaFont Size: ← →Problem Description Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner ti 阅读全文

posted @ 2013-09-11 23:52 ~Love() 阅读(177) 评论(0) 推荐(0)

导航