自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 2020-11-06

MicroPython 于ESP32内的安装一、 下载ESP32的烧录文件,地址:http://micropython.org/download/esp32/二、 配置IDE(环境)配置PyCraft下载地址:http://bbs.eeworld.com.cn/thread-652153-1-1.html 或http://download3.dfrobot.com.cn/uPyCraft/烧录教程:https://www.jianshu.com/p/a1eb27582e49特点:纯英文界面,更

2020-11-06 13:06:10 191

原创 HDU ACM1085——Milk

MilkProblem DescriptionIgnatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds of milk in the supermarket, so Ignatius wants to know...

2019-04-13 17:19:29 350

原创 HDU ACM1008——Elevator

ElevatorProblem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in sp...

2019-03-31 15:49:04 215

原创 HDU ACM1050——Moving Tables

Moving TablesProblem DescriptionThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.The floor has 200 rooms each on the north s...

2019-02-03 12:53:33 361

原创 HDU ACM1241——Oil Deposits

Oil DepositsProblem DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, a...

2019-01-31 17:49:04 164

原创 HDU ACM3746——Cyclic Nacklace

Cyclic NacklaceProblem DescriptionCC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan left. he is too ...

2019-01-27 15:36:46 245

原创 HDU ACM1039——Easier Done Than Said?

Easier Done Than Said?Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are often insecure. Some sites ...

2018-12-04 23:14:29 333

原创 HDU ACM1035——Robot Motion

Robot MotionProblem DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible ins...

2018-12-02 22:38:18 213

原创 HDU ACM1034——Candy Sharing Game

Candy Sharing GameProblem DescriptionA number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blows a w...

2018-11-27 23:18:24 442

原创 HDU ACM1033——Edge

EdgeProblem DescriptionFor products that are wrapped in small packings it is necessary that the sheet of paper containing the directions for use is folded until its size becomes small enough. We ass...

2018-11-18 17:27:25 233 2

原创 HDU ACM1031——Design T-Shirt

Design T-ShirtProblem DescriptionSoon after he decided to design a T-shirt for our Algorithm Board on Free-City BBS, XKA found that he was trapped by all kinds of suggestions from everyone on the bo...

2018-11-06 12:02:43 204

原创 HDU ACM1052 —— Tian Ji -- The Horse Racing

Tian Ji – The Horse RacingProblem DescriptionHere is a famous story in Chinese history.“That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play horse ...

2018-10-13 00:12:42 313

原创 HDU ACM——整数解

整数解Problem Description有二个整数,它们加起来等于某个整数,乘起来又等于另一个整数,它们到底是真还是假,也就是这种整数到底存不存在,实在有点吃不准,你能快速回答吗?看来只能通过编程。例如:x + y = 9,x * y = 15 ? 找不到这样的整数x和y1+4=5,14=4,所以,加起来等于5,乘起来等于4的二个整数为1和47+(-8)=-1,7(-8)=-56,...

2018-10-03 16:51:09 422

原创 HDU ACM2090——算菜价

算菜价Problem Description妈妈每天都要出去买菜,但是回来后,兜里的钱也懒得数一数,到底花了多少钱真是一笔糊涂帐。现在好了,作为好儿子(女儿)的你可以给她用程序算一下了,呵呵。Input输入含有一些数据组,每组数据包括菜种(字串),数量(计量单位不论,一律为double型数)和单价(double型数,表示人民币元数),因此,每组数据的菜价就是数量乘上单价啊。菜种、数量和单价...

2018-10-03 16:27:30 505

原创 HDU ACM1996——汉诺塔VI

汉诺塔VIProblem Descriptionn个盘子的汉诺塔问题的最少移动次数是2n-1,即在移动过程中会产生2n个系列。由于发生错移产生的系列就增加了,这种错误是放错了柱子,并不会把大盘放到小盘上,即各柱子从下往上的大小仍保持如下关系 :n=m+p+qa1>a2>…>amb1>b2>…>bpc1>c2>…>cq计算所有会...

2018-10-01 11:40:47 414

原创 HDU ACM1995——汉诺塔V

汉诺塔VProblem Description用1,2,…,n表示n个盘子,称为1号盘,2号盘,…。号数大盘子就大。经典的汉诺塔问题经常作为一个递归的经典例题存在。可能有人并不知道汉诺塔问题的典故。汉诺塔来源于印度传说的一个故事,上帝创造世界时作了三根金刚石柱子,在一根柱子上从下往上按大小顺序摞着64片黄金圆盘。上帝命令婆罗门把圆盘从下面开始按大小顺序重新摆放在另一根柱子上。并且规定,...

2018-09-24 16:41:11 578

原创 杭电ACM1045——Fire Net

Fire NetProblem DescriptionSuppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall. ...

2018-09-04 17:40:25 355

原创 HDU ACM2022——海选女主角

海选女主角Problem Descriptionpotato老师虽然很喜欢教书,但是迫于生活压力,不得不想办法在业余时间挣点外快以养家糊口。 “做什么比较挣钱呢?筛沙子没力气,看大门又不够帅…”potato老师很是无奈。 “张艺谋比你还难看,现在多有钱呀,听说还要导演奥运开幕式呢!你为什么不去娱乐圈发展呢?”lwg在一旁出主意。 嗯,也是,为了生存,就委屈点到娱乐圈混混吧,马上就...

