摘要: “Oh God”, Lara Croft exclaims, “it’sone of these dumb riddles again!”In Tomb Raider XIV, Lara is, as ever, gunning her way through ancient Egyptian pyramids, prehistoric caves and medival hallways. Now she is standing in front of some important Germanic looking doorway and has to solve a linguistic 阅读全文
posted @ 2013-03-13 00:51 WingWing111 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Given ambyngrid of letters, (), and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line of letters in the grid. A word can match the letters in the grid regardless of case (i.e. upper and lower case letters are to be treated as 阅读全文
posted @ 2013-03-12 17:03 WingWing111 阅读(235) 评论(0) 推荐(0) 编辑
摘要: A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string"ABCDEDCBA"is a palindrome because it is the same when the string is read from left to right as when the string is read from right to left.A mirrored string is a string for w 阅读全文
posted @ 2013-03-11 22:46 WingWing111 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 10000msMemory Limit: 65536kBDescription如果一个正整数n至少在两个不同的进位制b1和b2下都是回文数(2),则称n是双基回文数(注意,回文数不能包含前导零)。输入十进制的正整数S #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define LL long... 阅读全文
posted @ 2013-03-09 20:07 WingWing111 阅读(269) 评论(0) 推荐(0) 编辑
摘要: It is easy to see that for every fraction in the form(k> 0), we can always find two positive integersxandy,x≥y, such that:.Now our question is: can you write a program that counts how many such pairs ofxandythere are for any givenk?InputInput contains no more than 100 lines, each giving a value o 阅读全文
posted @ 2013-03-08 22:03 WingWing111 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 一个35岁左右的白骨精来找我们,她需要在两个工作里面做选择。一个是年薪30万的制片总监,一个是年薪10万的市场策划。她喜欢后者的节奏与内容,却被前面的工资吸引。我们仔细算了一下她的工作时间:前者是每天加班,节假日无休赶节目,每天工作近15个小时,后者则是8小时规律的生活。这样算下来,两者的时薪差不多,只是那份“好工作”把三年的活放到一年来做罢了。如果加上由此产生的未来医药费,简直比“坏工作”还不赚钱。我问她,你现在最需要的是最快速度赚一大笔钱,还是按照自己的节奏做喜欢的事情?她恍然大悟选择了后者,再也不觉得亏了。 作为职业规划师,我想告诉你关于工资的一个秘密,年薪月薪是相当有欺骗性的东西。真正 阅读全文
posted @ 2013-03-08 05:17 WingWing111 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 最大连续子序列和问题是个很老的面试题了,最佳的解法是O(N)复杂度,当然其中的一些小的地方还是有些值得注意的地方的。这里还是总结三种常见的解法,重点关注最后一种O(N)的解法即可。需要注意的是有些题目中的最大连续子序列和如果为负,则返回0;而本题目中的最大连续子序列和并不返回0,如果是全为负数,则返回最大的负数即可。问题描述求取数组中最大连续子序列和,例如给定数组为A={1, 3, -2, 4, -5}, 则最大连续子序列和为6,即1+3+(-2)+ 4 = 6。解法1—O(N^2)解法因为最大连续子序列和只可能从数组0到n-1中某个位置开始,我们可以遍历0到n-1个位置,计算由这个位置开始的 阅读全文
posted @ 2013-03-08 05:11 WingWing111 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits0through9once each, such that the first number divided by the second is equal to an integerN, where. That is,abcde / fghij =Nwhere each letter represents a different digit. The first digit of one of 阅读全文
posted @ 2013-03-07 17:15 WingWing111 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 由于饮食习惯(不分餐,从一个盘里夹菜)的关系,中国人幽门螺旋杆菌感染率是全世界最高的(可能高达90%)。幽门螺旋杆菌寄生在胃部,除了会引起胃炎胃溃疡之外,更被世界卫生组织确定为第一类胃癌致癌源。 阅读全文
posted @ 2013-03-06 14:44 WingWing111 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1、注意劳逸结合,防止肌腱劳损。长时间操作电脑会导致手指关节、手腕、手臂肌肉、双肩、颈部、背部等部位出现酸胀疼痛,因此,操作者在工作一小时后应休息10分钟,或者做做工间操。 2、要注意用眼卫生。眼睛与文稿、眼睛与屏幕的距离应保持在50厘米以上,最好采用光下视20度的视角。工作时,应在面部及双手涂抹防辐射的护肤油。 3、孕妇每周接触电脑时间不超过20小时。要防止长时间坐位引起盆腔血液滞留不畅,做到张驰有度;要注意电脑与座椅坐姿的高低配合,让胎儿健康发育。 4、长期从事电脑操作者,应多吃一些新鲜的蔬菜和水果。同时增加维生素A、B1、C、E的摄入。为预防角膜干燥、眼干涩、视力下降、甚至出现夜盲... 阅读全文
posted @ 2013-03-06 04:34 WingWing111 阅读(141) 评论(0) 推荐(0) 编辑