<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[peizhecpp的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/peizhecpp</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; peizhecpp]]></copyright><item><title><![CDATA[指针 二重指针 结构体指针用法]]></title><link>https://blog.csdn.net/peizhecpp/article/details/159005526</link><guid>https://blog.csdn.net/peizhecpp/article/details/159005526</guid><author>peizhecpp</author><pubDate>Fri, 13 Mar 2026 10:54:21 +0800</pubDate><description><![CDATA[【代码】指针 二重指针 结构体指针用法。]]></description><category></category></item><item><title><![CDATA[C语言整数补0 浮点数小数点后保留位数]]></title><link>https://blog.csdn.net/peizhecpp/article/details/158976609</link><guid>https://blog.csdn.net/peizhecpp/article/details/158976609</guid><author>peizhecpp</author><pubDate>Thu, 12 Mar 2026 20:22:59 +0800</pubDate><description><![CDATA[【代码】C语言整数补0 浮点数小数点后保留位数。]]></description><category></category></item><item><title><![CDATA[素数判断，欧拉筛，埃氏筛]]></title><link>https://blog.csdn.net/peizhecpp/article/details/158043183</link><guid>https://blog.csdn.net/peizhecpp/article/details/158043183</guid><author>peizhecpp</author><pubDate>Fri, 13 Feb 2026 22:14:28 +0800</pubDate><description><![CDATA[试除法：判断一个数n是不是素数时，可以采用试除法，即从 i=2 开始，一直让 n 去 %i ，直到 i 到了 n-1。代码实现，只需 i*i<=n （若n/b=a，n/a=b，a b中一定有一个平方小于等于n）。代码如下，读者们可以令n=10，在纸上模拟代码的运行过程，不必细究为什么，只要会用就够了。素数的定义：素数的定义是只能整除1和本身（1不是素数）。埃氏筛：埃氏筛的核心思想是，素数的倍数是合数。时间复杂度O（n * loglog（n））。时间复杂度O（n * sqrt（n））。时间复杂度O（n）。]]></description><category></category></item><item><title><![CDATA[C++字符串输入空格方法]]></title><link>https://blog.csdn.net/peizhecpp/article/details/158042635</link><guid>https://blog.csdn.net/peizhecpp/article/details/158042635</guid><author>peizhecpp</author><pubDate>Fri, 13 Feb 2026 19:21:17 +0800</pubDate><description><![CDATA[3、string，输入一行和多行都是一种格式。1、字符串数组，只需输入一行。2、字符串数组，输入多行。]]></description><category></category></item><item><title><![CDATA[基于openmv的板球控制系统（2020年电子设计竞赛赛后知识总结）]]></title><link>https://blog.csdn.net/peizhecpp/article/details/112807408</link><guid>https://blog.csdn.net/peizhecpp/article/details/112807408</guid><author>peizhecpp</author><pubDate>Tue, 19 Jan 2021 12:24:38 +0800</pubDate><description><![CDATA[主要道具，星瞳科技的openmv单片机，两个舵机等
主要算法，pid控制
代码不难，只要用心结合openmv的官方教程不难看懂，笔者当时从接触openmv，因为这个单片机是要用Python的。所以当时要学的东西太多了。笔者从接触到调出 这个板球系统用了整整一周的时间。
下面给出代码，里面有详细注释的
视频链接
openmv官方教程链接（两个结合着看）
https://docs.singtown.com/micropython/zh/latest/openmvcam/index.html
https://bo]]></description><category></category></item><item><title><![CDATA[图论——最短路算法板子]]></title><link>https://blog.csdn.net/peizhecpp/article/details/105168385</link><guid>https://blog.csdn.net/peizhecpp/article/details/105168385</guid><author>peizhecpp</author><pubDate>Tue, 19 Jan 2021 11:31:12 +0800</pubDate><description><![CDATA[发现不发知识点的话，刷过一个专题之后过一段时间就有点忘记了，补发吧顺便复习
初始化
void init(){
	for(int i=1;i&lt;=n;i++){
		for(int j=1;j&lt;=n;j++){
			if(i==j)map[i][j]=0;
			else{
				map[i][j]=map[j][i]=inf;
			}
		}
	}
}

