第一次省赛团队训练 - BAPC 2022 Pre(DAPC 2022)

news2024/12/25 9:07:00

B (2). Bubble-bubble Sort [ 提交记录 ] [ 问题 3462  ]


时间限制: 2000MS

空间限制: 256MB

结果评判: 文本对比

正确/提交: 7 (5) / 15

官方标签:

用户标记:

题目描述

Bubbles! As a fanatical supporter of the Bubbles Are Perfect Creatures movement, you have accumulated a large collection of bubbles in all colours and sizes. Being a long time member, your bubbles are among the best in the world, and now is the time to show this. Tomorrow, the yearly Bubble Exposition will be held, and your goal is to win the Bubble Prize and become the Bubble Champion!

However, this is not an easy competition. In order to win, you do not only need the most beautiful bubbles, you also need the best-looking placement of bubbles. You have decided to order the bubbles by bubbliness: less bubblier bubbles to the left, more bubblier bubbles to the right. However, it is hard to compare all the bubbles in your collection at once. In fact, you can only compare up to k� bubbles by eye before losing track of all the bubbles. Since your collection consists of more than k� bubbles, you need a fancier sorting algorithm. 

Your first thought is to use the best sorting algorithm for bubbly purposes, namely Bubble Sort. However, this is the most prestigious bubble competition, so you decide to do better: Bubble-bubble Sort. It works as follows.

Initially, your bubbles are placed in an arbitrary order. Every hour, you do the following: you look at the first k� bubbles and place them in the optimal order. Then, you look at bubbles 2∼k+12∼�+1 and place those in the correct order. Then, you look at bubbles 3∼k+23∼�+2, and so on, until you have placed the last k� bubbles in the correct order. You then admire how the bubble collection looks so far until the next hour begins and you start at the first bubbles again. 

Is this algorithm fast enough to place all your bubbles, or do you need to go further and invent a Bubble-bubble-bubble Sort algorithm? To be precise, after how many hours are the bubbles in the optimal positions?

输入描述

