Educational Codeforces Round 159 (Rated for Div. 2) 之 A - E 题

news2024/11/24 8:45:35

目录

  • [A. Binary Imbalance](https://codeforces.com/contest/1902/problem/A)
    • Description
    • Solution
    • Code
  • [B. Getting Points](https://codeforces.com/contest/1902/problem/B)
    • Description
    • Solution
    • Code
  • [C. Insert and Equalize](https://codeforces.com/contest/1902/problem/C)
    • Description
    • Solution
    • Code
  • [D. Robot Queries](https://codeforces.com/contest/1902/problem/D)
    • Description
    • Solution
    • Code
  • [E. Collapsing Strings](https://codeforces.com/contest/1902/problem/E)
    • Description
    • Solution
    • Code
  • 视频题解

A. Binary Imbalance

Description

You are given a string s s s, consisting only of characters ‘0’ and/or ‘1’.

In one operation, you choose a position i i i from 1 1 1 to ∣ s ∣ − 1 |s| - 1 s1, where ∣ s ∣ |s| s is the current length of string s s s. Then you insert a character between the i i i-th and the ( i + 1 ) (i+1) (i+1)-st characters of s s s. If s i = s i + 1 s_i = s_{i+1} si=si+1, you insert ‘1’. If s i ≠ s i + 1 s_i \neq s_{i+1} si=si+1, you insert ‘0’.

Is it possible to make the number of zeroes in the string strictly greater than the number of ones, using any number of operations (possibly, none)?

Input

The first line contains a single integer t t t ( 1 ≤ t ≤ 100 1 \le t \le 100 1t100) — the number of testcases.

The first line of each testcase contains an integer n n n ( 1 ≤ n ≤ 100 1 \le n \le 100 1n100).

The second line contains a string s s s of length exactly n n n, consisting only of characters ‘0’ and/or ‘1’.

Output

For each testcase, print “YES” if it’s possible to make the number of zeroes in s s s strictly greater than the number of ones, using any number of operations (possibly, none). Otherwise, print “NO”.

Example

input
3
2
00
2
11
2
10
output
YES
NO
YES

Note

In the first testcase, the number of zeroes is already greater than the number of ones.

In the second testcase, it’s impossible to insert any zeroes in the string.

In the third testcase, you can choose i = 1 i = 1 i=1 to insert a zero between the 1 1 1-st and the 2 2 2-nd characters. Since s 1 ≠ s 2 s_1 \neq s_2 s1=s2, you insert a ‘0’. The resulting string is “100”. It has two zeroes and only a single one, so the answer is “YES”.

Solution

具体见文后视频。


Code

#include <iostream>
#define int long long
 
using namespace std;
 
typedef pair<int, int> PII;
 
void solve()
{
	int N;
	string S;
 
	cin >> N >> S;
 
	S = ' ' + S;
	int Count = 0;
	for (int i = 1; i <= N; i ++)
	{
		Count += (S[i] == '0');
		if (i < N && S[i] != S[i + 1])
		{
			cout << "YES" << endl;
			return;
		}
	}
 
	if (Count > (N - Count)) cout << "YES" << endl;
	else cout << "NO" << endl;
}
 
signed main()
{
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(0);
 
	int Data;
 
	cin >> Data;
 
	while (Data --)
		solve();
 
	return 0;
}

B. Getting Points

Description

Monocarp is a student at Berland State University. Due to recent changes in the Berland education system, Monocarp has to study only one subject — programming.

The academic term consists of n n n days, and in order not to get expelled, Monocarp has to earn at least P P P points during those n n n days. There are two ways to earn points — completing practical tasks and attending lessons. For each practical task Monocarp fulfills, he earns t t t points, and for each lesson he attends, he earns l l l points.

Practical tasks are unlocked “each week” as the term goes on: the first task is unlocked on day 1 1 1 (and can be completed on any day from 1 1 1 to n n n), the second task is unlocked on day 8 8 8 (and can be completed on any day from 8 8 8 to n n n), the third task is unlocked on day 15 15 15, and so on.

Every day from 1 1 1 to n n n, there is a lesson which can be attended by Monocarp. And every day, Monocarp chooses whether to study or to rest the whole day. When Monocarp decides to study, he attends a lesson and can complete no more than 2 2 2 tasks, which are already unlocked and not completed yet. If Monocarp rests the whole day, he skips a lesson and ignores tasks.

Monocarp wants to have as many days off as possible, i. e. he wants to maximize the number of days he rests. Help him calculate the maximum number of days he can rest!

Input

The first line contains a single integer t c tc tc ( 1 ≤ t c ≤ 1 0 4 1 \le tc \le 10^4 1tc104) — the number of test cases. The description of the test cases follows.

The only line of each test case contains four integers n n n, P P P, l l l and t t t ( 1 ≤ n , l , t ≤ 1 0 9 1 \le n, l, t \le 10^9 1n,l,t109; 1 ≤ P ≤ 1 0 18 1 \le P \le 10^{18} 1P1018) — the number of days, the minimum total points Monocarp has to earn, the points for attending one lesson and points for completing one task.

It’s guaranteed for each test case that it’s possible not to be expelled if Monocarp will attend all lessons and will complete all tasks.

Output

For each test, print one integer — the maximum number of days Monocarp can rest without being expelled from University.

Example

input
5
1 5 5 2
14 3000000000 1000000000 500000000
100 20 1 10
8 120 10 20
42 280 13 37
output
0
12
99
0
37

Solution

具体见文后视频。


Code

#include <iostream>
#include <cmath>
#define int long long
 
using namespace std;
 
typedef pair<int, int> PII;
 
void solve()
{
	int N, P, L, T;
 
	cin >> N >> P >> L >> T;
 
	int Day = (N - 1) / 7 + 1;
	int Score = (Day / 2) * (L + 2 * T);
	if (Score >= P) cout << N - (int)ceil(P * 1.0 / (L + 2 * T)) << endl;
	else
	{
		if (Day & 1) Score += L + T;
		if (Score >= P) cout << N - (Day / 2 + 1) << endl;
		else
		{
			P -= Score;
			cout << N - (P + L - 1) / L - (Day / 2 + (Day & 1)) << endl;
		}
	}
}
 
signed main()
{
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(0);
 
	int Data;
 
	cin >> Data;
 
	while (Data --)
		solve();
 
	return 0;
}

C. Insert and Equalize

Description

You are given an integer array a 1 , a 2 , … , a n a_1, a_2, \dots, a_n a1,a2,,an, all its elements are distinct.

First, you are asked to insert one more integer a n + 1 a_{n+1} an+1 into this array. a n + 1 a_{n+1} an+1 should not be equal to any of a 1 , a 2 , … , a n a_1, a_2, \dots, a_n a1,a2,,an.

Then, you will have to make all elements of the array equal. At the start, you choose a positive integer x x x ( x > 0 x > 0 x>0). In one operation, you add x x x to exactly one element of the array. Note that x x x is the same for all operations.

What’s the smallest number of operations it can take you to make all elements equal, after you choose a n + 1 a_{n+1} an+1 and x x x?

Input

The first line contains a single integer t t t ( 1 ≤ t ≤ 1 0 4 1 \le t \le 10^4 1t104) — the number of testcases.

The first line of each testcase contains a single integer n n n ( 1 ≤ n ≤ 2 ⋅ 1 0 5 1 \le n \le 2 \cdot 10^5 1n2105).

The second line contains n n n integers a 1 , a 2 , … , a n a_1, a_2, \dots, a_n a1,a2,,an ( − 1 0 9 ≤ a i ≤ 1 0 9 -10^9 \le a_i \le 10^9 109ai109). All a i a_i ai are distinct.

The sum of n n n over all testcases doesn’t exceed 2 ⋅ 1 0 5 2 \cdot 10^5 2105.

Output

For each testcase, print a single integer — the smallest number of operations it can take you to make all elements equal, after you choose integers a n + 1 a_{n+1} an+1 and x x x.

Example

input
3
3
1 2 3
5
1 -19 17 -3 -15
1
10
output
6
27
1

Solution

具体见文后视频。


Code

#include <iostream>
#include <algorithm>
#define int long long

using namespace std;

typedef pair<int, int> PII;

const int SIZE = 2e5 + 10;

int N;
int A[SIZE], Minus[SIZE];

void solve()
{
	cin >> N;

	int Max = -1e18;
	for (int i = 1; i <= N; i ++)
		cin >> A[i], Max = max(A[i], Max);

	int X = 0;
	for (int i = 1; i <= N; i ++)
		X = __gcd(X, Max - A[i]);

	if (X == 0)
	{
		cout << 1 << endl;
		return;
	}

	sort(A + 1, A + 1 + N);

	A[N + 1] = A[1] - X;
	for (int i = N - 1; i >= 1; i --)
		if (A[i + 1] - A[i] > X)
		{
			A[N + 1] = A[i + 1] - X;
			break;
		}

	int Result = 0;
	for (int i = 1; i <= N + 1; i ++)
		Result += (Max - A[i]) / X;

	cout << Result << endl;
}

signed main()
{
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(0);

	int Data;

	cin >> Data;

	while (Data --)
		solve();

	return 0;
}

D. Robot Queries

Description

There is an infinite 2 2 2-dimensional grid. Initially, a robot stands in the point ( 0 , 0 ) (0, 0) (0,0). The robot can execute four commands:

  • U — move from point ( x , y ) (x, y) (x,y) to ( x , y + 1 ) (x, y + 1) (x,y+1);
  • D — move from point ( x , y ) (x, y) (x,y) to ( x , y − 1 ) (x, y - 1) (x,y1);
  • L — move from point ( x , y ) (x, y) (x,y) to ( x − 1 , y ) (x - 1, y) (x1,y);
  • R — move from point ( x , y ) (x, y) (x,y) to ( x + 1 , y ) (x + 1, y) (x+1,y).

You are given a sequence of commands s s s of length n n n. Your task is to answer q q q independent queries: given four integers x x x, y y y, l l l and r r r; determine whether the robot visits the point ( x , y ) (x, y) (x,y), while executing a sequence s s s, but the substring from l l l to r r r is reversed (i. e. the robot performs commands in order s 1 s 2 s 3 … s l − 1 s r s r − 1 s r − 2 … s l s r + 1 s r + 2 … s n s_1 s_2 s_3 \dots s_{l-1} s_r s_{r-1} s_{r-2} \dots s_l s_{r+1} s_{r+2} \dots s_n s1s2s3sl1srsr1sr2slsr+1sr+2sn).

Input

The first line contains two integers n n n and q q q ( 1 ≤ n , q ≤ 2 ⋅ 1 0 5 1 \le n, q \le 2 \cdot 10^5 1n,q2105) — the length of the command sequence and the number of queries, respectively.

The second line contains a string s s s of length n n n, consisting of characters U, D, L and/or R.

Then q q q lines follow, the i i i-th of them contains four integers x i x_i xi, y i y_i yi, l i l_i li and r i r_i ri ( − n ≤ x i , y i ≤ n -n \le x_i, y_i \le n nxi,yin; 1 ≤ l ≤ r ≤ n 1 \le l \le r \le n 1lrn) describing the i i i-th query.

Output

For each query, print YES if the robot visits the point ( x , y ) (x, y) (x,y), while executing a sequence s s s, but the substring from l l l to r r r is reversed; otherwise print NO.

Example

input
8 3
RDLLUURU
-1 2 1 7
0 0 3 4
0 1 7 8
output
YES
YES
NO
input
4 2
RLDU
0 0 2 2
-1 -1 2 3
output
YES
NO
input
10 6
DLUDLRULLD
-1 0 1 10
-1 -2 2 5
-4 -2 6 10
-1 0 3 9
0 1 4 7
-3 -1 5 8
output
YES
YES
YES
NO
YES
YES

Solution

具体见文后视频。


Code

#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
#define int long long

using namespace std;

typedef pair<int, int> PII;

int N, Q;
string S;
std::map<char, int> dx, dy;
std::map<PII, int> Exist1, Exist2;
std::vector<PII> Point1, Point2;
std::map<PII, vector<int>> Id1, Id2;

bool Check(int X, int Y, int L, int R)
{
	auto P1 = Point1[L - 1];
	auto P2 = Point2[N - R];
	
	X += P2.first - P1.first;
	Y += P2.second - P1.second;

	int P = lower_bound(Id2[{X, Y}].begin(), Id2[{X, Y}].end(), N - R) - Id2[{X, Y}].begin();
	if (Exist2.count({X, Y}) && Id2[{X, Y}][P] >= N - R + 1 && Id2[{X, Y}][P] <= N - L + 1) return 1;
	return 0;
}

signed main()
{
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(0);

	dy['U'] = 1, dy['D'] = -1, dy['L'] = 0, dy['R'] = 0;
	dx['U'] = 0, dx['D'] = 0, dx['L'] = -1, dx['R'] = 1;

	cin >> N >> Q >> S;

	string T = S;
	S = ' ' + S;
	reverse(T.begin(), T.end());
	T = ' ' + T;
	int X1 = 0, Y1 = 0, X2 = 0, Y2 = 0;
	Exist1[{X1, Y1}] = Exist2[{X2, Y2}] = 1;
	Id1[{X1, Y1}].push_back(0), Id2[{X2, Y2}].push_back(0);
	Point1.push_back({X1, Y1}), Point2.push_back({X2, Y2});
	for (int i = 1; i <= N; i ++)
	{
		X1 += dx[S[i]], Y1 += dy[S[i]];
		X2 += dx[T[i]], Y2 += dy[T[i]];
		Id1[{X1, Y1}].push_back(i);
		Id2[{X2, Y2}].push_back(i);
		Exist1[{X1, Y1}] = Exist2[{X2, Y2}] = 1;
		Point1.push_back({X1, Y1});
		Point2.push_back({X2, Y2});
	}

	// cout << "Check:";
	// for (auto c : Id2[{-2, -1}])
	// 	cout << c << ' ';
	// cout << endl;

	while (Q --)
	{
		int X, Y, L, R;

		cin >> X >> Y >> L >> R;

		if (Exist1.count({X, Y}) && *Id1[{X, Y}].begin() < L) cout << "YES" << endl;
		else if (Exist1.count({X, Y}) && Id1[{X, Y}].back() > R) cout << "YES" << endl;
		else if (Check(X, Y, L, R)) cout << "YES" << endl;
		else cout << "NO" << endl;
	}

	return 0;
}

E. Collapsing Strings

Description

You are given n n n strings s 1 , s 2 , … , s n s_1, s_2, \dots, s_n s1,s2,,sn, consisting of lowercase Latin letters. Let ∣ x ∣ |x| x be the length of string x x x.

Let a collapse C ( a , b ) C(a, b) C(a,b) of two strings a a a and b b b be the following operation:

  • if a a a is empty, C ( a , b ) = b C(a, b) = b C(a,b)=b;
  • if b b b is empty, C ( a , b ) = a C(a, b) = a C(a,b)=a;
  • if the last letter of a a a is equal to the first letter of b b b, then C ( a , b ) = C ( a 1 , ∣ a ∣ − 1 , b 2 , ∣ b ∣ ) C(a, b) = C(a_{1,|a|-1}, b_{2,|b|}) C(a,b)=C(a1,a1,b2,b), where s l , r s_{l,r} sl,r is the substring of s s s from the l l l-th letter to the r r r-th one;
  • otherwise, C ( a , b ) = a + b C(a, b) = a + b C(a,b)=a+b, i. e. the concatenation of two strings.

Calculate ∑ i = 1 n ∑ j = 1 n ∣ C ( s i , s j ) ∣ \sum\limits_{i=1}^n \sum\limits_{j=1}^n |C(s_i, s_j)| i=1nj=1nC(si,sj).

Input

The first line contains a single integer n n n ( 1 ≤ n ≤ 1 0 6 1 \le n \le 10^6 1n106).

Each of the next n n n lines contains a string s i s_i si ( 1 ≤ ∣ s i ∣ ≤ 1 0 6 1 \le |s_i| \le 10^6 1si106), consisting of lowercase Latin letters.

The total length of the strings doesn’t exceed 1 0 6 10^6 106.

Output

Print a single integer — ∑ i = 1 n ∑ j = 1 n ∣ C ( s i , s j ) ∣ \sum\limits_{i=1}^n \sum\limits_{j=1}^n |C(s_i, s_j)| i=1nj=1nC(si,sj).

Example

input
3
aba
ab
ba
output
20
input
5
abab
babx
xab
xba
bab
output
126

Solution

具体见文后视频。


Code

#include <iostream>
#include <vector>
#include <algorithm>
#define int long long

using namespace std;

typedef pair<int, int> PII;

const int SIZE = 1e6 + 10;

int N;
string S[SIZE];
int Trie[SIZE][26], Count[SIZE], idx = 0;
int Point[SIZE], k;

void Insert(string S)
{
	int p = 0;
	for (int i = 0; i < S.size(); i ++)
	{
		int c = S[i] - 'a';
		if (!Trie[p][c]) Trie[p][c] = ++ idx;
		p = Trie[p][c];
		Count[p] ++;
	}
}

int Query(string S)
{
	int p = 0, Depth = 0, Cnt = 0;
	k = 0;
	for (int i = 0; i < S.size(); i ++)
	{
		int c = S[i] - 'a';
		if (!Trie[p][c]) break;
		p = Trie[p][c];
		Point[ ++ k] = p;
	}

	int Result = 0, Max = 0;
	for (int i = k; i >= 1; i --)
	{
		Result += (min((int)S.size(), i) * 2) * (Count[Point[i]] - Max);
		Max = Count[Point[i]];
	}

	return Result;
}

signed main()
{
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(0);

	cin >> N;

	int Len = 0;
	for (int i = 1; i <= N; i ++)
	{
		cin >> S[i];
		string Tmp = S[i];
		reverse(Tmp.begin(), Tmp.end());
		Insert(Tmp);
		Len += (int)S[i].size();
	}

	int Result = 0;
	for (int i = 1; i <= N; i ++)
	{
		int Minus = Query(S[i]);
		Result += Len + (int)S[i].size() * N - Minus;
	}

	cout << Result << endl;

	return 0;
}

视频题解

Educational Codeforces Round 159 (Rated for Div. 2) 之 A-E题


最后祝大家早日在这里插入图片描述

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

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

相关文章

C语言--每日选择题--Day37

第一题 1. 有以下说明语句&#xff1a;则下面引用形式错误的是&#xff08;&#xff09; struct Student {int num;double score; };struct Student stu[3] {{1001,80}, {1002,75}, {1003,91}} struct Student *p stu; A&#xff1a;p->num B&#xff1a;(p).num C&#…

华为无线配置模板 一

华为无线配置模板 一 拓扑图1.配置SwitchA和AC&#xff0c;使AP与AC之间能够传输CAPWAP报文2.配置AC作为DHCP服务器&#xff0c;为STA和AP分配IP地址3.配置AP上线4.配置WLAN业务参数5.验证配置结果 拓扑图 采用如下的思路配置小型网络的WLAN基本业务&#xff1a;1.配置AP、AC、…

百度Apollo新版本Beta技术沙龙参会体验

在自动驾驶领域&#xff0c;百度的Apollo一直是业界开源的标杆。其持续升级和创新的开源项目为整个自动驾驶行业树立了典范&#xff0c;不仅推动了技术的发展&#xff0c;也为广大的社区开发者们提供了学习和参考的范本。最近百度发布了Apollo新的Beta版本&#xff0c; 新版本B…

代码随想录算法训练营 ---第五十六天

今天同样是 动态规划&#xff1a;编辑距离问题&#xff01; 第一题&#xff1a; 简介&#xff1a; 本题有两个思路&#xff1a; 1.求出最长公共子串&#xff0c;然后返还 word1.length()word2.length()-2*dp[word1.size()][word2.size()] 本思路解法与求最长公共子串相同&…

财报解读:立足海外音视频直播战场,欢聚的BIGO盾牌还需加强?

如今&#xff0c;音视频社交平台出海早已不是新鲜事&#xff0c;随着时间推移&#xff0c;一批“坚定全球化不动摇”的企业也实现突围&#xff0c;站在出海舞台中心。 若提到中国企业出海范本&#xff0c;欢聚集团定是绕不开的存在。作为最早一批出海的中国互联网企业&#xf…

服务器数据恢复—重装系统导致XFS文件系统分区丢失的数据恢复案例

服务器数据恢复环境&#xff1a; 服务器使用磁盘柜RAID卡搭建了一组riad5磁盘阵列。服务器上层分配了一个LUN&#xff0c;划分了两个分区&#xff1a;sdc1分区和sdc2分区。通过LVM扩容的方式&#xff0c;将sdc1分区加入到了root_lv中&#xff1b;sdc2分区格式化为XFS文件系统。…

github使用方法【附安装包】

如果你是一枚Coder&#xff0c;但是你不知道Github&#xff0c;那么我觉的你就不是一个菜鸟级别的Coder&#xff0c;因为你压根不是真正Coder&#xff0c;你只是一个Code搬运工。说明你根本不善于突破自己&#xff01;为什么这么说原因很简单&#xff0c;很多优秀的代码以及各种…

Codeforces Round 913 (Div. 3)(A~G)

1、编程模拟 2、栈模拟 3、找规律&#xff1f;&#xff08;从终止状态思考&#xff09; 4、二分 5、找规律&#xff0c;数学题 6、贪心&#xff08;思维题&#xff09; 7、基环树 A - Rook 题意&#xff1a; 直接模拟 // Problem: A. Rook // Contest: Codeforces - C…

附录B 存储次层次结构回顾

1. 引言 缓存是指地址离开处理器后遇到的最高级或第一级存储器层次结构。 如果处理器在缓存中找到了所请求的数据项&#xff0c;就说发生了缓存命中。如果处理器没有在缓存中找到所请求的数据项&#xff0c;就说发生了缓存缺失。此时&#xff0c;包含所请求的字的固定大小的数…

EPWM初学笔记

时钟 PCLKCR0 PCLKCR1 EPWM总体预览 三部分就可以简单的使用EPWM 时基模块&#xff0c;比较模块&#xff0c;动作限定模块 时基模块 TBCTL时基控制寄存器 TBCTR计数寄存器 TBPHS相位寄存器 TBPRD周期寄存器 比较模块 CMPCTL比较控制寄存器 影子模式&#xff0c;加载模式 CMP…

C语言进阶之路-指针、数组等混合小boss篇

目录 一、学习目标&#xff1a; 二、指针、数组的组合技能 引言 指针数组 语法 数组指针 三、勇士闯关秘籍 四、大杂脍 总结 一、学习目标&#xff1a; 知识点&#xff1a; 明确指针数组的用法和特点掌握数组指针的用法和特点回顾循环等小怪用法和特点 二、指针、数…

avamar DD组合的备份故障

证书过期导致的失败 先是显示DD页面崩了 Avamar DD 集成 — DD 在 Avamar AUI/GUI 中显示红色解决方案路径 | Dell 中国 排查了一番 尝试了重启DD 然而并没用 然后尝试更新证书 页面确实起来了 但是证书还是更新失败 确定原因还是因为版本太低而宣告失败 证书更新失败 …

自助POS收银机-亿发互联网收银解决方案助力零售业迎接数字经济挑战

零售业作为中国经济的主动脉&#xff0c;扮演着至关重要的角色。最新发布的《中国线下零售小店数字化转型报告》揭示了当前线下零售小店所面临的多重痛点&#xff0c;经营方式传统、滞后的内部管理和营销模式&#xff0c;以及缺乏消费数据等问题&#xff0c;这些痛点都指明&…

C语言 - 字符函数和字符串函数

系列文章目录 文章目录 系列文章目录前言1. 字符分类函数islower 是能够判断参数部分的 c 是否是⼩写字⺟的。 通过返回值来说明是否是⼩写字⺟&#xff0c;如果是⼩写字⺟就返回⾮0的整数&#xff0c;如果不是⼩写字⺟&#xff0c;则返回0。 2. 字符转换函数3. strlen的使⽤和…

一文读懂中间件

前言&#xff1a;在程序猿的日常工作中&#xff0c; 经常会提到中间件&#xff0c;然而大家对中间件的理解并不一致&#xff0c;导致了一些不必要的分歧和误解。“中间件”一词被用来描述各种各样的软件产品&#xff0c;在不同文献中有着许多不同的中间件定义&#xff0c;包括操…

住宅IP代理如何选择?如何识别高质量的住宅IP代理服务商

选择海外住宅IP代理时&#xff0c;了解其评估标准、优势和实际应用至关重要。住宅IP代理不同于其他类型的代理&#xff0c;它提供更高的匿名性和较低的封禁风险&#xff0c;适用于多种网络场景。本指南将深入分析如何根据服务质量、速度、安全性和客户支持等关键因素&#xff0…

数学建模之相关系数模型及其代码

发现新天地&#xff0c;欢迎访问小铬的主页(www.xiaocr.fun) 引言 本讲我们将介绍两种最为常用的相关系数&#xff1a;皮尔逊pearson相关系数和斯皮尔曼spearman等级相关系数。它们可用来衡量两个变量之间的相关性的大小&#xff0c;根据数据满足的不同条件&#xff0c;我们要…

uniapp 微信小程序连接蓝牙卡死 uni.onNeedPrivacyAuthorization

解决方法&#xff0c;需要同意隐私保护协议&#xff0c;否则不能开启蓝牙权限和定位权限&#xff0c;会导致连接蓝牙失败

【Vue】使用cmd命令创建vue项目

上一篇&#xff1a; node的安装与配置 https://blog.csdn.net/m0_67930426/article/details/134562278?spm1001.2014.3001.5502 目录 一.创建空文件夹专门存放vue项目 二. 查看node , npm 和vue脚手架的版本 三.安装vue脚手架 四.创建vue项目 五.运行项目 一.创建空文件…

在Windows11(WSL)中如何迁移Docker

前言&#xff1a; 在Windows 10中Docker是默认安装到WSL中的&#xff0c;而安装到WSL中的任意分发版都是默认放在C盘中的。这样会让我们的C盘资源极度紧张&#xff0c;而且也限制了Docker的镜像数量。 迁移步骤 假设我有一个临时目录“D:\docker”用来存放临时文件&#xff0c;…