上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: Problem DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, D implies that A 2 #include 3 #include 4 #include 5 #include 6 using namespace ... 阅读全文
posted @ 2013-10-26 17:30 persistent codeants 阅读(216) 评论(0) 推荐(0)
摘要: Problem DescriptionConsider equations having the following form:a1x13+ a2x23+ a3x33+ a4x43+ a5x53=0The coefficients are given integers from the interval [-50,50].It is consider a solution a system (x1, x2, x3, x4, x5) that verifies the equation, xi∈[-50,50], xi != 0, any i∈{1,2,3,4,5}.Determine how 阅读全文
posted @ 2013-10-26 15:07 persistent codeants 阅读(264) 评论(0) 推荐(0)
摘要: Problem DescriptionA square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a polygon such that rotating about its centre by 90 degrees gives the same polygon. It is not the only polygon with the latter property, however, as a regular octagon a 阅读全文
posted @ 2013-10-26 13:03 persistent codeants 阅读(241) 评论(0) 推荐(0)
摘要: Problem DescriptionThis problem is based on an exercise of David Hilbert, who pedagogically suggested that one study the theory of4n+1numbers. Here, we do only a bit of that.AnH-number is a positive number which is one more than a multiple of four: 1, 5, 9, 13, 17, 21,... are theH-numbers. For this 阅读全文
posted @ 2013-10-26 11:06 persistent codeants 阅读(162) 评论(0) 推荐(0)
摘要: Problem DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.InputInput consists of up to 100,000 dictionary entries, followed by a blank line, followed by a 阅读全文
posted @ 2013-10-25 13:04 persistent codeants 阅读(272) 评论(0) 推荐(0)
摘要: Problem DescriptionA single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk. Each group Sk consists of a sequence of positive integer numbers ranging from 1 to k, written one after another.For example, the first 80 d 阅读全文
posted @ 2013-10-23 18:53 persistent codeants 阅读(199) 评论(0) 推荐(0)
摘要: Problem DescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopian government is aware of this problem. They're planning to build some highways so that it will be possible to drive between any 阅读全文
posted @ 2013-10-22 21:46 persistent codeants 阅读(162) 评论(0) 推荐(0)
摘要: Problem DescriptionConsider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).InputThe only line contains the two natural numbers A and B, (0 2 #include 3 #include 4 5 #define SIZE_N 10000 6 #define MODE 99.. 阅读全文
posted @ 2013-10-22 21:09 persistent codeants 阅读(345) 评论(0) 推荐(0)
摘要: Problem DescriptionA Compiler Mystery: We are given a C-language style for loop of typefor (variable = A; variable != B; variable += C) statement;I.e., a loop which starts by setting variable to value A and while variable is not equal to B, repeats statement followed by increasing the variable by C. 阅读全文
posted @ 2013-10-22 09:03 persistent codeants 阅读(243) 评论(0) 推荐(0)
摘要: Problem DescriptionFarmer 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 exact amount of money (1 ≤moneyi≤ 10,000) that he will need to spend each day over the nextN(1 ≤N≤ 100,000) days.FJ wants to create 阅读全文
posted @ 2013-10-21 15:31 persistent codeants 阅读(214) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页