自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 (二分)HDU 1969 pie

简单的二分题,注意精度 不知道为什么老是WA WA代码: #include #include double pi = acos(-1.0); #define eps 1e-7 int main() { int k,n,f,i,r,count; double mid,a[10005],low,up; scanf("%d",&k); while(k--)

2016-07-27 12:15:46 250

原创 (枚举)HDU 3711 Binary Number

f(x, y) is defined as the number of different bits in the binary format of x and y. For example, f(2, 3)=1,f(0, 3)=2, f(5, 10)=4. Now given 2 sets of non-negative integers A and B, for each integer b

2016-07-26 16:45:01 241

原创 (枚举)HDU 5522 Numbers

题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=5522 Description 给n个数A1,A2....An{A}_{1},{A}_{2}....{A}_{n}A​1​​,A​2​​....A​n​​,从中选3个位置不同的数A,B和C,问是否有一种情况满足A-B=C.

2016-07-26 16:40:58 363

原创 (枚举+注意格式)HDU1017 A Mathematical Curiosity

//简单水题却因为格式卡了好久 //暴力枚举就行了 //输出空行要注意 //还有输入其实是没有那个空行符的,PE好几遍 #include int main() { int n, m, t, count , i, j, k; scanf("%d", &t); while(t--) { k=1; while(1)

2016-07-26 16:27:52 342

原创 (二分)POJ 1064 cable masters

n条绳子可有k段,最长每段有多长,把浮点型转换成整型了 #include int main() { int n,k,i,min,max,mid,a[10005],count,s; double len; while(scanf("%d%d",&n,&k)!=EOF) { s=0; min=1; max=0;

2016-07-26 16:19:48 215

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除