摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5108找出最大质因子就可以。 1 #include 2 #include 3 #include 4 #define ll long long 5 #define N 100000 6 using namesp... 阅读全文
posted @ 2015-01-14 20:22 null1019 阅读(171) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5139思路:这道题要先找规律,f(n)=n!*(n-1)!*(n-2)!.....1!; 不能直接打表,而是离线处理,一次性处理出来。 1 #include 2 #include 3 #include 4 #... 阅读全文
posted @ 2015-01-14 19:02 null1019 阅读(143) 评论(0) 推荐(0)