xu_haiao
码龄4年
关注
提问 私信
  • 博客:41,088
    问答:101
    41,189
    总访问量
  • 72
    原创
  • 925,449
    排名
  • 33
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:黑龙江省
  • 加入CSDN时间: 2021-07-20
博客简介:

xu_haiao的博客

查看详细资料
个人成就
  • 获得48次点赞
  • 内容获得15次评论
  • 获得169次收藏
  • 代码片获得1,576次分享
创作历程
  • 5篇
    2023年
  • 6篇
    2022年
  • 61篇
    2021年
成就勋章
TA的专栏
  • 单片机项目学习
    3篇
  • 大一年度项目
    2篇
  • mujoco
    1篇
  • PAT (Advanced Level) Practice
    11篇
  • 自写函数
    4篇
  • 机器人学导论
    1篇
  • PAT (Basic Level) Practice (中文)C++题
    32篇
  • PAT (Basic Level) Practice (中文)题解
    17篇
  • Openjudge题解
    1篇
兴趣领域 设置
  • Python
    python
  • 编程语言
    c++c语言
  • 人工智能
    人工智能
  • 游戏
    unity
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

【AT89C52单片机项目】数字密码锁设计

一套STC89C52RC开发板套件,包括STC89C52RC开发板,以及USB烧录线。优点:m*n个按键值需要一次反转(2次输入输出)就可以检测到结果,比行列扫面简单。2、可以每次都设置密码,也可以设置一次密码多次使用。输入密码“12345678”后,数码管显示open。输入其他密码后,数码管显示Err。1、有设置密码、开锁工作模式;本实验所需要的主要硬件电路介绍。使用单片机设计数字密码锁。3、列线输出上次读入的值。1、行线输出全为0;
原创
发布博客 2023.07.16 ·
3115 阅读 ·
3 点赞 ·
0 评论 ·
21 收藏

【AT89C52单片机项目】99累减器

通过观察原理图使用I/O口进行数据的控制,通过段码与位码分别控制数码管的数字、以及控制哪个数码管进行数字显示,最后通过循环函数实现99累减的功能,在预计的数码管上显示。使用STC89C52RC的I/O控制、调配数码管,使得数码管能够在相应的位置显示出99累减。单片机最小系统构成,最小系统由单片机芯片、时钟电路及复位电路组成。掌握STC89C52RC单片机开发板与数码管的原理图、控制方式。开发板套件,包括STC89C52RC开发板,以及USB烧录线。单片机数码管上数字从99开始递减直至00。
原创
发布博客 2023.07.16 ·
634 阅读 ·
0 点赞 ·
2 评论 ·
0 收藏

【AT89C52单片机项目】音乐播放器的设计

单片机正常运行,先播放“铃儿响叮当”的旋律,当我按下独立按键INT1时,歌曲切换为“Spider Dance”的旋律,如果重新按下独立按键INT1,可以切换回“铃儿响叮当”。采用重装定时器计数方式1的初值来实现发出不同频率的声音,通过控制延时长度来实现不同的节拍,之后将音乐数据表填入,即可实现音乐播放。音乐切换方面采取按键输入,按键检测到低电平,则判断有信号输入,等待10ms去抖后,等待下一个高电平,进行音乐的切换。用51系列单片机设计一个可以切歌的音乐播放器。AT89C52单片机。
原创
发布博客 2023.07.15 ·
3168 阅读 ·
2 点赞 ·
1 评论 ·
17 收藏

【哈工大大一年度项目经验与感想】立项篇 中(2022.1.9~2022.4.2)

立项报告的目的在于向答辩老师或者投资方阐述你的项目是什么?做什么的?解决什么问题?打算怎么解决这些问题?有什么创新点、特色?目标?所以一篇立项报告正文需要包括以下内容:1. 立项背景2. 研究内容3. 预期目标4. 特色与创新5. 研究方案6. 进度安排7. 经费预算8. 参考文献。
原创
发布博客 2023.01.01 ·
1149 阅读 ·
1 点赞 ·
6 评论 ·
5 收藏

【Mujoco】mujoco测试xml文件学习笔记

mujoco150版本,自带的modle里面humanoid.xml的学习笔记
原创
发布博客 2023.01.01 ·
1376 阅读 ·
1 点赞 ·
0 评论 ·
9 收藏

【PAT (Advanced Level) Practice】1011 World Cup Betting (20 分)python题解

With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Similarly, football betting fans were putting their money
原创
发布博客 2022.08.24 ·
330 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【哈工大大一年度项目经验与感想】立项篇 上(2021.9.17~2021.11.17)

我们小组一共三人,参加的是航天学院的项目,最终结题是。接下来我会讲述我这一年来做项目的经验与感想。
原创
发布博客 2022.08.02 ·
1742 阅读 ·
5 点赞 ·
0 评论 ·
8 收藏

【PAT (Advanced Level) Practice】1029 Median (25 分)题解【nth_element法】

Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 12, and the median of S2 = { 9, 10, 15, 16, 17 } is 15. The median of two sequences is defined to be the me
原创
发布博客 2022.04.08 ·
446 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

【机器人学导论知识点+习题笔记2.1~2.13】(间歇性更新)

