![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
动态规划
Ares2333
这个作者很懒,什么都没留下…
展开
-
xdoj-1109
#include<stdio.h> #define N 10007 #define maxn 1000005 int dp[maxn]; int main() { dp[1]=1,dp[2]=2,dp[3]=4; for(int i=4;i<maxn;i++) dp[i]=dp[i-1]%N+dp[i-2]%N+dp[i-3]%N; int n; wh原创 2016-11-09 17:58:10 · 319 阅读 · 0 评论 -
xdoj-1056
解法一:简单搜索肯定被踢,只是单纯的想写一发搜索练练手#include<cstdio> #include<cstring> #define maxn 1005 using namespace std; int i,j,k,n,ans; int c[maxn][maxn]; int dir[2][2]={{0,1},{1,0}}; bool can(int i,int j) { if(i<0|原创 2016-11-09 18:06:49 · 303 阅读 · 0 评论