自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 杭电ojC++--2062 Subset sequence AC代码

今天又是bug比较多的一天,建议大家多自己手动计算一下该题目,就能够深刻理解其中的计算规则目录题目描述输入输出代码AC代码展示值得注意的一点题目描述Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empty subset. Sort all the subset sequece of An in l

2021-03-16 11:22:09 330

原创 杭电ojC++--2061 Treasure the new start, freshmen! AC代码

今天又是超时的一天,大家一定也要注意一下尽可能的减少空间复杂度,能省则省!!!目录题目描述输入输出代码==超时代码示范==正确的AC代码来了题目描述background:A new semester comes , and the HDU also meets its 50th birthday. No matter what’s your major, the only thing I want to tell you is:“Treasure the college life and sei

2021-03-15 17:13:54 371

原创 杭电ojC++--2059 龟兔赛跑 AC代码

龟兔赛跑有很多种题型,请大家再看之前注意题型的不同目录题目描述输入输出2.读入数据总结题目描述据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。最近正值HDU举办50周年校庆,社会各大名流齐聚下沙,兔子也趁此机会向乌龟发起挑战。虽然乌龟深知获胜希望不大,不过迫于舆论压力,只能接受挑战。比赛是设

2021-03-15 10:01:45 435

原创 杭电ojC++--2058 The sum problem AC代码

问题描述Given a sequence 1,2,3,…N, your job is to calculate all the possible sub-sequences that the sum of the sub-sequence is M.输入Input contains multiple test cases. each case contains two integers N, M( 1 <= N, M <= 1000000000).input ends with N =

2021-03-14 21:32:58 331

原创 杭电ojC++--2057 A + B Again 终于AC了!!!代码

问题描述There must be many A + B problems in our HDOJ , now a new one is coming.Give you two hexadecimal integers , your task is to calculate the sum of them,and print it in hexadecimal too.Easy ? AC it !输入The input contains several test cases, please pr

2021-03-14 11:24:02 2227 8

原创 杭电ojC++--2056 Rectangles AC代码

问题描述Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the intersected part of two rectangles. its sides are parallel to OX and OY .输入Input The first line of input is 8 positive

2021-03-14 10:39:47 180

原创 杭电ojC++--2053A == B ?AC代码

提示:这道题看起来简单,但只用简单的if不能AC,因为必须要考虑小数点;考虑用字符串来进行比较杭电ojC++--2053A == B ?AC代码一、问题描述二、输入三、输出四、代码易错点总结一、问题描述Give you two numbers A and B, if A is equal to B, you should print “YES”, or print “NO”.二、输入each test case contains two numbers A and B.三、输出for ea

2021-03-12 12:03:51 1291 14

原创 杭电oj C++--2052Picture AC代码

杭电ojC++--2052Picture问题描述输入输出代码样例问题描述Give you the width and height of the rectangle,darw it.输入Input contains a number of test cases.For each case ,there are two numbers n and m (0 < n,m < 75)indicate the width and height of the rectangle.Iuput end

2021-03-12 10:34:45 349 1

空空如也

空空如也

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

TA关注的人

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