今日codeforces刷题(1)

news2025/2/22 17:53:08

一、前言

新栏目,每隔几天就保质保量地刷个10道codeforces题左右的样子

筛选1200-1500难度的题,然后按通过题目的人数降序排列的前10题

二、题目总览

三、具体题目

3.1 25A. IQ test

我的代码

看奇数出现的次数为1还是偶数出现的次数为1,然后输出与其他数奇偶性不同的数的下标

// Problem: A. IQ test
// Contest: Codeforces - Codeforces Beta Round 25 (Div. 2 Only)
// URL: https://codeforces.com/problemset/problem/25/A
// Memory Limit: 256 MB
// Time Limit: 2000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	int n;std::cin >> n;
	std::vector<int> v;
	int cnt0 = 0,cnt1 = 0;
	for(int i = 0;i<n;++i){
		int num;std::cin >> num;
		v.emplace_back(num);
		if(num&1) ++cnt1;
		else ++cnt0;
	}
	if(cnt1==1){
		for(int i = 0;i<n;++i){
			if(v[i]&1){
				std::cout << i+1 << '\n';
				break;
			}
		}
	}
	if(cnt0==1){
		for(int i = 0;i<n;++i){
			if((v[i]&1)==0){
				std::cout << i+1 << '\n';
				break;
			}
		}
	}
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.2 4C. Registration system

我的代码

注意不能无脑用std::unordered_set<std::string>来做,会超时;没有出现过的字符串,给cnt数组初始化为0,出现过的字符串根据它出现过的次数来设置cnt

// Problem: C. Registration system
// Contest: Codeforces - Codeforces Beta Round 4 (Div. 2 Only)
// URL: https://codeforces.com/problemset/problem/4/C
// Memory Limit: 64 MB
// Time Limit: 5000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	int n;std::cin >> n;
	std::set<std::string> set;
	std::unordered_map<std::string,int> map;
	int idx = 1;
	std::vector<int> cnt(N,0);
	for(int i = 0;i<n;++i){
		std::string s;std::cin >> s;
		if(set.find(s)==set.end()){
			set.insert(s);
			map[s] = idx++;
			cnt[map[s]];
			std::cout << "OK\n";
		}else{
			int cur = cnt[map[s]];
			std::string tmp = s+std::to_string(++cnt[map[s]]);
			std::cout << tmp << '\n';
		}
	}
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.3 230B. T-primes

我的代码

预处理出所有满足条件的数放进数组ans中,对于每组数据,如果可以使用二分查找到ans中相同的值,那么就输出YES否则输出NO。判断T-prime的方法:先使用欧拉筛 筛出所有1~1e6的所有素数,那么这些素数的平方都是T-prime。因为我们发现只有素数的平方才会是一个T-prime,因为xi最大为1e12,因此我们需要筛出1e6的所有素数。欧拉筛当然用了jiangly鸽鸽的模板。不用二分极有可能超时,不过我没试过

// Problem: B. T-primes
// Contest: Codeforces - Codeforces Round 142 (Div. 2)
// URL: https://codeforces.com/problemset/problem/230/B
// Memory Limit: 256 MB
// Time Limit: 2000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

std::vector<int> minp, primes;

void sieve(int n) {
    minp.assign(n + 1, 0);
    primes.clear();
    
    for (int i = 2; i <= n; i++) {
        if (minp[i] == 0) {
            minp[i] = i;
            primes.push_back(i);
        }
        
        for (auto p : primes) {
            if (i * p > n) {
                break;
            }
            minp[i * p] = p;
            if (p == minp[i]) {
                break;
            }
        }
    }
}

bool isprime(int n) {
    return minp[n] == n;
}

std::vector<i64> ans;
void pre(){
	for(i64 i = 1;i<=1000000;++i){
		if(isprime(i)){
			ans.emplace_back(i*i);
		}
	}
}

void solve(){
	int n;i64 num;std::cin >> n;
	for(int i = 0;i<n;++i){
		std::cin >> num;
		if(*std::lower_bound(ans.begin(),ans.end(),num)==num){
			std::cout << "YES" << '\n';
		}else{
			std::cout << "NO" << '\n';
		}
	}
}
int main(){
    std::cin.tie(nullptr)->sync_with_stdio(false);

	sieve(1000010);
	pre();
    int t = 1;
    // std::cin >> t;
    for(int ti = 0;ti<t;++ti) {
        solve();
    }
	
    return 0;
}

