蓝桥杯模拟赛习题练习(一)

news2025/1/6 16:31:22

题目来源:第十四届蓝桥杯模拟赛第一期
注:代码都是自己写的,不是参考答案!

1. 二进制位数

问题描述:
十进制整数2在十进制中是1位数,在二进制中对应10 ,是2位数。
十进制整数22在十进制中是2位数,在二进制中对应10110 ,是5位数。
请问十进制整数2022在二进制中是几位数?

代码思路:创建一个一位数组,存放每次计算后的余数,最后倒序输出即为转换后的二进制数。十进制数转换为二进制数的方法是:除2取余,当商为0时,整个算法结束。

#include<stdio.h>
int main()
{
	int m, number,quotient,length=0;
	int array[20], i=0;
	printf("Input an integer number:");
	scanf_s("%d",&m);
	number = m;
	do
	{
		array[i++] = m % 2;
		m = m / 2;
		length++;
	} while (m != 0);
		printf("十进制整数%d在二进制中是%d位数\n",number,length);
		printf("十进制整数%d的二进制表示为:", number);
		for (int j = length-1; j >=0; j--)
			printf("%d", array[j]);
}

运行结果

2. 晨跑

问题描述:
小蓝每周六、周日都晨跑,每月的 1、11、21、31日也晨跑。其它时间不晨跑。
已知2022年1月1日是周六,请问小蓝整个2022年晨跑多少天?

算法思路:首先创建一个一维数组,记录每个月的天数。day用来记录每周的星期数,每七天一循环,j用来记录每月的天数,根据一维数组中的值进行每月一循环。