2018-09-02 12:56:29 473

原创 HDU ACM2016——数据的交换输出

数据的交换输出Problem Description输入n(n<100)个数,找出其中最小的数,将它与最前面的数交换后输出这些数。Input输入数据有多组,每组占一行,每行的开始是一个整数n,表示这个测试实例的数值的个数,跟着就是n个整数。n=0表示输入的结束,不做处理。Output对于每组输入数据,输出交换后的数列,每组输出占一行。Sample ...

2018-09-02 10:22:14 337

原创 HDU ACM1248——寒冰王座

寒冰王座Problem Description不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞票(记住,只有一张钞票),为了防止自己在战斗中频繁的死掉,他决定给自己买一些道具,于是他来到了地精商店前.死亡骑士:”我要买道具!”地精商人:”我们这里有三种道具,血瓶150块一个,魔法药200块一个,无敌药水350块一个.”死亡骑士:”好的,给我一个血瓶.”说完他掏出那张N元...

2018-09-01 16:49:58 284

原创 HDU ACM1283——最简单的计算机

最简单的计算机Problem Description一个名叫是PigHeadThree的研究组织设计了一台实验用的计算机,命名为PpMm。PpMm只能执行简单的六种命令A,B,C,D,E,F;只有二个内存M1,M2;三个寄存器R1,R2,R3。六种命令的含义如下: 命令A:将内存M1的数据装到寄存器R1中; 命令B:将内存M2的数据装到寄存器R2中; 命令C:将寄存器...

2018-09-01 12:02:01 293

原创 HDU ACM1235——统计同成绩学生人数

统计同成绩学生人数Problem Description读入N名学生的成绩,将获得某一给定分数的学生人数输出。Input测试输入包含若干测试用例,每个测试用例的格式为第1行:N 第2行:N名学生的成绩,相邻两数字用一个空格间隔。 第3行:给定分数当读到N=0时输入结束。其中N不超过1000,成绩分数为(包含)0到100之间的一个整数。Output对每...

2018-08-30 11:46:04 276

原创 HDU ACM1197——Specialized Four-Digit Numbers

Specialized Four-Digit NumbersProblem DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when...

2018-08-30 09:30:41 194

原创 HDU ACM1194——Beat the Spread!

Beat the Spread!Problem DescriptionSuperbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local hackers have organized a ...

2018-08-29 20:01:56 232

原创 HDU ACM1196——Lowest Bit

Lowest BitProblem DescriptionGiven an positive integer A (1 <= A <= 100), output the lowest bit of A.For example, given A = 26, we can write A in binary form as 11010, so the lowest bit ...

2018-08-29 16:37:25 330

原创 HDU ACM1170——Balloon Comes!

Balloon Comes!Problem DescriptionThe contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can get a very beautiful balloon if only you ...

2018-08-29 11:36:23 465

原创 HDU ACM1165——Eddy's research II

Eddy’s research IIProblem DescriptionAs is known, Ackermann function plays an important role in the sphere of theoretical computer science. However, in the other hand, the dramatic fast increasi...

2018-08-29 10:47:38 227

原创 HDU ACM1164——Eddy's research I

Eddy’s research IProblem DescriptionEddy’s interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divided into the multiply of prime num...

2018-08-28 17:46:50 239

原创 HDU ACM1163——Eddy's digital Roots

Eddy’s digital RootsProblem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digit...

2018-08-28 17:01:58 301

原创 HDU ACM1061——Rightmost Digit

Rightmost DigitProblem DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first line of the input is a sin...

2018-08-27 17:10:47 351

原创 HDU ACM1056——HangOver

HangOverProblem DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We’re assuming that the cards m...

2018-08-27 16:22:00 290

原创 HDU ACM1032——The 3n + 1 problem

The 3n + 1 problemProblem DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be ...

2018-08-27 16:04:30 356

原创 HDU ACM1029——Ignatius and the Princess IV

Ignatius and the Princess IVProblem Description“OK, you are not too bad, em… But you can never pass the next test.” feng5166 says.“I will tell you an odd number N, and then N integers. There w...

2018-08-27 15:45:56 383

原创 HDU ACM1022——Train Problem I

Train Problem IProblem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius...

2018-08-27 10:21:57 469

原创 HDU ACM1021——Fibonacci Again

Fibonacci AgainProblem DescriptionThere are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).InputInput consists of a sequence of lines, each contai...

2018-08-26 15:52:49 371

原创 HDU ACM1019——Least Common Multiple

Least Common MultipleProblem DescriptionThe least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For examp...

2018-08-26 15:17:08 189

原创 HDU ACM1017——A Mathematical Curiosity

A Mathematical CuriosityProblem DescriptionGiven two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(ab) is an integer.This pro...

2018-08-26 11:56:48 352

原创 HDU ACM1014——Uniform Generator

Uniform GeneratorProblem DescriptionComputer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1) = [seed(x) + STEP] % MOD...

2018-08-26 11:10:41 318

原创 HDU ACM1013——Digital Roots

Digital RootsProblem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root...

2018-08-25 11:59:41 225

原创 HDU ACM1012——u Calculate e

u Calculate eProblem DescriptionA simple mathematical formula for e is where n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively small v...

2018-08-25 10:34:00 263

空空如也

空空如也

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

TA关注的人

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