摘要: /*问题B时间限制:10000/5000ms(JAVA /其他)内存限制:65536/32768K(JAVA /其他)的总提交():12接受提交(S):4字体:宋体宋体格鲁吉亚字体大小:← →问题说明给定一个整数N(0≤N≤10000),你的任务是计算N!输入在一行中,一个N进程的文件的结束。产量对于每个N,输出N!在同一行中。采样输入123样本输出126*/#include#includeint arr[10000];int main(){ int n; while(scanf("%d",&n)!=EOF) { int c=0,s; int i,j; mems.. 阅读全文
posted @ 2013-07-14 17:26 退之 阅读(476) 评论(0) 推荐(0) 编辑
摘要: /*Problem DescriptionEverybody knows any number can be combined by the prime number.Now, your task is telling me what position of the largest prime factor.The position of prime 2 is 1, prime 3 is 2, and prime 5 is 3, etc.Specially, LPF(1) = 0. InputEach line will contain one integer n(0 #include con 阅读全文
posted @ 2013-07-14 16:36 退之 阅读(178) 评论(0) 推荐(0) 编辑