3.4 492B. Vanya and Lanterns

我的代码

先对a数组排序,然后我们发现只需要找到a[0]-0、(a[1]-a[0])/2、(a[2]-a[1])/2、...、(a[n-1]-a[n-2])/2、l-a[n-1]中的最大值即可,注意中间除以2的时候记得强转成double

// Problem: B. Vanya and Lanterns
// Contest: Codeforces - Codeforces Round 280 (Div. 2)
// URL: https://codeforces.com/problemset/problem/492/B
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;
int n,l;
void solve(){
	std::cin >> n >> l;
	std::vector<int> v;
	for(int i = 0;i<n;++i){
		int num;std::cin >> num;
		v.emplace_back(num);
	}
	std::sort(v.begin(),v.end());
	double max_diff = 0;int max_idx = -1;
	if(1.0*v[0]>max_diff){
		max_diff = v[0];
		max_idx = 0;
	}
	for(int i = 0;i<n-1;++i){
		if(1.0*(v[i+1]-v[i])/2>max_diff){
			max_diff = 1.0*(v[i+1]-v[i])/2;
			max_idx = i+1;
		}
	}
	if(1.0*(l-v[n-1])>max_diff){
		max_diff = 1.0*(l-v[n-1]);
		max_idx = n;
	}
	std::cout << std::fixed << std::setprecision(12) << max_diff << '\n';
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.5 189A. Cut Ribbon

我的代码1

暴力枚举剪了i个a和j个b的情况,最后剪了多少个c可以用O(1)的时间复杂度间接算出来,那么最终的时间复杂度是O(n^2),不会超时

// Problem: A. Cut Ribbon
// Contest: Codeforces - Codeforces Round 119 (Div. 2)
// URL: https://codeforces.com/problemset/problem/189/A
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	i64 n,a,b,c;std::cin >> n >> a >> b >> c;
	i64 ans = 0;
	for(i64 i = 0;i<=4000;++i){//剪出i个a
		if(i*a>n) break;
		for(i64 j = 0;j<=4000;++j){//剪出j个b那么剩余(n-i*a-j*b)/c个c
			if(i*a+j*b>n) break;
			i64 rest = n-i*a-j*b;
			if(rest%c==0){
				ans = std::max(ans,i+j+(rest/c));
			} 
		}
	}
	std::cout << ans << '\n';
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

我的代码2

完全背包实现,我写这题的时候,第一想法居然还是暴力枚举

// Problem: A. Cut Ribbon
// Contest: Codeforces - Codeforces Round 119 (Div. 2)
// URL: https://codeforces.com/problemset/problem/189/A
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	i64 n;
	std::array<i64,5> a;
	std::cin >> n >> a[1] >> a[2] >> a[3];
	std::vector<i64> dp(4e3+5,-INF);
	dp[0] = 0;
	for(int i = 1;i<=3;++i){
		for(int j = a[i];j<=n;++j){
			dp[j] = std::max(dp[j],dp[j-a[i]]+1);
		}
	}
	std::cout << dp[n] << '\n';
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.6 466A. Cheap Travel

我的代码

没啥好说的,模拟题,我直接暴力枚举了

// Problem: A. Cheap Travel
// Contest: Codeforces - Codeforces Round 266 (Div. 2)
// URL: https://codeforces.com/problemset/problem/466/A
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	i64 n,m,a,b;std::cin >> n >> m >> a >> b;
	i64 ans = INF;
	// ans = std::min(ans,a*n);
	for(int i = 0;i<=n;++i){
		ans = std::min(ans,i*b+(n-std::min(n,m*i))*a);
	}
	std::cout << ans << '\n';
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.7 455A. Boredom

我的代码

应该是这10道题里最难的题了

线性dp,dp[i]存的是考虑了前i个数字,可以获得的最高分数。dp[i]可以从dp[i-1]和dp[i-2]转移,具体要看选不选i-1这个数字(注意不是下标),如果不选,则dp[i] = dp[i-2]+i*cnt(i);如果选,那么dp[i] = dp[i-1]。注意数据范围,需要开long long

// Problem: A. Boredom
// Contest: Codeforces - Codeforces Round 260 (Div. 1)
// URL: https://codeforces.com/problemset/problem/455/A
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	int n;std::cin >> n;
	std::map<i64,i64> mp;
	std::vector<i64> a(N,0);
	i64 max = 0;
	for(i64 i = 1;i<=n;++i){
		std::cin >> a[i];
		++mp[a[i]];
		max = std::max(max,a[i]);
	}
	std::vector<i64> dp(max+5,0);
	dp[1]=mp[1];
	for(i64 i = 2;i<=max;++i){
		dp[i] = std::max(dp[i-1],dp[i-2]+mp[i]*i);
	}
	std::cout << dp[max] << '\n';
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.8 1352C. K-th Not Divisible by n

我的代码

简单的思维题,见代码

// Problem: C. K-th Not Divisible by n
// Contest: Codeforces - Codeforces Round 640 (Div. 4)
// URL: https://codeforces.com/problemset/problem/1352/C
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	i64 n,k;std::cin >> n >> k;
	if(k%(n-1)!=0){
		i64 cnt = k/(n-1);
		i64 ans = cnt*n+(k-cnt*(n-1));
		std::cout << ans << '\n';
	}else{
		i64 ans = k/(n-1)*n-1;
		std::cout << ans << '\n';
	}
	
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.9 279B. Books

我的代码

双指针的题,我用双端队列实现的(普通队列就可以了),是同样的道理,因为是连续的,所以,能看几本书就先看几本书,如果第一次出现t时间内看不完某一本书,那么也先把它加进队尾,然后一直弹出队头,直到当前所用的时间小于等于t,然后比较队列大小

// Problem: B. Books
// Contest: Codeforces - Codeforces Round 171 (Div. 2)
// URL: https://codeforces.com/problemset/problem/279/B
// Memory Limit: 256 MB
// Time Limit: 2000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	i64 n,t;std::cin >> n >> t;
	std::vector<i64> a(n+5,0);
	for(int i = 1;i<=n;++i) std::cin >> a[i];
	std::deque<i64> deq;
	i64 sum=0,ans=0;
	for(int i = 1;i<=n;++i){
		sum+=a[i];
		deq.emplace_back(a[i]);
		while(sum>t&&!deq.empty()){
			sum-=deq.front();
			deq.pop_front();
		}
		ans = std::max(ans,i64(deq.size()));
	}
	std::cout << ans << '\n';
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

3.10 514A. Chewbaсca and Number

我的代码1

dfs暴搜,每一位都有换和不换两种状态。注意特殊情况,一个要求答案为正数(0不是正数),一个答案要跟原数位数一致(WA好多次后去看了后台测试点才发现的)。至于时间复杂度,dfs递归的时间复杂度是O(2^len(n))即最坏是2^18的数量级,dfs每次结束前还需要O(len(n))的时间复杂度处理字符串,因此最终的时间复杂度为O(len(n)*2^len(n))约等于18*(2^18)约等于5e7的数量级,不会超时

// Problem: A. Chewbaсca and Number
// Contest: Codeforces - Codeforces Round 291 (Div. 2)
// URL: https://codeforces.com/problemset/problem/514/A
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;
i64 ans = 1e18+7;
i64 len;
std::string num;
std::vector<int> a(25,0);
void dfs(int u){
	if(u==len+1){
		std::string s;
		for(int i = 0;i<len;++i){
			if(a[i+1]){
				s+=char('9'-num[i]+'0');
			}else{
				s+=num[i];
			}
		}
		if(s[0]=='0') return;
		if(std::stoll(s)==0LL) return;
		ans = std::min(ans,std::stoll(s));
		return;
	}
	a[u] = 0;
	dfs(u+1);
	a[u] = 1;
	dfs(u+1);
}

void solve(){
	std::cin >> num;
	len = num.size();
	ans = std::stoll(num);
	dfs(1);
	std::cout << ans << '\n';
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

我的代码2

贪心模拟,如果第一位反转后是'0',那么就不反转,对于后面的数字,如果反转变得更小那么就反转,否则不反转。再特判这个数反转后是0的情况,直接输出9,因为只有9反转后是0,且0不是正数

// Problem: A. Chewbaсca and Number
// Contest: Codeforces - Codeforces Round 291 (Div. 2)
// URL: https://codeforces.com/problemset/problem/514/A
// Memory Limit: 256 MB
// Time Limit: 1000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include <bits/stdc++.h>
using i64 = long long;
using pii = std::pair<int,int>;
constexpr int N = 1e5+5,M = 1e6+5,INF = 0x3f3f3f3f;

void solve(){
	std::string s;std::cin >> s;
	for(int i = 0;i<s.size();++i){
		if(i==0&&s[i]=='9') continue;
		if(s[i]>='5'){
			s[i] = '0'+('9'-s[i]);
		}
	}
	i64 ans = std::stoll(s);
	if(ans==0LL){
		char c = s[s.size()-1];
		c = '9';
		std::cout << c << '\n';
	}else{
		std::cout << std::stoll(s) << '\n';
	}
}
int main(){
  std::cin.tie(nullptr)->sync_with_stdio(false);

  int t = 1;
  // std::cin >> t;
  for(int ti = 0;ti<t;++ti) {
      solve();
  }
	
  return 0;
}

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

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

相关文章

北京科博会 天云数据CEO雷涛谈人工智能技术服务数字资产建设

7月13日&#xff0c;第二十六届中国北京国际科技产业博览会(简称北京科博会)在国家会议中心开幕。本届科博会年度主题为“实施创新驱动发展战略 增强高质量发展动能”。会上&#xff0c;天云数据CEO雷涛发表《人工智能技术服务数字资产建设》主题演讲。 近期非常引人注目的事件…

不一样的css(三)

目录 一、前言 二、五角星 1.五角星&#xff0c;叠盖法&#xff1a; 2.五角星&#xff0c;拼凑法&#xff1a; 3.五角星&#xff0c;svg画法&#xff1a; 4.五角星&#xff0c;利用clip-path属性进行裁剪 三、结束语 一、前言 通过上两节的内容我们对css画小图标有了新…

QT:生成二维码 QRCode

目录 1.二维码历史2.QT源码3.界面展示4.工程源码链接 1.二维码历史 二维码&#xff08;2-Dimensional Bar Code&#xff09;&#xff0c;是用某种特定的几何图形按一定规律在平面&#xff08;二维方向上&#xff09;分布的黑白相间的图形记录数据符号信息的。它是指在一维条码…

JavaWeb|网页开发基础入门

成分有点复杂 要开始接触网页开发了 开发工具的下载链接&#xff1a;https://code.visualstudio.com/ 安装好后&#xff0c;我们开始入门吧&#xff0c;废话就不多说了 一、基础知识大家了解一下 1、文本类标签 文本结构 一级标题<h1> Heading 1</h1> 二级标…

Redis开发03:常见的Redis命令

1.输入以下命令&#xff0c;启动redis。 sudo service redis-server start 如果你是直接安装在WSL的&#xff0c;搜索栏搜索Ubuntu或者点击左下角Windows图表找到U那一栏&#xff0c;直接打开Ubentu&#xff0c;输入账密后&#xff0c;输入“sudo service redis-server start”…

(超详细图文详情)Navicat 配置连接 Oracle

1、下载依赖文件 Oracle官网下载直链&#xff1a;https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html 夸克网盘下载&#xff08;oracle19c版本&#xff09;&#xff1a;https://pan.quark.cn/s/5061e690debc 官网下载选择对应 Oracle 版…

Istio_05_Istio架构

Istio_05_Istio架构 ArchitectureControl PlanePilotCitadelGalley Data PlaneSidecarIstio-proxyPilot-agentMetadta Exchange Ambient Architecture 如: Istio的架构(控制面、数据面) Gateway: Istio数据面的出/入口网关 Gateway分为: Ingress-gateway、Egress-gateway外部访…

如何使用GCC手动编译stm32程序

如何不使用任何IDE&#xff08;集成开发环境&#xff09;编译stm32程序? 集成开发环境将编辑器、编译器、链接器、调试器等开发工具集成在一个统一的软件中&#xff0c;使得开发人员可以更加简单、高效地完成软件开发过程。如果我们不使用KEIL,IAR等集成开发环境&#xff0c;…

快速搭建一个博客!!!“Halo框架深度优化:搭建你的个性化博客或网站”

目录 引言&#xff1a; 一. 首先服务器上去下载一个docker 1.可以参考官方地址&#xff1a; 2. 通过宝塔来一键安装&#xff01;&#xff01;&#xff01; 3.也可以自己下载&#xff01;&#xff01;&#xff01; 1.卸载旧版 2.配置Docker的yum库 3.安装Docker 4.启动和…

pcb线宽与电流

三十年一路高歌猛进的中国经济&#xff0c; 中国经历了几个三十年&#xff1f; 第一个三十年&#xff1a;以计划为导向。 第二个三十年&#xff1a;以经济为导向。 现在&#xff0c;第三个三十年呢&#xff1f; 应该是以可持续发展为导向。 传统企业摇摇欲坠&#xff0c; 新兴企…

23种设计模式-抽象工厂(Abstract Factory)设计模式

文章目录 一.什么是抽象工厂设计模式&#xff1f;二.抽象工厂模式的特点三.抽象工厂模式的结构四.抽象工厂模式的优缺点五.抽象工厂模式的 C 实现六.抽象工厂模式的 Java 实现七.代码解析八.总结 类图&#xff1a; 抽象工厂设计模式类图 一.什么是抽象工厂设计模式&#xff1f…

VSCode修改资源管理器文件目录树缩进(VSCode目录结构、目录缩进、文件目录外观)workbench.tree.indent

文章目录 方法点击左下角小齿轮点击设置点击工作台&#xff0c;点击外观&#xff0c;找到Tree: Indent设置目录树的缩进 方法 点击左下角小齿轮 点击设置 点击工作台&#xff0c;点击外观&#xff0c;找到Tree: Indent设置目录树的缩进 "workbench.tree.indent"默认…

Transformer.js(七):ONNX 后端介绍 - 它是什么、如何将pytorch模型导出为ONNX格式并在web中使用

在前面的文章中&#xff0c;我介绍了关于transformer.js的一些内容&#xff0c;快速连接&#xff1a; 1. 运行框架的可运行环境、使用方式、代码示例以及适合与不适合的场景2. 关于pipe管道的一切3. 底层架构及性能优化指南4. 型接口介绍5. Tokenizer 分词器接口解析 6. 处理工…

玄机应急:linux入侵排查webshell查杀日志分析

目录 第一章linux:入侵排查 1.web目录存在木马&#xff0c;请找到木马的密码提交 2.服务器疑似存在不死马&#xff0c;请找到不死马的密码提交 3.不死马是通过哪个文件生成的&#xff0c;请提交文件名 4.黑客留下了木马文件&#xff0c;请找出黑客的服务器ip提交 5.黑客留…

消息队列详解:从基础到高级应用

本文主旨 撰写这篇文章的目的在于向读者提供一个全面理解消息队列概念及其在实际应用中重要性的指南。通过从RocketMQ的基础组件如生产者、消费者、主题等的介绍到更高级的概念&#xff0c;比如集群消费与广播消费的区别、顺序消息的重要性等&#xff0c;我们希望能够帮助开发…

qt QGraphicsRotation详解

1、概述 QGraphicsRotation 是 Qt 框架中 QGraphicsTransform 的一个子类&#xff0c;它专门用于处理图形项的旋转变换。通过 QGraphicsRotation&#xff0c;你可以对 QGraphicsItem&#xff08;如形状、图片等&#xff09;进行旋转操作&#xff0c;从而创建动态和吸引人的视觉…

20241129解决在Ubuntu20.04下编译中科创达的CM6125的Android10出现找不到库文件

20241129解决在Ubuntu20.04下编译中科创达的CM6125的Android10出现找不到库文件libtinfo.so.5的问题 2024/11/29 20:41 缘起&#xff1a;中科创达的高通CM6125开发板的Android10的编译环境需要。 [ 11% 15993/135734] target Java source list: vr [ 11% 15994/135734] target …

云轴科技ZStack助力 “上科大智慧校园信创云平台”入选上海市2024年优秀信创解决方案

近日&#xff0c;为激发创新活⼒&#xff0c;促进信创⾏业⾼质量发展&#xff0c;由上海市经济信息化委会同上海市委网信办、上海市密码管理局、上海市国资委等主办的“2024年上海市优秀信创解决方案”征集遴选活动圆满落幕。云轴科技ZStack支持的“上科大智慧校园信创云平台”…

【ArcGIS Pro】实现一下完美的坐标点标注

在CAD里利用湘源可以很快点出一个完美的坐标点标注。 但是在ArcGIS Pro中要实现这个效果却并不容易。 虽然有点标题党&#xff0c;这里就尽量在ArcGIS Pro中实现一下。 01 标注实现方法 首先是准备工作&#xff0c;准备一个点要素图层&#xff0c;包含xy坐标字段。 在地图框…

聚云科技×亚马逊云科技:打通生成式AI落地最后一公里

云计算时代&#xff0c;MSP&#xff08;云管理服务提供商&#xff09;犹如一个帮助企业上云、用云、管理云的专业管家&#xff0c;在云计算厂商与企业之间扮演桥梁的作用。生成式AI浪潮的到来&#xff0c;也为MSP带来全新的生态价值和发展空间。 作为国内领先的云管理服务提供…