摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2050 思路:直线分割平面的特殊情况 第n个折线第时候: 公式 f(n)=f(n-1)+{[2(n-1)-1+1]+[2(n-1)-1+1]+1} =f(n-1)+4(n-1)+1 =f(n-2)+4(n-2)+1 阅读全文
摘要:
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1269 题意:一共n张牌,求至少连续k张牌是正面的排列情况有多少种(1<=k<=n<=100) 思路:将至 阅读全文