错排
悠小白
这个作者很懒,什么都没留下…
展开
-
HDU2048-神、上帝以及老天爷
http://acm.hdu.edu.cn/showproblem.php?pid=2048 #include<iostream> #include<cstdio> using namespace std; double fact(int n){ double s=1; for(int i=1;i<=n;i++){ s=s*i; ...原创 2018-08-15 20:33:40 · 90 阅读 · 0 评论 -
HDU2049-不容易系列之(4)——考新郎
http://acm.hdu.edu.cn/showproblem.php?pid=2049 #include<iostream> #include<cstdio> typedef unsigned long long ll; using namespace std; ll f[25]; ll solve(int x,int y){ ll s1=1,s2=1...原创 2018-08-15 21:48:27 · 115 阅读 · 0 评论 -
HDU2068-RPG的错排
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2068 #include<iostream> #include<cstdio> using namespace std; typedef unsigned long long ll; ll f[30],a[30][30]; int main(){ for(int ...原创 2018-08-23 18:10:33 · 111 阅读 · 0 评论