
编码过程中的错误
_Scarlett
这个作者很懒,什么都没留下…
展开
-
HDU 3349-lazy gege
#include<iostream>#include<cmath>#include<cstdio>using namespace std;int main(){ int t; double a,b,l,sl; double s; cin>>t; while(t--){ cin>>l>>a>>b; b=b<a?b:a;原创 2016-04-29 19:35:29 · 397 阅读 · 0 评论 -
CodeForces 580C 树+dfs搜索
Description Kefa decided to celebrate his first big salary by going to the restaurant. He lives by an unusual park. The park is a rooted tree consisting of n vertices with the root at vertex 1.原创 2016-05-05 22:11:24 · 808 阅读 · 0 评论 -
HDU3499 Flight (两遍dijkstra)
错误百出调试多次的代码#include<queue> #include<map> #include<string> #include<iostream> #define INF 1e17#define maxn 100010using namespace std;//堆优化+vector<Edge> //类struct qnode{//堆结点 int v;//顶点编原创 2016-06-02 18:30:16 · 404 阅读 · 0 评论 -
L2-005. 集合相似度
题目 给定两个整数集合,它们的相似度定义为:Nc/Nt*100%。其中Nc是两个集合都有的不相等整数的个数,Nt是两个集合一共有的不相等整数的个数。你的任务就是计算任意一对给定集合的相似度。输入格式:输入第一行给出一个正整数N(<=50),是集合的个数。随后N行,每行对应一个集合。每个集合首先给出一个正整数M(<=104),是集合中元素的个数;然后跟M个[0, 109]区间内的整数。之后一行给翻译 2016-07-01 10:47:43 · 3031 阅读 · 0 评论 -
zhishangbuzaixianxilie
#include<iostream>#include<cstdio>#include<string>#include<cstring>#include<cmath>using namespace std;bool dis[200010];int main(){ long long t,n,m; int x[700],y[700]; cin>>t; while原创 2016-07-26 16:24:36 · 276 阅读 · 0 评论 -
HDU 4707 pet
#include<iostream>#include<cstdio>#include<vector>#include<queue>#include<cstring>using namespace std;const int N=100010;vector<int> Tree[N];int d;int ans;int vis[N];void bfs(int u){ ans原创 2016-10-21 20:28:57 · 331 阅读 · 0 评论 -
树状数组的应用系列
HDU1556 Color the ballHDU1349 Minimum Inversion NumberHDU4417 Super Mario原创 2016-07-29 19:05:52 · 1552 阅读 · 0 评论