自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

原创 IDEA报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin....Fatal error compilng

首先在idea中的maven setting 看看maven的runner是不是你用的jdk版本,如果不是就换掉。其次 在file中打开project structure 在project里面看看你的这两个是不是正确的。我出现的问题是JDK使用的版本不匹配,所以在idea中更换了用的jdk版本。我按这两个步骤之后重新compile 发现问题已经解决了。

2023-04-15 16:42:15 236

原创 离散化---区间和问题 AcWing

区间和问题

2022-06-01 17:08:07 118

原创 前缀和和差分问题----个人笔记

一维前缀和求解前缀和问题不能把问题看成面积问题求解,要把问题看成一个数集问题,注意边界输出原序列中从第 l 个数到第 r 个数的和:#include<iostream>using namespace std;const int N=100010;int q[N],a[N];int n,m,l,r;int main(){ cin>>n>>m; for(int i=1;i<=n;i++) cin>>a[i];

2022-05-05 13:19:35 98

原创 数据结构代码实现笔记

线性表插入#include<iostream>#include<stdio.h>#include<stdlib.h>using namespace std;#define MAXSIZE 50//宏定义数据数组名字typedef int ElemType;//把int型给命名成ElemType 型typedef struct {//定义结构体 ElemType data[MAXSIZE];//结构体的数据数组 int length;//数据数组的长

2022-05-02 09:13:55 91

原创 快速排序模板

快速排序模板#include<iostream>using namespace std;const int N=10e6+10;int n;int q[N];void quick_sort(int q[],int l,int r){ if(l>=r) return ; int x=q[l+r>>1],i=l-1,j=r+1;//设置中间值,设置左右指针 while(i<j)//比较左右指针值的大小 {

2022-04-22 10:25:28 47

原创 归并排序模板

对数组排序#include<iostream>using namespace std;const int N = 100100;int a[N], tmp[N];int n;void merge_sort(int a[], int l, int r){ if (l >= r) return; int mid = r + l >> 1;//定义中间值 merge_sort(a, l, mid);//对数组的左边递归处理 merg

2022-04-22 10:22:28 48

原创 求完全数,优化问题

#include<iostream>#include<cstdio>#include<cmath>using namespace std;int main(){ int a,b; cin>>a; while(a--) { /* c++在一秒内最多处理2.5*10的7次方次数据,计算时间复杂度为10的10次方 超时,因此将程序优化。由于得到一个约数i后,同时得到另一个约数b/i,

2022-03-09 16:00:23 129

原创 安装Linux出现ERR: The virtual machine could not be started because a required feature is not installed.

ERR: The virtual machine could not be started because a required feature is not installed.解决方案:确保虚拟化启用在pwsh里把wsl的默认version设置为1wsl --set-default-version 1解决了

2022-01-17 19:29:19 1680

原创 Android studio:“The emulator process for AVD Pixel_2_API_30 has terminiated.“

Android studio:“The emulator process for AVD Pixel_2_API_30 has terminiated.”It would seem due to the fact you are using a beta version of android studio the message “The emulator process for AVD Pixel_2_API_30 was killed.” has been changed to “The emulat

2021-09-09 15:35:57 2622

原创 蚁群算法简单实例

制定一条最短的路径,要你旅行31个城市,每个城市只能经过一次并且最后要回到起点MATLAB代码ticclear all;close all;clc;C = [1304 2312; % 城市坐标 3639 1315; 4177 2244; 3712 1399; 3488 1535; 3326 1556; 3238 1229; 4196 1044; 4312 790; 4386 570; 3007 197

2021-01-30 15:20:43 1271

原创 模拟退火算法简单实例

制定一条最短的路径,要你旅行31个城市,每个城市只能经过一次并且最后要回到起点,MATLAB代码%%%%%%%%%%%%%%%%%%%%%%模拟退火算法解决TSP问题%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%初始化%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ticclear all; %清除所有变量close all; %清图cl

2021-01-30 15:15:05 1315 1

原创 PAT习题5-2 使用函数求奇数和 (15分)

#include <stdio.h>#define MAXN 10int even( int n );int OddSum( int List[], int N );int main(){ int List[MAXN], N, i; scanf("%d", &N); printf("Sum of ( "); for ( i=0; i<N; i++ ) { scanf("%d", &List[i]);

2020-11-04 17:32:14 405

原创 PTA数字金字塔

#include <stdio.h>void pyramid( int n );int main(){ int n; scanf("%d", &n); pyramid(n); return 0;}void pyramid(int n){ int i,j,k; for(i=1;i<=n;i++){ for(j=n-i;j>0;j--) printf(" ");

2020-10-31 17:29:10 383

原创 a,&a,*a的区别

理解数组数组的存储方式是顺序存储方式,是在内存中开辟一块连续的,大小相同的空间用来存储数据。所以内存地址是连续的。指针与数组的关系用指针表示数组:*(a+2)=a[2]用数组表示指针:a+2=&a[2]#include<studio.h>int main (void){int u[5]={100,200,300,400,500};int *p1,*p2,*p3;p1=u;//把一个地址赋值给指针p2=&u[2];printf(“p1=%d,*p1=%d,&

2020-10-30 19:52:09 1805

简化版课程设计C++通讯录管理系统

简化版课程设计C++通讯录管理系统

2022-02-26

C#学生信息管理系统.zip

密码123456

2022-01-06

空空如也

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

TA关注的人

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