#include<stdio.h>
#include<string.h>
int main()
{
	int day = 6, count = 0;
	int array[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; //2022年12个月的天数
	for (int i = 0; i < sizeof(array) / sizeof(array[0]); i++) //以每月为单位进行循环
	{
		printf("%d月的晨跑日期为:", i + 1);
		for (int j = 1; j <= array[i]; j++, day++) //以每月的天数为单位进行循环
		{
			if (day == 6 || day == 7 || j == 1 || j == 11 || j == 21 || j == 31) //每周六、周日都晨跑,每月的 1、11、21、31日也晨跑
			{
				if (day % 7 == 0) day = 0; //每遇到周日就清空
				printf(" %d.%d  ", i + 1, j);
				count++; //满足条件,则晨跑天数+1
			}
		}
		printf("\n");
	}
	printf("小蓝整个2022年晨跑:%d天", count);
}

运行结果

3. 调和级数

问题描述:
小蓝特别喜欢调和级数 S(n)=1/1+1/2+1/3+1/4+…+1/n 。
请问,n 至少为多大时,S(n)>12 ?

#include<stdio.h>
int main()
{
	double Sn = 0.0;
	int n = 1;
	while (Sn <= 12)
	{
		Sn = Sn + 1.0 / n;
		n++;
	}
	printf("n至少为%d时,S(n)>12", n);
}

n为整型,因此不能写成1/n(整型除整型,结果也为整型),而要写成1.0/n(浮点型除整型,结果为浮点型)

运行结果

4. 山谷

问题描述:
给定一个字母矩阵,如果矩阵中的某个位置不在四条边上,而且该位置上的字母小于其上下左右四个位置的字母,则称为一个山谷。
例如,对于如下矩阵

共有两个山谷,位于第二行第二列和第四列。请注意第二行第三列和第三行第五列都不是山谷。
对于如下30行60列的字母矩阵(请用等宽字体查看),请问有多少个山谷?

算法思路:既然位置不能在四条边上,则循环取值时只用取中间的一块,循环遍历判断每个位置是否满足条件即可。

#include<stdio.h>
int main()
{
	char array[30][60] = { {'P','H','Q','G','H','U','M','E','A','Y','L','N','L','F','D','X','F','I','R','C','V','S','C','X','G','G','B','W','K','F','N','Q','D','U','X','W','F','N','F','O','Z','V','S','R','T','K','J','P','R','E','P','G','G','X','R','P','N','R','V','Y'},
{'S','T','M','W','C','Y','S','Y','Y','C','Q','P','E','V','I','K','E','F','F','M','Z','N','I','M','K','K','A','S','V','W','S','R','E','N','Z','K','Y','C','X','F','X','T','L','S','G','Y','P','S','F','A','D','P','O','O','E','F','X','Z','B','C'},
{'O','E','J','U','V','P','V','A','B','O','Y','G','P','O','E','Y','L','F','P','B','N','P','L','J','V','R','V','I','P','Y','A','M','Y','E','H','W','Q','N','Q','R','Q','P','M','X','U','J','J','L','O','O','V','A','O','W','U','X','W','H','M','S'},
{'N','C','B','X','C','O','K','S','F','Z','K','V','A','T','X','D','K','N','L','Y','J','Y','H','F','I','X','J','S','W','N','K','K','U','F','N','U','X','X','Z','R','Z','B','M','N','M','G','Q','O','O','K','E','T','L','Y','H','N','K','O','A','U'},
{'G','Z','Q','R','C','D','D','I','U','T','E','I','O','J','W','A','Y','Y','Z','P','V','S','C','M','P','S','A','J','L','F','V','G','U','B','F','A','A','O','V','L','Z','Y','L','N','T','R','K','D','C','P','W','S','R','T','E','S','J','W','H','D'},
{'I','Z','C','O','B','Z','C','N','F','W','L','Q','I','J','T','V','D','W','V','X','H','R','C','B','L','D','V','G','Y','L','W','G','B','U','S','B','M','B','O','R','X','T','L','H','C','S','M','P','X','O','H','G','M','G','N','K','E','U','F','D'},
{'X','O','T','O','G','B','G','X','P','E','Y','A','N','F','E','T','C','U','K','E','P','Z','S','H','K','L','J','U','G','G','G','E','K','J','D','Q','Z','J','E','N','P','E','V','Q','G','X','I','E','P','J','S','R','D','Z','J','A','Z','U','J','L'},
{'L','C','H','H','B','F','Q','M','K','I','M','W','Z','O','B','I','W','Y','B','X','D','U','U','N','F','S','K','S','R','S','R','T','E','K','M','Q','D','C','Y','Z','J','E','E','U','H','M','S','R','Q','C','O','Z','I','J','I','P','F','I','O','N'},
{'E','E','D','D','P','S','Z','R','N','A','V','Y','M','M','T','A','T','B','D','Z','Q','S','O','E','M','U','V','N','P','P','P','S','U','A','C','B','A','Z','U','X','M','H','E','C','T','H','L','E','G','R','P','U','N','K','D','M','B','P','P','W'},
{'E','Q','T','G','J','O','P','A','R','M','O','W','Z','D','Q','Y','O','X','Y','T','J','B','B','H','A','W','D','Y','D','C','P','R','J','B','X','P','H','O','O','H','P','K','W','Q','Y','U','H','R','Q','Z','H','N','B','N','F','U','V','Q','N','Q'},
{'Q','L','R','Z','J','P','X','I','O','G','V','L','I','E','X','D','Z','U','Z','O','S','R','K','R','U','S','V','O','J','B','R','Z','M','W','Z','P','O','W','K','J','I','L','E','F','R','A','A','M','D','I','G','P','N','P','U','U','H','G','X','P'},
{'Q','N','J','W','J','M','W','A','X','X','M','N','S','N','H','H','L','Q','Q','R','Z','U','D','L','T','F','Z','O','T','C','J','T','N','Z','X','U','G','L','S','D','S','M','Z','C','N','O','C','K','V','F','A','J','F','R','M','X','O','T','H','O'},
{'W','K','B','J','Z','W','U','C','W','L','J','F','R','I','M','P','M','Y','H','C','H','Z','R','I','W','K','B','A','R','X','B','G','F','C','B','C','E','Y','H','J','U','G','I','X','W','T','B','V','T','R','E','H','B','B','C','P','X','I','F','B'},
{'X','V','F','B','C','G','K','C','F','Q','C','K','C','O','T','Z','G','K','U','B','M','J','R','M','B','S','Z','T','S','S','H','F','R','O','E','F','W','S','J','R','X','J','H','G','U','Z','Y','U','P','Z','W','W','E','I','Q','U','R','P','I','X'},
{'I','Q','F','L','D','U','U','V','E','O','O','W','Q','C','U','D','H','N','E','F','N','J','H','A','I','M','U','C','Z','F','S','K','U','I','D','U','B','U','R','I','S','W','T','B','R','E','C','U','Y','K','A','B','F','C','V','K','D','Z','E','Z'},
{'T','O','I','D','U','K','U','H','J','Z','E','F','C','Z','Z','Z','B','F','K','Q','D','P','Q','Z','I','K','F','O','B','U','C','D','H','T','H','X','D','J','G','K','J','E','L','R','L','P','A','X','A','M','C','E','R','O','S','W','I','T','D','P'},
{'T','P','C','C','L','I','F','K','E','L','J','Y','T','I','H','R','C','Q','A','Y','B','N','E','F','X','N','X','V','G','Z','E','D','Y','Y','H','N','G','Y','C','D','R','U','D','M','P','H','M','E','C','K','O','T','R','W','O','S','P','O','F','G'},
{'H','F','O','Z','Q','V','L','Q','F','X','W','W','K','M','F','X','D','Y','Y','G','M','D','C','A','S','Z','S','G','O','V','S','O','D','K','J','G','H','C','W','M','B','M','X','R','M','H','U','Y','F','Y','Q','G','A','J','Q','K','C','K','L','Z'},
{'N','A','Y','X','Q','K','Q','O','Y','Z','W','M','Y','U','B','Z','A','Z','C','P','K','H','K','T','K','Y','D','Z','I','V','C','U','Y','P','U','R','F','M','B','I','S','G','E','K','Y','R','G','Z','V','X','D','H','P','O','A','M','V','A','F','Y'},
{'R','A','R','X','S','V','K','H','T','Q','D','I','H','E','R','S','I','G','B','H','Z','J','Z','U','J','X','M','M','Y','S','P','N','A','R','A','E','W','K','E','G','J','C','C','V','H','H','R','J','V','B','J','T','S','Q','D','J','O','O','T','G'},
{'P','K','N','F','P','F','Y','C','G','F','I','E','O','W','Q','R','W','W','W','P','Z','S','Q','M','E','T','O','G','E','P','S','P','X','N','V','J','I','U','P','A','L','Y','Y','N','M','K','M','N','U','V','K','L','H','S','E','C','D','W','R','A'},
{'C','G','F','M','Z','K','G','I','P','D','F','O','D','K','J','M','J','Q','W','I','Q','P','U','O','Q','H','I','M','V','F','V','U','Z','W','Y','V','I','J','G','F','U','L','L','K','J','D','U','H','S','J','A','F','B','T','L','K','M','F','Q','R'},
{'M','Y','J','F','J','N','H','H','S','S','Q','C','T','Y','D','T','E','A','M','D','C','J','B','P','R','H','T','N','E','G','Y','I','W','X','G','C','J','W','L','G','R','S','M','E','A','E','A','R','W','T','V','J','S','J','B','A','O','I','O','J'},
{'L','W','H','Y','P','N','V','R','U','I','H','O','S','W','K','I','F','Y','G','T','Y','D','H','A','C','W','Y','H','S','G','E','W','Z','M','T','G','O','N','Z','L','T','J','H','G','A','U','H','N','I','H','R','E','Q','G','J','F','W','K','J','S'},
{'M','T','P','J','H','A','E','F','Q','Z','A','A','U','L','D','R','C','H','J','C','C','D','Y','R','F','V','V','R','I','V','U','Y','E','E','G','F','I','V','D','R','C','Y','G','U','R','Q','D','R','E','D','A','K','U','B','N','F','G','U','P','R'},
{'O','Q','Y','L','O','B','C','W','Q','X','K','Z','M','A','U','S','J','G','M','H','C','M','H','G','D','N','M','P','H','N','Q','K','A','M','H','U','R','K','T','R','F','F','A','C','L','V','G','R','Z','K','K','L','D','A','C','L','L','T','E','O'},
{'J','O','M','O','N','X','R','Q','Y','J','Z','G','I','N','R','N','N','Z','W','A','C','X','X','A','E','D','R','W','U','D','X','Z','R','F','U','S','E','W','J','T','B','O','X','V','Y','N','F','H','K','S','T','C','E','N','A','U','M','N','D','D'},
{'X','F','D','M','V','Z','C','A','U','T','D','C','C','K','X','A','A','Y','D','Z','S','X','T','T','O','B','B','G','Q','N','G','V','V','P','J','G','O','J','O','G','L','M','K','X','G','B','F','C','P','Y','P','C','K','Q','C','H','B','D','D','Z'},
{'W','R','X','B','Z','M','Q','R','L','X','V','O','B','T','W','H','X','G','I','N','F','G','F','R','C','C','L','M','Z','N','M','J','U','G','W','W','B','S','Q','F','C','I','H','U','B','S','J','O','L','L','M','S','Q','S','G','H','M','C','P','H'},
{'E','L','S','O','T','F','L','B','G','S','F','N','P','C','U','Z','S','R','U','P','C','H','Y','N','V','Z','H','C','P','Q','U','G','R','I','W','N','I','Q','X','D','F','J','P','W','P','X','F','B','L','K','P','N','P','E','E','L','F','J','M','T'} };
	int count = 0;
	for (int i = 1; i < 29; i++)
		for (int j = 1; j < 59; j++)
		{
			if (array[i][j] < array[i - 1][j] && array[i][j] < array[i + 1][j] && array[i][j] < array[i][j - 1] && array[i][j] < array[i][j + 1])
			{
				count++;
				printf("第%d个山谷位于:第%d行,第%d列\n", count, i + 1, j + 1);
			}
		}
	printf("该矩阵中共有%d个山谷\n", count);
}

运行结果

5. 最小矩阵

问题描述:
小蓝有一个100行100列的矩阵,矩阵的左上角为1。其它每个位置正好比其左边的数大2,比其上边的数大1。
例如,第1行第2列为3,第2行第2列为4,第10行第20列为48。
小蓝想在矩阵中找到一个由连续的若干行、连续的若干列组成的子矩阵,使得其和为2022,请问这个子矩阵中至少包含多少个元素(即子矩阵的行数和列数的乘积)。

算法思路:创建一个二维数组b用来存放从当前位置开始到其余各位置的累计值,minnum记录每次满足条件的矩阵中的最少元素。该算法共有四层嵌套循环,最里面的两层是一个小循环,表示每次从某一固定位置开始,计算该位置到其余位置的所有累计值;最外面的两层是一个大循环,表示依次从矩阵最上方开始,计算每个位置到其余位置的所有累计值。

#include<stdio.h>
int main()
{
	int a[100][100], b[100][100], count = 0, minnum = 10000, elenum;
	for (int i = 0; i < 100; i++)
		for (int j = 0; j < 100; j++)
		{
			if (i == 0)
			{
				if (j == 0) a[i][j] = 1; //矩阵左上角为1
				else a[i][j] = a[i][j - 1] + 2; //第一行从第二个元素开始,每个元素为前一个元素+2
			}
			else a[i][j] = a[i - 1][j] + 1; //除第一行的其余元素为上方元素+1
		}
	for (int m = 0; m < 100; m++) //大嵌套,计算矩阵每个位置上的所有累计值
		for (int n = 0; n < 100; n++)
			for (int i = m; i < 100; i++) //小嵌套,计算以当前位置为起始的所有累计值 
				for (int j = n; j < 100; j++)
				{
					if (i == m && j == n) b[i][j] = a[i][j]; //以当前元素为起始位置开始计算其它元素的累计值 
					else if (i == m && j > n) b[i][j] = a[i][j] + b[i][j - 1]; //若该元素在左上角元素的右方,则累计值为前一个元素的累计值+当前元素的值
					else if (j == n && i > m) b[i][j] = a[i][j] + b[i - 1][j]; //若该元素在左上角元素的下方,则累计值为上一个元素的累计值+当前元素的值
					else b[i][j] = a[i][j] + b[i][j - 1] + b[i - 1][j] - b[i - 1][j - 1]; 
					//若在其他位置,则累计值为当前元素的值+前一个元素的累计值+上一个元素的累计值-左上角元素的累计值
					if (b[i][j] == 2022) //如果该累计值等于2022
					{
						elenum = (i - m + 1) * (j - n + 1); //记录子矩阵中最少的元素
						printf("子矩阵从(%d,%d)开始,到(%d,%d)结束,该矩阵中包含%d个元素\n", m, n, i, j, elenum);
						if (elenum < minnum) minnum = elenum; //如果遇到更小的子矩阵,则替换记录
						count++;
					}
				}
	printf("和为2022的子矩阵共有:%d个\n", count);
	printf("子矩阵中至少包含%d个元素", minnum);
}

运行结果


下图模拟了一下5×5矩阵中,和为54的部分子矩阵b[i][j],其中标红的数字为大循环每次开始计算的位置,而图中每一个5×5黄底方格中填入的数值,是由小循环每次计算得出的。空余位置是不需要用到的数值,但在代码中并没有每次都将它们值为空,而是保留了上一次的计算结果。

6. 核酸日期

问题描述:
如果周一做核酸,周二显示核酸天数为1天,周三显示2天,以此类推,周六显示5天,周日显示6天。
小蓝在某一天做了一次核酸,请问他的核酸显示为几天。已知做核酸和查看核酸不是在同一天,而且相差不超过6天(显示的数为1到6之间的数)。

#include<stdio.h>
int main()
{
	int s, t;
	printf("小蓝做核酸是周几? ");
	scanf_s("%d", &s);
	printf("小蓝查看核酸是周几? ");
	scanf_s("%d", &t);
	if (((t >= s) && (t - s) > 6) || ((t <= s) && (t - s + 7) > 6) || s < 1 || t > 7) printf("Error!");
	else if (t > s) printf("相差%d天", t - s);
	else  printf("相差%d天", t - s + 7);
}

运行结果

7. 英文转换

问题描述:
输入一个由小写英文字母组成的字符串,请将其中的元音字母(a, e, i, o, u)转换成大写,其它字母仍然保持小写。

#include<stdio.h>
#include<string.h>
int main()
{
	char str[100] = {"pneumonoultramicroscopicsilicovolcanoconiosis"};
	int i;
	printf("转换前的字符串为:");
	for (i = 0; str[i]!='\0'; i++) printf("%c", str[i]);
	for (i = 0; i < str[i] != '\0'; i++)
		if (str[i] == 'a' || str[i] == 'e' || str[i] == 'i' || str[i] == 'o' || str[i] == 'u')
			str[i] -= 32;
	printf("\n转换后的字符串为:");
	for (i = 0; str[i] != '\0'; i++) printf("%c", str[i]);
}

运行结果

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/80337.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Linux系统调用实现简析

1. 前言 限于作者能力水平&#xff0c;本文可能存在的谬误&#xff0c;因此而给读者带来的损失&#xff0c;作者不做任何承诺。 2. 背景 本篇基于 Linux 4.14 ARM 32 glibc-2.31 进行分析。 3. 系统调用的实现 3.1 系统调用的发起 3.1.1 起于用户空间 我们随意挑选一个…

python学习之:妙用魔法函数 __dict___来调用对象中的方法,或者 python文件中的方法

文章目录场景原始写法升级写法面向对象的写法总结场景 原始写法 假设现在有一个文件 tool.py我想在外部输入一个 字符串 就调用这个字符串对应的函数如果你不是用 __dict__ 这个好用的函数&#xff0c;那么你大概率会以下面的方式去写 main 函数&#xff0c;给很多 if但是如果…

网络安全观察报告 态势总览

执行摘要 从 1987 年 9 月 14 日&#xff0c;中国向世界发出第一封电子邮件 到如今&#xff0c;中国的互联网发展已过去整整 31 个年头。从消费互联、产业互联到万物互联&#xff0c;互联网正在加速改变我们的交流方式和交易方式&#xff0c;一次次 004.重塑了国家的经济形态和…

创建型 - 单例模式(Singleton pattern)

单例模式&#xff08;Singleton Pattern&#xff09;&#xff1a;确保一个类有且只有一个实例&#xff0c;并提供一个全局访问点。 文章目录懒汉式-线程不安全饿汉式-线程安全懒汉式-线程安全双重校验锁-线程安全静态内部类实现枚举实现实现方式总结使用场景JDK懒汉式-线程不安…

论文(world、WPS)插入参考文献引用详细教程

一、参考资料 如何在WPS中添加论文参考文献 【Word】怎样给论文添加引用参考文献 word添加各种引用 二、相关介绍 1. 参考文献的标注 参考文献的标注分为全部引用、局部引用、间接引用。 1.1 全部引用&#xff08;直接引用&#xff09; 需要双引号&#xff0c;无论冒号…

[附源码]Python计算机毕业设计SSM基于的社区疫情管理系统(程序+LW)

项目运行 环境配置&#xff1a; Jdk1.8 Tomcat7.0 Mysql HBuilderX&#xff08;Webstorm也行&#xff09; Eclispe&#xff08;IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持&#xff09;。 项目技术&#xff1a; SSM mybatis Maven Vue 等等组成&#xff0c;B/S模式 M…

ADI Blackfin DSP处理器-BF533的开发详解24:触摸屏的实现和应用(含源代码)

硬件准备** ADSP-EDU-BF533&#xff1a;BF533开发板 AD-HP530ICE&#xff1a;ADI DSP仿真器 软件准备 Visual DSP软件 硬件链接 使用到硬件模块原理图 功能介绍 四线电阻式触摸屏&#xff0c;拿笔和指甲划拉的&#xff0c;不是现在的容性触摸屏。 ADSP-EDU-BF53x 板卡的 …

《Docker》阿里云服务器docker部署nginx并配置https踩坑记录(完整)

前端博主&#xff0c;热衷各种前端向的骚操作&#xff0c;经常想到哪就写到哪&#xff0c;如果有感兴趣的技术和前端效果可以留言&#xff5e;博主看到后会去代替大家踩坑的&#xff5e; 主页: oliver尹的主页 格言: 跌倒了爬起来就好&#xff5e; 来个关注吧&#xff0c;点个赞…

# Docker说明、安装(Windows10家庭版)

Docker说明、安装&#xff08;Windows10家庭版&#xff09; Docker是什么&#xff1f;它是干嘛的&#xff1f; 开始&#xff0c;我就知道别人说是用来加工tar包的。tar包&#xff1f;又是干什么用的&#xff1f; tar包&#xff0c;个人粗俗的理解就是一个环境&#xff0c;里面…

CVPR2021 | VQGAN+:Taming Transformers for High-Resolution Image Synthesis

原文标题&#xff1a;Taming Transformers for High-Resolution Image Synthesis 主页&#xff1a;Taming Transformers for High-Resolution Image Synthesis 代码&#xff1a;https://github.com/CompVis/taming-transformers transformer比CNN缺少了归纳偏置和局部性&…

音视频编解码经典问题汇总(1)

前言&#xff1a; 大家好&#xff0c;今天给大家分享的内容是关于平时在做音频编解码会遇到的一些问题&#xff0c;比如说&#xff1a;解码播放的时候&#xff0c;播不出来解码播放的时候&#xff0c;画面有条纹编码的时候&#xff0c;修改分辨率大小&#xff0c;没有反应这三个…

【NumPy 数组副本 vs 视图、NumPy 数组形状、重塑、迭代】

&#x1f935;‍♂️ 个人主页老虎也淘气 个人主页 ✍&#x1f3fb;作者简介&#xff1a;Python学习者 &#x1f40b; 希望大家多多支持我们一起进步&#xff01;&#x1f604; 如果文章对你有帮助的话&#xff0c; 欢迎评论 &#x1f4ac;点赞&#x1f44d;&#x1f3fb; 收藏…

实验五 进程通信-管道通信

1. 函数int pipe(int fd[2])创建一个管道&#xff0c;管道两端可分别用描述字fd[0]以及fd[1]来描述。需要注意的是&#xff0c;管道的两端是固定了任务的。即一端只能用于读&#xff0c;由描述字fd[0]表示&#xff0c;称其为管道读端&#xff1b;另一端则只能用于写&#xff0c…

我失业了?| ChatGPT生信分析初体验

最近ChatGPT火的一塌糊涂&#xff0c;作为在生物医学和计算机科学领域夹缝求生的边缘摇摆人&#xff0c;也来蹭一波热度。ChatGPT是一个预训练的语言模型&#xff0c;由OpenAI训练。它可以用来生成自然语言文本&#xff0c;并且可以进行对话。它基于Transformer架构&#xff0c…

OAuth2.0的四种授权方式

前言 OAuth 简单理解就是一种授权机制&#xff0c;它是在客户端和资源所有者之间的授权层&#xff0c;用来分离两种不同的角色。在资源所有者同意并向客户端颁发令牌后&#xff0c;客户端携带令牌可以访问资源所有者的资源。 OAuth2.0 是 OAuth 协议的一个版本&#xff0c;有…

【计算机毕业设计】77.旅游资源网站源码

一、系统截图&#xff08;需要演示视频可以私聊&#xff09; 摘 要 本论文主要论述了如何使用JAVA语言开发一个旅游资源网站 &#xff0c;本系统将严格按照软件开发流程进行各个阶段的工作&#xff0c;采用B/S架构&#xff0c;面向对象编程思想进行项目开发。在引言中&#xf…

MATLB|分布式能源的选址与定容IEEE30节点实现

&#x1f4a5;&#x1f4a5;&#x1f4a5;&#x1f49e;&#x1f49e;&#x1f49e;欢迎来到本博客❤️❤️❤️&#x1f4a5;&#x1f4a5;&#x1f4a5;&#x1f3c6;博主优势&#xff1a;&#x1f31e;&#x1f31e;&#x1f31e;博客内容尽量做到思维缜密&#xff0c;逻辑清…

Jmeter(四):请求默认值元件应用,模拟http请求实战,正则表达式提取器元件讲解

Jmeter(7)&#xff1a;jmeter请求默认值元件应用 HTTP请求默认值 在公司内部进行测试的时候&#xff0c;一般测试环境访问的接口地址&#xff08;服务器名称 或IP&#xff09;、端口、协议一般都是不变的&#xff0c;但http请求取样器每个请求都要求写一遍 这些信息&#xff0…

购物网站系统

视频如下 go网站前台:关于我们、联系我们、公告信息、商品类型、商品信息、商品评论管理员: 1、管理关于我们、联系我们 2、增删改查公告类型、公告信息 3增删改查商品类型、商品信息 4、查看注册用户信息 5、查看用户充值信息 6、查看回复用户咨询 7、查看下单信息 8、发货、查…

微信支付API3 APP【统一下单 APIV3】

官方参考资料 签名&#xff1a;签名生成-接口规则 | 微信支付商户平台文档中心 签名生成&#xff1a;签名生成 - WechatPay-API-v3 统一下单接口&#xff1a;微信支付-开发者文档 如何查看证书序列号&#xff1a;证书相关 - WechatPay-API-v3 私钥和证书&#xff1a;私钥和…