上一页 1 2 3 4 5 6 7 8 ··· 22 下一页
摘要: #include#include#include#includeusing namespace std;int a[200][200];int dp[200];int main(){ int n,m; int i,j,k; while(scanf("%d%d",&n,&m)!=EO... 阅读全文
posted @ 2015-07-28 21:28 sola94 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;char str[100];int mat[30][30];int vis[30][30];int ok;bool isok(int now,int next){ ... 阅读全文
posted @ 2015-07-28 00:53 sola94 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 题意:有1 5 10 25 50 五种硬币 最多取100个 问有多少种方式能凑成 n思路:dp#include#include#include#include#includeusing namespace std;int op[10]={1,5,10,25,50};int dp[300][300... 阅读全文
posted @ 2015-07-27 23:07 sola94 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题意:有n种物品 每种价值 vi 有 ci件 问分成两堆 最平均的价值分配是多少 思路:01背包#include#include#include#include#includeusing namespace std;int v[100],m[100];int dp[300000];int main(... 阅读全文
posted @ 2015-07-27 20:30 sola94 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题意:有 1 2^2 3^2...17^2 十七种硬币 问有多少种方式可以凑够 n思路:#include#include#include#includeusing namespace std;int c1[400],c2[400];void fun(int n){ int i,j,k; ... 阅读全文
posted @ 2015-07-27 15:53 sola94 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;int n,m,t;int sx,sy;int ex,ey;int ok;char mat[10][10];int vis[10][10];int op[4][2]... 阅读全文
posted @ 2015-07-26 23:15 sola94 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;char str[300];double ans;double chcd(char x){ return (x-'0')*1.0;}double ch(int l,int r... 阅读全文
posted @ 2015-07-26 23:14 sola94 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int ch[20];int op[4][2]={1,0, -1,0, 0,1, 0,-1};int mat[200000];int vis[200000];void init_c... 阅读全文
posted @ 2015-07-26 23:12 sola94 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int a[20];int ans[20];int num[200];struct Mark{ int shu,rt;};Mark mark[20];int ok;int n,t;int c... 阅读全文
posted @ 2015-07-26 23:09 sola94 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;char mat[50][50][50];int vis[50][50][50];int op[6][3]={0,-1,0, 0,1,0, 1,0,0, -1,0,0 ,0,0,1... 阅读全文
posted @ 2015-07-26 23:07 sola94 阅读(86) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 22 下一页