OrdersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6402 Accepted: 4052DescriptionThe 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 are
B. Lucky Number 2time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record contains only
DivisibilityTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6873 Accepted: 2294DescriptionConsider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus deriving different arithmetical
A Simple Problem with IntegersTime Limit: 5000MS Memory Limit: 131072KTotal Submissions: 19890 Accepted: 5238Case Time Limit: 2000MS DescriptionYou have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of
Sum of FactorialsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 10449 Accepted: 3388DescriptionJohn von Neumann, b. Dec. 28, 1903, d. Feb. 8, 1957, was a Hungarian-American mathematician who made important contributions to the foundations
題目大姨:給出一個遞迴法則,求出給定變數a,b,c經過該遞迴後的值..法則如下 Consider a three-parameter recursive function w(a, b, c): if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns: 1 if a > 20 or b > 20 or c > 20, then w(a, b, c) returns: w(20, 20, 20) if a &
Cantoring AlongTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2963 Accepted: 1608DescriptionThe Cantor set was discovered by Georg Cantor. It is one of the simpler fractals. It is the result of an infinite process, so for this program,
ParencodingsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 11181 Accepted: 6583DescriptionLet S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways: q By an integer sequence P = p1 p2...pn where pi
Equation SolverTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 427 Accepted: 266DescriptionWrite a program that can solve linear equations with one variable.InputThe input will contain a number of equations, each one on a separate line.