The input consists of:

  • One line with two integers N,K(2≤K<N≤2500�,�(2≤�<�≤2500), the number of bubbles and the number of bubbles you can sort at once.
  • One line with N� integers a(0≤a≤109�(0≤�≤109), the bubbliness of each bubble in the initial placement of your bubble collection.

输出描述

Output the number of hours needed to sort your bubble collection.

样例

输入 复制

5 2
3 4 1 5 2

输出 复制

3

输入 复制

8 3
60 8 27 7 68 41 53 44

输出 复制

2

输入 复制

6 3
3 2 4 2 3 1

输出 复制

3

来源

BAPC 2022 Pre

特判一下,用个is_sorted,ac哩

#include<bits/stdc++.h>
using namespace std;
#pragma GCC optimize(2)
#define  endl '\n'
#define lowbit(x) ((x)&-(x))
#define pi 3.1415926535
const int N=2e6+10;
typedef long long ll;
ll ans=0,n1,m1;
ll t=0,s1=0,s2=0,s3=0,s4=0,max1=0,max2=0,w,min1=100000000,sum=0,n,m,i,j,k,v,l,r;

inline int read() {
	bool sym=0;
	int res=0;
	char ch=getchar();
	while(!isdigit(ch))sym |=(ch =='-'),ch=getchar();
	while(isdigit(ch)) res =(res<<3)+(res<<1)+(ch^48),ch=getchar();
	return sym ? -res : res;
}
void print(int x) {
	if(!x)return;
	print(x/10);
	putchar(x%10+'0');
}
int isPrime(int n) {
	float n_sqrt;
	if(n==1) return 0;
	if(n==2 || n==3) return 1;
	if(n%6!=1 && n%6!=5) return 0;
	n_sqrt=floor(sqrt((float)n));
	for(int i=5; i<=n_sqrt; i+=6) {
		if(n%(i)==0 | n%(i+2)==0) return 0;
	}
	return 1;

}
ll a[100086];
int main() {


	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n>>k;
	for(i=1;i<=n;i++)
	cin>>a[i];
	if(is_sorted(a+1,a+1+n))
	{
		cout<<0;
		return 0;
	}
	for(j=1;j<=10004;j++){
		for(i=1;i+k<=n+1;i++){
			sort(a+i,a+i+k);
				//cout<<a[1]<<" "<<a[2]<<' '<<a[3]<<" "<<a[4]<<" "<<a[5]<<endl;
	}

	if(is_sorted(a+1,a+1+n))
	{
		cout<<j;
		return 0;
	}
	}
	
	return 0;
}

//mio lover

E (5). Extended Braille [ 提交记录 ] [ 问题 3486  ]


时间限制: 8000MS

空间限制: 512MB

结果评判: 文本对比

正确/提交: 9 (9) / 31

官方标签:

用户标记:

题目描述

The Blind Association for Pretty Calligraphy is annoyed by the lack of emoticons and math symbols in the braille alphabet. Given that the braille alphabet is supported by the Unicode format, it only makes sense to make all Unicode characters supported in braille.

The goal is to extend the braille alphabet to include all Unicode characters. Of course, this will not fit in the standard 2×32×3 format, so using a bigger box is allowed. Important is that no two braille characters are the same up to translation, i.e., have the same shape. See Figure E.1 for an example. You let a designer make up a large braille alphabet, and your job is to check how many unique shapes there are among the characters.

输入描述

The input consists of:

  • One line with an integer n� (1≤n≤1051≤�≤105), the number of braille characters. 
  • Then for each of the n� braille characters:
    • One line with an integer m� (1≤m≤10001≤�≤1000), the number of dots.
    • m� lines, each with two integers x� and y� (|x|,|y|≤1000|�|,|�|≤1000), the coordinates of the dots.

The total number of dots is at most 106106.

输出描述

Output the number of distinct braille characters up to translation.

样例

输入 复制

2
2
0 2
1 1
2
0 1
1 0

输出 复制

1

输入 复制

2
3
-1 0
0 1
1 0
3
-1 0
0 -1
1 0

输出 复制

2

来源

BAPC 2022 Pre

vector pair  找个起始点,算差距

#include<bits/stdc++.h>
using namespace std;
#pragma GCC optimize(2)
#define  endl '\n'
#define lowbit(x) ((x)&-(x))
#define pi 3.1415926535
const int N=2e6+10;
typedef long long ll;
ll ans=0,n1,m1;
ll t=0,s1=0,s2=0,s3=0,s4=0,max1=0,max2=0,w,min1=100000000,sum=0,n,m,i,j,k,v,l,r;

inline int read() {
	bool sym=0;
	int res=0;
	char ch=getchar();
	while(!isdigit(ch))sym |=(ch =='-'),ch=getchar();
	while(isdigit(ch)) res =(res<<3)+(res<<1)+(ch^48),ch=getchar();
	return sym ? -res : res;
}
void print(int x) {
	if(!x)return;
	print(x/10);
	putchar(x%10+'0');
}
int isPrime(int n) {
	float n_sqrt;
	if(n==1) return 0;
	if(n==2 || n==3) return 1;
	if(n%6!=1 && n%6!=5) return 0;
	n_sqrt=floor(sqrt((float)n));
	for(int i=5; i<=n_sqrt; i+=6) {
		if(n%(i)==0 | n%(i+2)==0) return 0;
	}
	return 1;

}
ll a[1000860];
struct node {
	ll x;
	ll y;
} b[1000086];
ll cmp(node a,node b) {
	if(a.x ==b.x )
		return a.y <b.y ;
	return a.x <b.x ;
}

set<vector<pair<ll,ll> > >st;
vector<pair<ll,ll> >vv;
int main() {


	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n;
	k=n;
	while(n--) {
		cin>>m;
		vv.clear();
		string ss;
		ans=0;
		for(i=1; i<=m; i++) {
			cin>>b[i].x >>b[i].y ;
			b[i].x+=1001;
		b[i].y+=1001;
		}

		sort(b+1,b+1+m,cmp);
		if(n==k-1) {
			s1=b[1].x ;
			s2=b[1].y ;

		} else {
			s3=b[1].x -s1;
			s4=b[1].y -s2;

		}
		//cout<<s3<<" "<<s4<<endl;
		for(i=1; i<=m; i++) {
			
		
				vv.push_back(make_pair(b[i].x-s3 ,b[i].y-s4 ));
			
		}
		//cout<<ans;
		st.insert(vv);
		/*for(i=1;i<=m;i++)
		{
			cout<<b[i].x <<" "<<b[i].y <<endl;
		}*/


	}
	cout<<st.size();
	return 0;
}

//mio lover

 

F (6). Fastestest Function [ 提交记录 ] [ 问题 5879  ]


时间限制: 1000MS

空间限制: 256MB

结果评判: Special Judge

正确/提交: 12 (12) / 37

官方标签:

用户标记:

题目描述

You are working as a software developer for the Bug Acquisition Programming Company. They developed a specific piece of software called Program C that they sell to their clients. For the past weeks, you have been working on optimising a specific function foo in the
main code path in Program C. You have made it a lot faster and would like to show off to your boss about it.

Your IDE has a nice tool that allows you to profile your code and tell you what percentage of the total running time foo takes. You can run this on the version before your change and after your change. However, you think it looks a lot cooler if you can just tell your boss how
much faster you have made foo itself.

输入描述

The input consists of:

  • One line with two integers x� and y� (0<x,y<1000<�,�<100), where x� is the percentage of the total running time that foo took before optimising and y� the percentage of the total running time it took after optimising.

输出描述

Output the factor of how much faster foo got after your optimization.

Your answer should have an absolute or relative error of at most 10−610−6.

样例

输入 复制

75 50

输出 复制

3.0

输入 复制

50 75

输出 复制

0.3333333333333333

输入 复制

50 50

输出 复制

1.0

来源

BAPC 2022 Pre

注意100-aa,100-bb;

#include<bits/stdc++.h>
using namespace std;
//#pragma GCC optimize(2)
#define  endl '\n'
#define lowbit(x) ((x)&-(x))
const int N=2e6+10;
typedef long long ll;
ll ans=0,n1,m1;
ll t=0,s1=0,s2=0,s3=0,s4=0,max1=0,max2=0,w,min1=100000000,sum=0,n,m,i,j,k,v,l,r;

inline int read() {
	bool sym=0;
	int res=0;
	char ch=getchar();
	while(!isdigit(ch))sym |=(ch =='-'),ch=getchar();
	while(isdigit(ch)) res =(res<<3)+(res<<1)+(ch^48),ch=getchar();
	return sym ? -res : res;
}
void print(int x) {
	if(!x)return;
	print(x/10);
	putchar(x%10+'0');
}
int isPrime(int n) {
	float n_sqrt;
	if(n==1) return 0;
	if(n==2 || n==3) return 1;
	if(n%6!=1 && n%6!=5) return 0;
	n_sqrt=floor(sqrt((float)n));
	for(int i=5; i<=n_sqrt; i+=6) {
		if(n%(i)==0 | n%(i+2)==0) return 0;
	}
	return 1;

}
double aa,bb,cc,dd;
int main() {


	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
cin>>aa>>bb;
cc=100-aa;
dd=100-bb;
if(aa==bb)
{
cout<<"1.0";	return 0;
}
if(cc>dd)
{double ee=cc/dd;
cout<<fixed<<setprecision(6)<<aa/(bb*ee);
	
}
else if(dd>cc){
double ee=cc/dd;
	cout<<fixed<<setprecision(6)<<aa/(bb*ee);
}



	return 0;
}

//mio lover

I (9). Jabbing Jets [ 提交记录 ] [ 问题 3525  ]


时间限制: 1000MS

空间限制: 256MB

结果评判: 文本对比

正确/提交: 15 (11) / 101

官方标签:

用户标记:

题目描述

You have just gotten a new job at the Bathroom Accessories Production Company. The first task you are given is to jab holes into showerheads. To prove yourself, you have decided you want to create as many holes as possible.

However, you cannot just randomly drill holes everywhere in the showerhead. (At least, not without getting fired.) In order to ensure that the showerheads look aesthetically pleasing, the company has composed some guidelines which you will have to follow.  See Figure J.1 for some examples of aesthetically pleasing showerheads.

  • The holes should be arranged in concentric circles of radii r1,r2,…,rn�1,�2,…,��: the center of every hole should be on one of these circles.
  • The distance between the centers of any two holes should be at least e�.

How many holes can you make at most?

输入描述

The input consists of:

  • One line with two integers n� and e� (1≤n,e≤1041≤�,�≤104), the number of circles and the minimal distance between holes.
  • One line with n� integers r1,…,rn�1,…,�� (1≤ri≤1041≤��≤104), the radii of the circles.

It is guaranteed that the numbers ri�� are given in increasing order, and that ri+1−ri≥e��+1−��≥�. Furthermore, it is guaranteed that increasing any radius ri�� by at most 10−610−6 will not change the final answer.

输出描述

Output the maximal number of holes that you can make in the showerhead.

样例

输入 复制

4 1
2 3 5 7

输出 复制

104

输入 复制

2 2
2 5

输出 复制

21

输入 复制

3 20
14 53 80

输出 复制

44

来源

BAPC 2022 Pre

注意特判

#include<bits/stdc++.h>
using namespace std;
//#pragma GCC optimize(2)
#define  endl '\n'
#define lowbit(x) ((x)&-(x))
#define pi 3.1415926535
const int N=2e6+10;
typedef long long ll;
ll ans=0,n1,m1;
ll t=0,s1=0,s2=0,s3=0,s4=0,max1=0,max2=0,w,min1=100000000,sum=0,n,m,i,j,k,v,l,r;

inline int read() {
	bool sym=0;
	int res=0;
	char ch=getchar();
	while(!isdigit(ch))sym |=(ch =='-'),ch=getchar();
	while(isdigit(ch)) res =(res<<3)+(res<<1)+(ch^48),ch=getchar();
	return sym ? -res : res;
}
void print(int x) {
	if(!x)return;
	print(x/10);
	putchar(x%10+'0');
}
int isPrime(int n) {
	float n_sqrt;
	if(n==1) return 0;
	if(n==2 || n==3) return 1;
	if(n%6!=1 && n%6!=5) return 0;
	n_sqrt=floor(sqrt((float)n));
	for(int i=5; i<=n_sqrt; i+=6) {
		if(n%(i)==0 | n%(i+2)==0) return 0;
	}
	return 1;

}
 double e;
 double a[100086],b[100008],c[1000086];
int main() {


	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n>>e;
	for(i=1; i<=n; i++)
		cin>>a[i];
	for(i=1; i<=n; i++) {
		b[i]=a[i]*2*pi;
		c[i]=2*(a[i]*sin(b[i]/a[i]));
	}

	for(i=1; i<=n; i++) {
			if(e>a[i]*2) {
			ans+=1;
			continue;
		}
		 double ss=2*a[i]*asin(e/(2*a[i]));//弧长
		//cout<<a[i]<<" "<<a[i]/e<<endl;
	
		//cout<<fixed<<setprecision(6)<<b[i];

		long double as=b[i]/ss;//周长

		if(abs(as-(ll)(as+1e-6))<1e-6) {
			ans+=(ll)(as+1e-6);
		//	cout<<"ss";
		} else
			ans+=floor(as+1e-6);
		//cout<<"as";
		//cout<<fixed<<setprecision(6)<<ss<<endl;
		//cout<<floor(as+1e-15)<<endl;
	}
	cout<<ans;
	return 0;
}

//mio lover

 

K (11). Lots of Liquid [ 提交记录 ] [ 问题 3624  ]


时间限制: 1000MS

空间限制: 1024MB

结果评判: Special Judge

正确/提交: 13 (12) / 74

官方标签:

用户标记:

题目描述

You work at a warehouse that sells chemical products, where somebody just placed an order for all the Boron Acetate Phosphoric Carbonate (BAPC) that you have in store. This liquid is stored in many separate lots, in cube-shaped containers, but your client requires the order to be delivered in a single cubeshaped container that fits all the BAPC liquid perfectly. What should be the size of this container?

输入描述

The input consists of:

  • One line with an integer n� (1≤n≤1051≤�≤105), the number of cube-shaped containers that you have in store.
  • One line with n� floating-point numbers c� (1≤c≤1091≤�≤109), the length of one of the sides for each of these containers.

输出描述

Output the length of one of the sides of the cube-shaped container that will contain all the BAPC liquid.

Your answer should have an absolute or relative error of at most 10−610−6.

样例

输入 复制

3
21 28 35

输出 复制

42

输入 复制

3
22.10 2022 1337

输出 复制

2200.6131345362505

输入 复制

3
1.41421356 2.718281828 3.1415926535

输出 复制

3.777901284526486

来源

BAPC 2022 Pre

cbrt  开立方根

#include<bits/stdc++.h>
using namespace std;
//#pragma GCC optimize(2)
#define  endl '\n'
#define lowbit(x) ((x)&-(x))
const int N=2e6+10;
typedef long long ll;
ll ans=0,n1,m1;
ll t=0,s1=0,s2=0,s3=0,s4=0,max1=0,max2=0,w,min1=100000000,sum=0,n,m,i,j,k,v,l,r;

inline int read() {
	bool sym=0;
	int res=0;
	char ch=getchar();
	while(!isdigit(ch))sym |=(ch =='-'),ch=getchar();
	while(isdigit(ch)) res =(res<<3)+(res<<1)+(ch^48),ch=getchar();
	return sym ? -res : res;
}
void print(int x) {
	if(!x)return;
	print(x/10);
	putchar(x%10+'0');
}
int isPrime(int n)
{	
	float n_sqrt;
    if(n==1) return 0;
	if(n==2 || n==3) return 1;
	if(n%6!=1 && n%6!=5) return 0;
	n_sqrt=floor(sqrt((float)n));
	for(int i=5;i<=n_sqrt;i+=6)
	{
	    if(n%(i)==0 | n%(i+2)==0) return 0;
	}
        return 1;
        
}
ll a[1000086];
ll ef(ll x){
	ll aa=0;
	ll mid;
	l=1;r=n;
	while(l<r){
		mid=(l+r)>>1;
		if(a[mid]==x)
		{
			aa=1;
			break;
		}
		 if(a[mid]<x)
		l=mid+1;
		else
		r=mid;
		
		
	}
	if(aa==0)
	return -1;
	return l;
}
double aa[100086];
int main() {


	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n;
	double ans=0;
	
for(i=1;i<=n;i++)
cin>>aa[i],ans=ans+aa[i]*aa[i]*aa[i];

cout<<fixed<<setprecision(7)<<cbrt(ans);

	return 0;
}

//mio lover

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

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

相关文章

第8章 未执行缓存的强制清理操作导致显示异常解决方案

1 异常产生原因&#xff1a; 由于未为Role实体定义相就的缓存强制销毁器类&#xff1a;Services.Customers.Caching.RoleCacheEventConsumer,从而导致Services.Events.EventPublisher.PublishAsync<TEvent>(TEvent event)中的 consumers实例为0,如下图所示&#xff1a; 2…

深入理解移动端布局:Viewport与设备像素比

在移动端开发中&#xff0c;了解和掌握不同设备的布局特点是非常重要的。本文将介绍两个关键概念&#xff1a;Viewport 和设备像素比&#xff08;DPR&#xff09;&#xff0c;帮助你更好地理解移动端布局。 一、什么是 Viewport&#xff1f; Viewport 是用户在浏览器中可见的网…

JS知识点(包括原型,原型对象,数据类型,数据类型的检测)

目录 1、JavaScript有哪些数据类型&#xff0c;它们的区别&#xff1f; 2、基本数据类型和引用数据类型地区别&#xff1a; 3、数据类型检测的方式有哪些: 4、判断数组的方式有那些&#xff1f; 5、null和undefined区别&#xff1a; 6、为什么typeOf null得到object而不是n…

22个提升生产力的工具推荐,稳了

子曰&#xff1a;工欲善其事&#xff0c;必先利其器。 本文给大家推荐22个提高生产力的工具&#xff0c;总有一款符合你的需求。&#x1f604;&#x1f604;&#x1f604; 提高生产效率工具推荐 滴答清单/Todoist文件检索利器&#xff1a;Everything文件管理软件-Allen Explor…

基于SpringBoot的大学生租房系统

背景 大学生租房系统设计的目的是建立一个高效的平台&#xff0c;采用简洁高效的Java语言与Mysql数据库等技术&#xff0c;设计和开发了本大学生租房系统设计。该系统主要实现了用户和房主通过系统注册用户&#xff0c;登录系统后能够编辑自己的个人信息、查看首页&#xff0c…

【电子学会】2023年03月图形化三级 -- 猫猫的儿童节

猫猫的儿童节 儿童节到了&#xff0c;给小猫绘制一个七彩的气球。 1. 准备工作 &#xff08;1&#xff09;保留小猫角色&#xff1b; &#xff08;2&#xff09;选择“Button2”角色&#xff0c;添加文字“开始”&#xff1b; &#xff08;3&#xff09;默认白色背景。 2…

有人抱怨Android找不到工作,有人却收到了好几个Offer~

不知不觉&#xff0c;往年常说的面试黄金季就这样过去了&#xff0c;相信现在很多人都会抱怨说&#xff0c;现在是市场岗位缩水裁员季。有人抱怨&#xff0c;自然也有人喜悦&#xff0c;有失业人群在&#xff0c;自然就业人群也有&#xff0c;有人想找一份合理工作很难&#xf…

C高级(day1)

作业: 初始工作路径不在家目录下&#xff0c;在不切换路径的情况下&#xff0c;在家目录下创建一个subdir目录&#xff0c;在subdir这个目录下&#xff0c;创建subdir1和subdir2&#xff0c;并且把/etc/passwd拷贝到subdir1中&#xff0c;把/etc/group文件拷贝到subdir2中&…

David Silver Lecture 5: Model-Free Control

1 Introduction 1.1 内容 上一章是对一个unknown MDP进行value function的预测&#xff0c;相当于policy evaluation。这一章是对unknown MDP找到一个最优的policy&#xff0c; optimise value function. 1.2 On and Off-Policy Learning On-policy learning learn on the…

[oeasy]python0050_动态类型_静态类型_编译_运行

动态类型_静态类型 回忆上次内容 上次了解了 帮助文档的 生成 开头的三引号注释 可以生成 帮助文档文档 可以写成网页 python3 本身 也有 在线的帮助手册 目前的程序 提高了 可读性 有什么方法 可以让程序 更可读么&#xff1f;&#x1f914; 变量名 首先 在变量名上想办…

opencv_c++学习(六)

一、视频加载与摄像头调用 视频、摄像头加载 VideoCapture(filename, CAP_ANY)对以上实例解释如下&#xff1a; 若读取的为本地视频&#xff0c;则filename为视频名称&#xff0c;若读取的是摄像头数据&#xff0c;则为int类型的摄像头id。 视频属性的获取 视频属性可以通过…

手握美团offer,结果背调红灯,哭了....

相信很多人都会包装简历&#xff0c;尤其是工作经历&#xff0c;不过也有人会填一下虚假的背景信息&#xff0c;比如公司leader或HR&#xff0c;小公司没有实力过多进行背调&#xff0c;但是大企业就不同了&#xff0c;他们有方法了解到实际的情况。 背调包括候选人以往的经历…

RHCSA之Linux的安装步骤

目录 RHCSA之环境配置 需要的软件 VMwareWorkstation安装 1.打开VMwareWorkstation安装包 2.进入安装界面点击下一步 3. 在我接受许可协议打 √ 后&#xff0c;点击下一步 4.在安装位置选择更改 5. 更改目标安装位置&#xff0c;点击确定 6.疯狂点击下一步 8.点击安装 9.…

DDIM模型代码实现

背景 前面已经出了一系列的文章来介绍大模型、多模态、生成模型。这篇文章会从更微观和更贴近实际工作的角度下手。会给大家介绍下前面讲到的diffuiosn model具体怎么来实现。文章结构如下&#xff1a; 1.介绍Diffusion Model包括哪些零部件&#xff0c;这些零部件衔接关系 …

jvm梳理

jvm是一个虚拟机&#xff0c;用于运行java代码&#xff0c;类的编译到运行主要为一下&#xff1a; 通过javac.exe编译&#xff0c;产生class文件&#xff0c;然后通过类加载器加入jvm&#xff1a; 类加载器&#xff1a; 引导加载器&#xff1a;使用c编写&#xff0c;负责java的…

【高项】项目绩效域,信息文档配置与变更,标准与规范管理(第4版教材第18-19,24章,项目规范知识)

文章目录 1、配置与变更管理1.1 信息文档1.2 配置管理1.3 变更管理 2、标准规范&#xff08;合同管理&#xff0c;知识产权&#xff09;2.1 合同管理2.2 知识产权和标准规范&#xff08;合同法&#xff0c;招投标法&#xff0c;著作权法&#xff0c;政府采购法&#xff09;2.3 …

力扣算题Day17

110.平衡二叉树(递归很难理解,思维很重要) 下面才是做二叉树的一种正确思维&#xff1a; copy他人运行代码&#xff1a; class TreeNode:def __init__(self, val0, leftNone, rightNone):self.val valself.left leftself.right right class Solution:def judgeDepth(self, …

自底向上分析概述

4-8自底向上的分析概述_哔哩哔哩_bilibili &#xff08;开始准备期末考试&#xff09;&#xff08;可菜&#xff09; 移入-规约分析&#xff1a; 每次归约的符号串称为“句柄”&#xff0c;一旦句柄在栈顶形成&#xff0c;我们立即将它规约&#xff0c;因此每一步规约都是最左…

[JAVA EE]创建Servlet——继承HttpServlet类笔记2

创建Servlet的方式之一&#xff1a;继承HttpServlet类&#xff08;经常使用&#xff09; 如果请求方式为get请求则调用doGet()方法; 如果请求方式为post请求则调用doPost()方法。 开发中通常不会在两个方法中写重复的代码&#xff0c;会造成代码冗余。 Request 一、获取请求…

[前端基础]websocket协议

(1)websocket websocket(简写为ws),是一种轻量化的协议,经过最开始的握手阶段以后,前后端之间允许自由地发送信息不受限制(建议发送json字符串).虽然理论上这个东西是属于协议内容,但是已经被疯狂封装得像框架一样了. websocket协议具有天然的优势处理前端多线程并发,并且只需…