摘要:
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int dp[15][15],num[15];//len last 7 int a,b; 8 9 int dfs(int len,int last,bool shangxian,bool qdling) 10 { 11 if(len==0)... 阅读全文
posted @ 2019-07-26 12:28
喵呜,颜儿ღ
阅读(118)
评论(0)
推荐(0)
摘要:
#include #include #include #include #include #include #define Ll long long using namespace std; Ll CC[1001][1001]; Ll C(Ll n,Ll m){ if(CC[n][m])return CC[n][m]; if(m==1)return n; if(m==0|... 阅读全文
posted @ 2019-07-26 12:28
喵呜,颜儿ღ
阅读(102)
评论(0)
推荐(0)
摘要:
#include using namespace std; int t, n, m, dp[1005][605]; //dp[i][j]表示到第i个走廊,在这里(及其子树)要用j秒时间偷的最多画数 struct node { int tim, pic; //tim表示走廊时间,pic表示图片个数 }tr[5005]; inline int read() { int red = ... 阅读全文
posted @ 2019-07-26 12:24
喵呜,颜儿ღ
阅读(79)
评论(0)
推荐(0)
摘要:
#include <bits/stdc++.h>#define MAXN 1000005usingnamespacestd; struct Edge{int next,to,dis;} edge[MAXN]; int n,s,a,b,t,maxn[MAXN],cnt,head[MAXN]; //ma 阅读全文
posted @ 2019-07-26 12:24
喵呜,颜儿ღ
阅读(81)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 using namespace std; 4 int n,m; 5 struct node{ 6 int lson,rson; 7 }a[305]; 8 bool gotson[305]; 9 int dp[305][305],s[305]; 10 void DP(int rc,int rm) 11 {//if一定要打,要... 阅读全文
posted @ 2019-07-26 12:24
喵呜,颜儿ღ
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号