贪心dijikstra算法...]]></description><category></category></item><item><title><![CDATA[方格取数（四维dp）]]></title><link>https://blog.csdn.net/peizhecpp/article/details/106725786</link><guid>https://blog.csdn.net/peizhecpp/article/details/106725786</guid><author>peizhecpp</author><pubDate>Fri, 12 Jun 2020 23:53:48 +0800</pubDate><description><![CDATA[链接：https://ac.nowcoder.com/acm/problem/16759
来源：牛客网
题目描述
设有N*N的方格图(N ≤ 10,我们将其中的某些方格中填入正整数,而其他的方格中则放入数字0。如下图所示(见样例)：
某人从图的左上角的A 点出发，可以向下行走，也可以向右走，直到到达右下角的B点。在走过的路上，他可以取走方格中的数(取走后的方格中将变为数字0)。
此人从A点到B 点共走两次，试找出2条这样的路径，使得取得的数之和为最大。
输入描述:
输入的第一行为一个整数N(表示N*N的方格]]></description><category></category></item><item><title><![CDATA[搜索]]></title><link>https://blog.csdn.net/peizhecpp/article/details/105566495</link><guid>https://blog.csdn.net/peizhecpp/article/details/105566495</guid><author>peizhecpp</author><pubDate>Thu, 16 Apr 2020 20:41:18 +0800</pubDate><description><![CDATA[这些是板子，防止自己忘掉 实际操作中不限于这些
dfs
int check(int x,int y){
	if(x&lt;1||x&gt;n||y&lt;1||y&gt;m)return 0;
	if(vis[x][y]||s[x][y]=='.')return 0;
	return 1;
}

void dfs(int x,int y){
	for(int i=0;i&lt;4;i++){
		...]]></description><category></category></item><item><title><![CDATA[前缀树]]></title><link>https://blog.csdn.net/peizhecpp/article/details/105544261</link><guid>https://blog.csdn.net/peizhecpp/article/details/105544261</guid><author>peizhecpp</author><pubDate>Wed, 15 Apr 2020 21:00:22 +0800</pubDate><description><![CDATA[前缀树又称字典树
结构体实现
struct trie{
	trie *next[26];
	int val;
	trie(){
		for(int i=0;i&lt;=25;i++)
		next[i]=NULL;
		val=0;
	}
};

插入
void inseert(trie *root,char *s){
	trie *p=root;
	int lens=strlen(s);
	fo...]]></description><category></category></item><item><title><![CDATA[hdu 4027线段树，特殊的懒标记]]></title><link>https://blog.csdn.net/peizhecpp/article/details/105459984</link><guid>https://blog.csdn.net/peizhecpp/article/details/105459984</guid><author>peizhecpp</author><pubDate>Sat, 11 Apr 2020 21:30:33 +0800</pubDate><description><![CDATA[Can you answer these queries?
A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Each of the battleship...]]></description><category></category></item><item><title><![CDATA[线段树]]></title><link>https://blog.csdn.net/peizhecpp/article/details/105294982</link><guid>https://blog.csdn.net/peizhecpp/article/details/105294982</guid><author>peizhecpp</author><pubDate>Fri, 03 Apr 2020 16:02:41 +0800</pubDate><description><![CDATA[结构体
struct Tree{
	LL l,r,w,f;
};
Tree tree[maxn&lt;&lt;2];

建树
void build(int l,int r,int k){
	tree[k].l=l;tree[k].r=r;
	if(tree[k].l==tree[k].r){
		scanf("%lld",&amp;tree[k].w);
		return ;
	}
	int mi...]]></description><category></category></item><item><title><![CDATA[简单并查集]]></title><link>https://blog.csdn.net/peizhecpp/article/details/105161183</link><guid>https://blog.csdn.net/peizhecpp/article/details/105161183</guid><author>peizhecpp</author><pubDate>Sat, 28 Mar 2020 14:46:53 +0800</pubDate><description><![CDATA[并查集其实维护的就是一个树形结构
int Find(int x){
	if(pre[x]==x)
	return x;
	pre[x]=Find(pre[x]);
	return pre[x];
}

带权 的还没学会，再努力吧

]]></description><category></category></item><item><title><![CDATA[高精度运算系列]]></title><link>https://blog.csdn.net/peizhecpp/article/details/104903241</link><guid>https://blog.csdn.net/peizhecpp/article/details/104903241</guid><author>peizhecpp</author><pubDate>Mon, 16 Mar 2020 17:10:35 +0800</pubDate><description><![CDATA[Add
void add(){
	memset(a,0,sizeof a);
	memset(b,0,sizeof b);
	memset(c,0,sizeof c);
	int lena=strlen(s1+1);
	int lenb=strlen(s2+1);
	for(int i=1;i&lt;=lena;i++)a[i]=s1[lena-i+1]-'0';
	for(int i=1;i&l...]]></description><category></category></item></channel></rss>