上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 38 下一页

2017年5月25日

The Sultan's Successors UVA - 167

摘要: the squares thus selected sum to a number at least as high as one already chosen by the Sultan. (For those unfamiliar with the rules of chess, this im 阅读全文

posted @ 2017-05-25 21:42 九月旧约 阅读(209) 评论(0) 推荐(0)

2017年5月24日

Fractions Again?! UVA - 10976

摘要: It is easy to see that for every fraction in the form 1k(k > 0), we can always find two positive integersx and y, x ≥ y, such that:1k=1x+1yNow our que 阅读全文

posted @ 2017-05-24 20:46 九月旧约 阅读(166) 评论(0) 推荐(0)

Maximum Product UVA - 11059

摘要: Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of themaximum positive product involving consecutive ter 阅读全文

posted @ 2017-05-24 20:41 九月旧约 阅读(138) 评论(0) 推荐(0)

2017年5月23日

Investigating Div-Sum Property UVA - 11361

摘要: An integer is divisible by 3 if the sum of its digits is also divisible by 3. For example, 3702 is divisibleby 3 and 12(3+7+0+2) is also divisible by 阅读全文

posted @ 2017-05-23 17:40 九月旧约 阅读(160) 评论(0) 推荐(0)

Period UVALive - 3026

摘要: For each prefix of a given string S with N characters (each character has an ASCII code between 97 and126, inclusive), we want to know whether the pre 阅读全文

posted @ 2017-05-23 17:32 九月旧约 阅读(169) 评论(0) 推荐(0)

Numbers That Count POJ - 1016

摘要: "Kronecker's Knumbers" is a little company that manufactures plastic digits for use in signs (theater marquees, gas station price displays, and so on) 阅读全文

posted @ 2017-05-23 17:19 九月旧约 阅读(187) 评论(0) 推荐(0)

Orders POJ - 1731

摘要: The stores manager has sorted all kinds of goods in an alphabetical order of their labels. All the kinds having labels starting with the same letter a 阅读全文

posted @ 2017-05-23 17:13 九月旧约 阅读(173) 评论(0) 推荐(0)

2017年5月21日

小明的数列

摘要: 题目描述 小明现在有一个n个数组成的数列,小明现在想取一个连续的子序列,并且这个子序列还必须得满足:最多只改变一个数,就可以使得这个连续的子序列是一个严格上升的子序列,小明想知道这个连续子序列最长的长度是多少。 题目描述 小明现在有一个n个数组成的数列,小明现在想取一个连续的子序列,并且这个子序列还 阅读全文

posted @ 2017-05-21 21:54 九月旧约 阅读(309) 评论(0) 推荐(0)

2017年5月15日

Spreading the Wealth uva 11300

摘要: A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has 阅读全文

posted @ 2017-05-15 14:41 九月旧约 阅读(156) 评论(0) 推荐(0)

2017年5月11日

Play on Words UVA - 10129

摘要: 题目: Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is n 阅读全文

posted @ 2017-05-11 20:53 九月旧约 阅读(140) 评论(0) 推荐(0)

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 38 下一页

导航