习题详解从第二章开始:我主要是补充书上没给答案的那部分,有的时候对书上答案难理解的地方做一些解释2.1 【X-Y-Z固定轴】2.2 【X-Y-Z固定轴】按照题目旋转的顺序,从右向左写矩阵ans = 0.0810 -0.8509 -0.5190 0.1313 0.5253 -0.8407 0.9880 0 0.15432.3 【Z-Y-X欧拉角】2.4 就是将数据代入,不多赘述2.5...
原创
发布博客 2022.01.25 ·
6778 阅读 ·
17 点赞 ·
2 评论 ·
90 收藏

【PAT (Advanced Level) Practice】1027 Colors in Mars (20 分)python题解

People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are forRed, the middle 2 digits forGreen, and the last 2 digits forBlue. The only ...
原创
发布博客 2022.01.15 ·
406 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【PAT (Advanced Level) Practice】1027 Colors in Mars (20 分)题解

People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are forRed, the middle 2 digits forGreen, and the last 2 digits forBlue. The only ...
原创
发布博客 2022.01.15 ·
241 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【PAT (Advanced Level) Practice】1023 Have Fun with Numbers (20 分)python题解

Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number consisting exactly the numbers from 1 to 9, only in a diffe
原创
发布博客 2021.12.25 ·
530 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

【PAT (Advanced Level) Practice】1019 General Palindromic Number (20 分)python题解

A number that will be the same when it is written forwards or backwards is known as aPalindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.Although palindromic numbers are most often considere.
原创
发布博客 2021.12.17 ·
689 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

【PAT (Basic Level) Practice (中文)】1071 小赌怡情 (15 分)题解

常言道“小赌怡情”。这是一个很简单的小游戏:首先由计算机给出第一个整数;然后玩家下注赌第二个整数将会比第一个数大还是小;玩家下注 t 个筹码后,计算机给出第二个数。若玩家猜对了,则系统奖励玩家 t 个筹码;否则扣除玩家 t 个筹码。注意:玩家下注的筹码数不能超过自己帐户上拥有的筹码数。当玩家输光了全部筹码后,游戏就结束。输入格式:输入在第一行给出 2 个正整数 T 和 K(≤100),分别是系统在初始状态下赠送给玩家的筹码数、以及需要处理的游戏次数。随后 K 行,每行对应一次游戏,顺序给出 4.
原创
发布博客 2021.12.15 ·
125 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【PAT (Basic Level) Practice (中文)】1092 最好吃的月饼 (20 分)题解

月饼是久负盛名的中国传统糕点之一,自唐朝以来,已经发展出几百品种。若想评比出一种“最好吃”的月饼,那势必在吃货界引发一场腥风血雨…… 在这里我们用数字说话,给出全国各地各种月饼的销量,要求你从中找出销量冠军,认定为最好吃的月饼。输入格式:输入首先给出两个正整数N(≤1000)和M(≤100),分别为月饼的种类数(于是默认月饼种类从 1 到N编号)和参与统计的城市数量。接下来M行,每行给出N个非负整数(均不超过 1 百万),其中第i个整数为第i种月饼的销量(块)。数...
原创
发布博客 2021.12.14 ·
170 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【PAT (Basic Level) Practice (中文)】1063 计算谱半径 (20 分)题解

在数学中,矩阵的“谱半径”是指其特征值的模集合的上确界。换言之,对于给定的n个复数空间的特征值 {a1​+b1​i,⋯,an​+bn​i},它们的模为实部与虚部的平方和的开方,而“谱半径”就是最大模。现在给定一些复数空间的特征值,请你计算并输出这些特征值的谱半径。输入格式:输入第一行给出正整数 N(≤10 000)是输入的特征值的个数。随后 N 行,每行给出 1 个特征值的实部和虚部,其间以空格分隔。注意:题目保证实部和虚部均为绝对值不超过 1000 的整数。输出格式:在一行中...
原创
发布博客 2021.11.22 ·
176 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

【PAT (Advanced Level) Practice】1015 Reversible Primes (20 分)python题解

Areversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a prime.Now given any two positive integersN(<105) an...
原创
发布博客 2021.11.08 ·
415 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【PAT (Advanced Level) Practice】1009 Product of Polynomials (25 分)题解

This time, you are supposed to findA×BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial:KN1​aN1​​N2​aN2​​...NK​aNK...
原创
发布博客 2021.11.07 ·
125 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【PAT (Advanced Level) Practice】1008 Elevator (20 分)题解

The highest building in our city has only one elevator. A request list is made up withNpositive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, and 4 seconds to..
原创
发布博客 2021.11.07 ·
175 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【PAT (Basic Level) Practice (中文)】1050 螺旋矩阵 (25 分)题解

本题要求将给定的N个正整数按非递增的顺序,填入“螺旋矩阵”。所谓“螺旋矩阵”,是指从左上角第 1 个格子开始,按顺时针螺旋方向填充。要求矩阵的规模为m行n列,满足条件:m×n等于N;m≥n;且m−n取所有可能值中的最小值。输入格式:输入在第 1 行中给出一个正整数N,第 2 行给出N个待填充的正整数。所有数字不超过104,相邻数字以空格分隔。输出格式:输出螺旋矩阵。每行n个数字,共m行。相邻数字以 1 个空格分隔,行末不得有多余空格。输入样例:1...
原创
发布博客 2021.10.25 ·
438 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多