摘要:
f(n)=f(1)*f(n-1)+f(2)*f(n-2)+f(3)*f(n-3)+......+f(n-1)*f(1) 例用:一个长度为n的无重复序列入栈的所有出栈方式 阅读全文
摘要:
Problem Description The Children’s Day has passed for some days .Has you remembered something happened at your childhood? I remembered I often played 阅读全文
摘要:
Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then outp 阅读全文
摘要:
Problem Description 给定一段连续的整数,求出他们中所有偶数的平方和以及所有奇数的立方和。 Input 输入数据包含多组测试实例,每组测试实例包含一行,由两个整数m和n组成。 Output 对于每组输入数据,输出一行,应包括两个整数x和y,分别表示该段连续的整数中所有偶数的平方和以 阅读全文