题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1042 N! Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 89320 Accepted Submission(s): 26376 Problem Description Given an integer N(0 ≤ N ≤ 1
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1715 本题采用大数加法即可解决.采用100000000进制速度更快. C++代码如下: #include<iostream> #include<string.h> using namespace std; #define maxn 1000 + 1//最多算到f(1000) #define len 1000//结果最多有1000*8位 int a[maxn][len]; int main(