摘要: There is a bag-like data structure, supporting two operations:1 x Throw an element x into the bag. 2 Take out an element from the bag.Given a sequence 阅读全文
posted @ 2017-07-26 16:15 西北会法语 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The exciteme 阅读全文
posted @ 2017-07-26 16:08 西北会法语 阅读(161) 评论(0) 推荐(0) 编辑
摘要: It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has dec 阅读全文
posted @ 2017-07-26 16:02 西北会法语 阅读(438) 评论(0) 推荐(0) 编辑
摘要: Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi 阅读全文
posted @ 2017-07-26 15:55 西北会法语 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the 阅读全文
posted @ 2017-07-26 15:51 西北会法语 阅读(131) 评论(0) 推荐(0) 编辑
摘要: The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D 阅读全文
posted @ 2017-07-26 15:40 西北会法语 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100; Now please try your lucky.InputThe first line 阅读全文
posted @ 2017-07-26 15:34 西北会法语 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, whic 阅读全文
posted @ 2017-07-26 15:29 西北会法语 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人。如果从第一个人开始数数,数到第m个人,则立即处死该人;然后从被处死的人之后开始数数,再将数到的第m个人处死……依此方法不断处死围坐在圆桌上的人。试问预先应如何安排这些好人与坏人的座位,能使得在处死n个人之后,圆桌上围坐的剩余的n个人全是好人。 阅读全文
posted @ 2017-07-26 15:03 西北会法语 阅读(357) 评论(0) 推荐(0) 编辑
摘要: As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in th 阅读全文
posted @ 2017-07-26 14:46 西北会法语 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tir 阅读全文
posted @ 2017-07-26 14:34 西北会法语 阅读(159) 评论(0) 推荐(0) 编辑
摘要: The Enterprise has encountered a planet that at one point had been inhabited. The only remnant from the prior civilization is a set of texts that was 阅读全文
posted @ 2017-07-26 14:14 西北会法语 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Polycarp watched TV-show where k jury members one by one rated a participant by adding him a certain number of points (may be negative, i. e. points w 阅读全文
posted @ 2017-07-26 09:06 西北会法语 阅读(170) 评论(0) 推荐(0) 编辑
摘要: The D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is D-unique if all of its D-pairs ar 阅读全文
posted @ 2017-07-26 09:02 西北会法语 阅读(167) 评论(0) 推荐(0) 编辑