上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页
摘要: 题意:思路:#include#include#include#include#include#include#include#include#includeusing namespace std;const int MAXN=2000+5;const int MAX=50+5;const int I... 阅读全文
posted @ 2015-06-04 20:15 sola94 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#include#include#include#include#include#include#includeusing namespace std;map a;const int INF=1000000000;int main(){ ... 阅读全文
posted @ 2015-06-04 20:11 sola94 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#includeusing namespace std;double dp[3][300];int main(){ int n,m; int l,r; int i,j,k; double ans; int te... 阅读全文
posted @ 2015-06-04 20:09 sola94 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#include#include#include#include#include#includeusing namespace std;const int MAXN=10+5;int n,m,Q,ans;int mat[MAXN][MAXN... 阅读全文
posted @ 2015-06-04 20:07 sola94 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#include#include#include#includeusing namespace std;const int MAXN=100000+5;int p[MAXN],u[MAXN],v[MAXN],vis[MAXN],w[MAXN... 阅读全文
posted @ 2015-06-04 20:04 sola94 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include #include #include #include using namespace std;int fa[150];int fin(int x){ return fa[x]==x?x:fin(fa[x]);}void unionn(int x,int y){ ... 阅读全文
posted @ 2015-06-04 20:03 sola94 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题意:http://acm.hdu.edu.cn/showproblem.php?pid=2089思路:首先初始化预处理dp[i][j] 及i位数当前位为j时 即 0到 i * 10^j 符合条件的数 然后求出 fun(r+1)-fun(l) fun从大的位数开始计算#include#include... 阅读全文
posted @ 2015-05-28 19:01 sola94 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#includeusing namespace std;int a[10000+100];int vis[10000+100];int main(){ int n; int i,j,k; while(scanf("%d",... 阅读全文
posted @ 2015-05-25 21:07 sola94 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题意:http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=578&pid=1001思路:讲述列从大到小排列 先把数量多的数字剪掉 最后遍历求和#include#include#include#includeusing... 阅读全文
posted @ 2015-05-23 21:16 sola94 阅读(92) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;#define MAXN 100000+10int n,st[MAXN],cnt,a[MAXN],kill[MAXN]={0},f[MAXN]={0};int ma... 阅读全文
posted @ 2015-05-19 21:34 sola94 阅读(195) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页