![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码学习
文章平均质量分 60
weixin_42806016
这个作者很懒,什么都没留下…
展开
-
杭电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 · 170 阅读 · 0 评论 -
杭电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 · 262 阅读 · 0 评论 -
杭电ojC++--2059 龟兔赛跑 AC代码
龟兔赛跑有很多种题型,请大家再看之前注意题型的不同目录题目描述输入输出2.读入数据总结题目描述据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。最近正值HDU举办50周年校庆,社会各大名流齐聚下沙,兔子也趁此机会向乌龟发起挑战。虽然乌龟深知获胜希望不大,不过迫于舆论压力,只能接受挑战。比赛是设原创 2021-03-15 10:01:45 · 295 阅读 · 0 评论 -
杭电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 · 254 阅读 · 0 评论 -
杭电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 · 2075 阅读 · 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 · 135 阅读 · 0 评论 -
杭电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 · 1162 阅读 · 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 · 246 阅读 · 1 评论