自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 昇思25天学习打卡营第2天|快速入门

昇思25天学习打卡营第1天学习了初学入门之快速入门。在云端用Jupyterlab下载了Mnist数据集,利用MindSpore的API实现了简单的深度学习模型,实验环境预装了mindspore==2.3.0rc1。使用mindspore.dataset提供的数据变换进行了数据预处理。

2024-07-09 21:14:13 68

原创 昇思25天学习打卡营第1天|小试牛刀

昇思25天学习打卡营第1天学习了初学入门之基本介绍。了解了昇思MindSpore和华为昇腾AI全栈。训练营中的教程丰富,有初学入门、应用实践和量子计算等。学习打卡营是很好的提升自己的机会。昇腾计算,是基于昇腾系列处理器构建的全栈AI计算基础设施及应用,包括昇腾Ascend系列芯片、Atlas系列硬件、CANN芯片使能、MindSpore AI框架、ModelArts、MindX应用使能等。

2024-07-09 20:56:30 192

原创 示波器你真的会用吗(一)

示波器小知识之:采样方式与探头

2023-02-17 21:00:07 241

原创 洛谷P1002_dp入门

这是一道动态规划题第一眼以为是搜索题,做了半天要点在于结果数字非常大要用unsigned long long存储其次是要注意数组越界的情况我的代码中对坐标进行 +=2 处理,来避免数组越界#include<iostream>#include<cmath>#include<algorithm>using namespace std;int fx[] = { 0,-2,-1,1,2,2,1,-1,-2 };int fy[] = { 0,1,2,2,1...

2020-07-19 22:20:23 164

原创 01背包--POJ3624

Charm BraceletDescriptionBessie has gone to the mall’s jewelry store and spies a charm bracelet. Of course, she’d like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402) available charms. Each charm i in the supplied list has a weight Wi

2020-07-08 23:01:24 201

原创 POJ-2001 Shortest Prefixes字符串处理(字典树)

题目A prefix of a string is a substring starting at the beginning of the given string. The prefixes of “carbon” are: “c”, “ca”, “car”, “carb”, “carbo”, and “carbon”. Note that the empty string is not considered a prefix in this problem, but every non-empty

2020-07-02 12:25:35 370

原创 HDU6300 Triange Partition 排序水题

题目:Chiaki has 3n points p1,p2,…,p3n. It is guaranteed that no three points are collinear.Chiaki would like to construct n disjoint triangles where each vertex comes from the 3n points.InputThere are multiple test cases. The first line of input contains

2020-06-15 20:49:10 138

原创 codeforces 593B 排序水题

题目:The teacher gave Anton a large geometry homework, but he didn’t do it (as usual) as he participated in a regular round on Codeforces. In the task he was given a set of n lines defined by the equations y = ki·x + bi. It was necessary to determine whethe

2020-06-15 20:43:44 166

原创 C++ 栈和队列 判断回文

利用栈和队列的特性设计一个算法,用于判断一个字符串是否为回文。测试输入abcdefg↵期待的输出不是回文↵测试输入abccba↵期待的输出是回文↵#include<iostream> using namespace std; class abstack { public: bool IsEmpty() { return (height == 0) ? true : false; } virtual bool P

2020-06-03 22:22:16 2808

原创 C++数据结构 判断两棵二叉树是否相似

按先序遍历序列建立两个二叉树的二叉链表 A 和链表 B ,设计算法判断 A 、 B 二叉树是否相似。注:其中“#”表示的是空格,空格字符代表空树。测试输入ab#c##d##↵xc#v##b##↵期待的输出A与B相似↵测试输入ab#c##d##↵gv##d##↵`期待的输出A与B不相似↵#include<iostream> #include<string> #include<cstdio> using namespace std;

2020-06-03 22:17:37 1785

原创 C++数据结构 叶子结点数及深度

按先序遍历序列建立一个二叉树的二叉链表,统计二叉树中叶子结点个数和二叉树的深度。测试输入-+a##*b##c##/d##e##↵期待的输出leafs=5↵Depth=4↵#include<iostream> #include<string> #include<cstdio> using namespace std; int max(int a, int b) { if (a >= b) ret

2020-06-03 22:15:14 1109 1

原创 C++数据结构 二叉树遍历输出

二叉树遍历输出按先序遍历序列建立一个二叉树的二叉链表,并按先序遍历、中序遍历、后序遍历将其输出。测试输入1-+a##*b##c##/d##e##↵期待的输出1前序遍历结果:- + a * b c / d e ↵中序遍历结果:a + b * c - d / e ↵后序遍历结果:a b c * + d e / - ↵#include<iostream> #include<string> #include<cstdio> using namesp

2020-06-03 22:12:25 1874

原创 C#累加计算程序

这里写自定义目录标题标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入`在这里插入代码片...

2020-04-30 21:34:30 5094

原创 C语言(CodeForces - 908A) New Year and Counting Cards

New Year and Counting Cards (CodeForces - 908A)Your friend has n cards.You know that each card has a lowercase English letter on one side and a digit on the other.Currently, your friend has laid ou...

2020-04-30 19:43:36 230

原创 HDU—1236 排名C++

题目:(HDU—1236)今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑每题的分值,所以并不是最后的排名。给定录取分数线,请你写程序找出最后通过分数线的考生,并将他们的成绩按降序打印。Input测试输入包含若干场考试的信息。每场考试信息的第1行给出考生人数N ( 0 <N)< 1000 )、考题数M ( 0 < M < =...

2020-04-30 19:38:19 204

原创 统计单词个数C++

从键盘输入一句话,按回车键结束,由计数器统计输入的单字个数。定义一个计数器类,要求用构造函数把计数器的初值设置为 0 ,用一个成员函数 countWord() 用于统计单词个数,用 show() 函数将结果输出到屏幕上。 测试输入 期待的输出测试用例 1 Hello World!↵ Words=2↵测试用例 2 ↵...

2020-04-30 19:30:58 7910 1

原创 C++【图形】空心的倒三角型

请根据要求打印可空心倒三角形。输入:输入三角形的高度(h >= 0)。输出:打印相应的空心倒三角形。测试用例1输入 3↵输出 *****↵ * *↵ *↵#include<stdio.h> int main() { int i, j, m; scanf("%d", &m); ...

2020-04-30 00:19:00 2286

原创 C/C++ 求解一元二次方程

初中的小明已经开始学习求解一元二次方程了,下面让我们来教计算机如何求解。输入 a,b,c ,求一元二次方程 ax²+bx+c=0 的根。输入:假设 a,b,c均int。输出:要求输出的根为 double 型,保留 6 位小数。#include<stdio.h> #include<math.h> int main () { double...

2020-04-30 00:10:49 5735

空空如也

空空如也

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

TA关注的人

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