自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 A. Appleman and Easy Task 8-26

我gangGiven a n × n checkerboard. Each cell of the board has either character 'x', or character 'o'. Is it true that each cell of the board has even number of adjacent cells with 'o'? Two cells o

2014-08-27 10:17:13 487

原创 坑人的浮点数——小数点后的位数。

今天一个看似简单的问题,折磨了人一下午。——输入一个小数,输出小数点后有几位。于是我天真的用了小学知识。double a;for (i=0;a-(int)a     a*=10;cout好可爱的想法。。。。。错误的地方:1,在计算机中浮点数是有误差的                         原因:     1,浮点数用2进制表示,有一

2014-08-25 20:42:53 761

原创 Goffi and Squary Partition-HDU-4982 BC.6.B

DescriptionA set X of k distinct positive integers is called squary partition of n if and only if it satisfies the following conditions:the sum of k positive integers is equal to none of the subse

2014-08-25 16:16:37 330

原创 B. Little Dima and Equation

Little Dima misbehaved during a math lesson a lot and the nasty teacher Mr. Pickles gave him the following problem as a punishment.Find all integer solutions|||| x (0 x 9)|||||(我第一ch) of the equ

2014-08-21 15:41:59 421

原创 A. Vasya and Socks 2014/8/21

outputstandard outputVasya has n pairs of socks. In the morning of each day Vasya has to put on a pair of socks before he goes to school. When he comes home in the evening, Vasya takes off the u

2014-08-21 15:20:23 603

原创 B. Pashmak and Flowers

#include#include#include #includeusing namespace std;int main (){ long long int n,max,min,ans1,ans2; int u,d,i,j,a; while(cin>>n) { u=0;d=0; max=0;min=9223372036854775807; // 第一次写的时候xi

2014-08-16 13:15:31 367

原创 A. Pashmak and Garden

简单题,分三种qingkuang//A#include#includeusing namespace std;int main (){    int x1,y1,x2,y2;    while(cin>>x1>>y1>>x2>>y2)    {        if(x1==x2)            cout        else if(y1

2014-08-16 13:10:05 420

空空如也

空空如也

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

TA关注的人

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