随笔分类 - 大数类
摘要:输入N求N的阶乘的准确值。 Input Output Input示例 Output示例
阅读全文
摘要:给出2个大整数A,B,计算A+B的结果。 给出2个大整数A,B,计算A+B的结果。 给出2个大整数A,B,计算A+B的结果。 Input 第1行:大数A 第2行:大数B (A,B的长度 <= 10000 需注意:A B有可能为负数) Output 输出A + B Input示例 6893214758
阅读全文
摘要:The well-known Fibonacci sequence is defined as following: F(0) = F(1) = 1 F(n) = F(n − 1) + F(n − 2) ∀n ≥ 2 Here we regard n as the index of the Fibo
阅读全文