摘要:
最基础的数字三角形View Code 1 #include <iostream> 2 #include<cstdio> 3 /* 4 ID: your_id_here 5 PROG: numtri 6 LANG: C++ 7 */ 8 #include<cstring> 9 #include<algorithm>10 using namespace std;11 int a[1010][1010];12 long long dp[1010][1010];13 int main()14 {15 freopen("numtri.in&quo 阅读全文
摘要:
刚开始理解错题意了,写了半天的dfs,直接delete。写的挺多,不是太复杂,对于每种状态枚举6种情况。View Code 1 /* 2 ID: your_id_here 3 PROG: milk3 4 LANG: C++ 5 */ 6 #include <iostream> 7 #include<cstdio> 8 #include<cstring> 9 #include<algorithm> 10 using namespace std; 11 int a,b,c,num[50],f[30][30][30],ff[50],g; 12 void 阅读全文