-
-
-
Tom is designing a menu system for a test editor. The menu consists of
some menuitems, and each menuitem may contain some sub-menuitems (a
sub-menuitem is also a menuitem) recursively, e.g., menuitem
"File" may contain sub-menuitems "Open",
"Save", "Save As", "Recent Files",
"Send" and "Exit", and "Recent Files" may
contain "Setting File", "Send" may contain
"Mail" and "Fax". A menuitem may contain several
words, and it is confirmed that the first letter in each word is a
capital letter, and tha ...
阅读题目
问答题
经典指数
-
-
-
The binomial coefficient C(m,n) is defined as
m!
C(m,n) = --------
n!(m-n)!
Given four natural numbers p, q, r, and s, compute the the result of
dividing C(p,q) by C(r,s).输入描述
Input consists of a sequence of lines. Each line contains four
non-negative integer numbers giving values for p, q, r, and s,
respectively, separated by a single space. All the numbers will be
smaller than 10,000 with p>=q and r>=s.输出描述
For each line of input, print a single line containing a real n ...
阅读题目
问答题
经典指数
-
-
-
It is a well-known fact that if you mix up the letters of a word,
while leaving the first and last letters in their places, words still
remain readable. For example, the sentence “tihs snetncee mkaes
prfecet sesne”, makes perfect sense to most people.
If you remove all spaces from a sentence, it still remains perfectly
readable, see for example: “thissentencemakesperfectsense”, however if
you combine these two things, first shuffling, then removing spaces,
things get hard. The follow ...
阅读题目
问答题
经典指数
-