当前位置: 首页 > 编程日记 > 正文

AtCoder Petrozavodsk Contest 001

第一场apc,5H的持久战,我当然水几个题就睡了

A - Two Integers


Time limit : 2sec / Memory limit : 256MB

Score : 100 points

Problem Statement

You are given positive integers X and Y. If there exists a positive integer not greater than 1018 that is a multiple of X but not a multiple of Y, choose one such integer and print it. If it does not exist, print −1.

Constraints

  • 1≤X,Y≤109
  • X and Y are integers.

Input

Input is given from Standard Input in the following format:

X Y

Output

Print a positive integer not greater than 1018 that is a multiple of X but not a multiple of Y, or print −1 if it does not exist.


Sample Input 1

Copy
8 6

Sample Output 1

Copy
16

For example, 16 is a multiple of 8 but not a multiple of 6.


Sample Input 2

Copy
3 3

Sample Output 2

Copy
-1

A multiple of 3 is a multiple of 3.

这个是特判题的

输出一个数是x的倍数但并不是y的倍数

emmmm,模拟一下?不,a是b的倍数的话不存在,否则输出a就好了啊

#include<bits/stdc++.h>
using namespace std;
int main()
{int x,y;cin>>x>>y;if (x%y==0)printf("-1");else printf("%d",x);
}

给了16,所以我再猜最大公约数*a,太naive了,想了数据把自己hack了

话说直接暴力模拟就是直接在输出x

B - Two Arrays


Time limit : 2sec / Memory limit : 256MB

Score : 300 points

Problem Statement

You are given two integer sequences of length Na1,a2,..,aN and b1,b2,..,bN. Determine if we can repeat the following operation zero or more times so that the sequences a and b become equal.

Operation: Choose two integers i and j (possibly the same) between 1 and N (inclusive), then perform the following two actions simultaneously:

  • Add 2 to ai.
  • Add 1 to bj.

Constraints

  • 1≤N≤10 000
  • 0≤ai,bi≤109 (1≤iN)
  • All input values are integers.

Input

Input is given from Standard Input in the following format:

N
a1 a2 .. aN
b1 b2 .. bN

Output

If we can repeat the operation zero or more times so that the sequences a and b become equal, print Yes; otherwise, print No.


Sample Input 1

Copy
3
1 2 3
5 2 2

Sample Output 1

Copy
Yes

For example, we can perform three operations as follows to do our job:

  • First operation: i=1 and j=2. Now we have a={3,2,3}b={5,3,2}.
  • Second operation: i=1 and j=2. Now we have a={5,2,3}b={5,4,2}.
  • Third operation: i=2 and j=3. Now we have a={5,4,3}b={5,4,3}.

Sample Input 2

Copy
5
3 1 4 1 5
2 7 1 8 2

Sample Output 2

Copy
No

Sample Input 3

Copy
5
2 7 1 8 2
3 1 4 1 5

Sample Output 3

Copy
No

说是可以加任意次,但是你要让两个序列相等,最多次数就是sumb-suma,每次操作会让suma+2,sumb+1,相当于差少了1

然后去模拟让两个相等,需要分下奇偶。

#include<bits/stdc++.h>
using namespace std;
const int N=1e4+5;
int a[N],b[N];
int main()
{int n;cin>>n;for(int i=0; i<n; i++)cin>>a[i];long long s=0;for(int i=0; i<n; i++)cin>>b[i],s+=a[i]-b[i];if(s>0)printf("No");else{long long ta=-s,tb=-s;for(int i=0; i<n; i++){if(a[i]>b[i])tb-=a[i]-b[i];else if(a[i]<b[i]){if((b[i]-a[i])&1)ta-=(b[i]-a[i])/2+1,tb--;else ta-=(b[i]-a[i])/2;}}if(2*ta==tb&&ta>=0&&tb>=0)printf("Yes");else printf("No");}return 0;
}

当然ta,tb也可以省掉,我就是模拟这个次数就可以了

#include<bits/stdc++.h>
using namespace std;
const int N=1e4+5;
int a[N],b[N];
int main()
{int n;cin>>n;for(int i=0; i<n; i++)cin>>a[i];long long s=0;for(int i=0; i<n; i++)cin>>b[i];for(int i=0; i<n; i++){if(a[i]>b[i])s-=a[i]-b[i];else s+=(b[i]-a[i])/2;}if(s>=0)printf("Yes");else printf("No");return 0;
}

C - Vacant Seat


Time limit : 2sec / Memory limit : 256MB

Score : 500 points

Problem Statement

This is an interactive task.

Let N be an odd number at least 3.

There are N seats arranged in a circle. The seats are numbered 0 through N−1. For each i (0≤iN−2), Seat i and Seat i+1are adjacent. Also, Seat N−1 and Seat 0 are adjacent.

Each seat is either vacant, or oppupied by a man or a woman. However, no two adjacent seats are occupied by two people of the same sex. It can be shown that there is at least one empty seat where N is an odd number at least 3.

You are given N, but the states of the seats are not given. Your objective is to correctly guess the ID number of any one of the empty seats. To do so, you can repeatedly send the following query:

  • Choose an integer i (0≤iN−1). If Seat i is empty, the problem is solved. Otherwise, you are notified of the sex of the person in Seat i.

Guess the ID number of an empty seat by sending at most 20 queries.

Constraints

  • N is an odd number.
  • 3≤N≤99 999

Input and Output

First, N is given from Standard Input in the following format:

N

Then, you should send queries. A query should be printed to Standart Output in the following format. Print a newline at the end.

i

The response to the query is given from Standard Input in the following format:

s

Here, s is VacantMale or Female. Each of these means that Seat i is empty, occupied by a man and occupied by a woman, respectively.

Notice

  • Flush Standard Output each time you print something. Failure to do so may result in TLE.
  • Immediately terminate the program when s is Vacant. Otherwise, the verdict is indeterminate.
  • The verdict is indeterminate if more than 20 queries or ill-formatted queries are sent.

Sample Input / Output 1

In this sample, N=3, and Seat 012 are occupied by a man, occupied by a woman and vacant, respectively.

InputOutput
3
0
Male
1
Female
2
Vacant

C是个交互题,记得在每次输出后fflush(stdout);

#include<bits/stdc++.h>
using namespace std;
map<string,int>M;
int x[999999];
int main()
{M["Male"]=1;M["Female"]=0;int n;scanf("%d",&n);string s;cout<<0<<endl;fflush(stdout);cin>>s;if(s=="Vacant")return 0;int lval=M[s];cout<<n-1<<endl;fflush(stdout);cin>>s;if(s=="Vacant")return 0;int rval=M[s];int l=0,r=n-1;while(true){int mi=(l+r)/2;cout<<mi<<endl;fflush(stdout);cin>>s;if(s=="Vacant")return 0;int val=M[s];if(!((mi-l+1)%2&1)&&val==lval){r=mi;rval=val;}else if((mi-l+1)&1&&val!=lval){r=mi;rval=val;}else if(!((r-mi+1)%2)&&val==rval){l=mi;lval=val;}else if((r-mi+1)&1&&val!=rval){l=mi;lval=val;}}return 0;
}

大神的牛逼代码

#include<iostream>
using namespace std;
string s,t;
main()
{int n,f,l,m;cin>>n;f=0;l=n;cout<<0<<endl;cin>>s;if(s=="Vacant")return 0;while(t!="Vacant"){m=(f+l)/2;cout<<m<<endl;cin>>t;if(m%2^s==t)f=m;else l=m;}
}

D - Forest


Time limit : 2sec / Memory limit : 256MB

Score : 600 points

Problem Statement

You are given a forest with N vertices and M edges. The vertices are numbered 0 through N−1. The edges are given in the format (xi,yi), which means that Vertex xi and yi are connected by an edge.

Each vertex i has a value ai. You want to add edges in the given forest so that the forest becomes connected. To add an edge, you choose two different vertices i and j, then span an edge between i and j. This operation costs ai+aj dollars, and afterward neither Vertex i nor j can be selected again.

Find the minimum total cost required to make the forest connected, or print Impossible if it is impossible.

Constraints

  • 1≤N≤100,000
  • 0≤MN−1
  • 1≤ai≤109
  • 0≤xi,yiN−1
  • The given graph is a forest.
  • All input values are integers.

Input

Input is given from Standard Input in the following format:

N M
a0 a1 .. aN−1
x1 y1
x2 y2
:
xM yM

Output

Print the minimum total cost required to make the forest connected, or print Impossible if it is impossible.


Sample Input 1

Copy
7 5
1 2 3 4 5 6 7
3 0
4 0
1 2
1 3
5 6

Sample Output 1

Copy
7

If we connect vertices 0 and 5, the graph becomes connected, for the cost of 1+6=7 dollars.


Sample Input 2

Copy
5 0
3 1 4 1 5

Sample Output 2

Copy
Impossible

We can't make the graph connected.


Sample Input 3

Copy
1 0
5

Sample Output 3

Copy
0

The graph is already connected, so we do not need to add any edges.


并查集+优先队列的一个很优秀的题目
有一个森林,现在要把这个森林合并成一棵树。每个节点都回有一个权值。每个添加一条边所付出的代价就是所连接的两个权值的和。每个节点只能连接一次。
每组最小的是一定要的,但是这个只能加一次
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5,INF=0x3f3f3f3f;
int a[N],fa[N],vis[N],mi[N];
pair<int,int>t;
priority_queue<pair<int,int>, vector<pair<int,int> >, greater<pair<int,int> > >Q;
int find(int x)
{return x==fa[x]?x:(fa[x]=find(fa[x]));
}
int main()
{ios::sync_with_stdio(false);int n,m;cin>>n>>m;for(int i=0; i<n; i++)cin>>a[i],fa[i]=i,mi[i]=INF;for(int i=0,u,v; i<m; i++){cin>>u>>v,u=find(u),v=find(v);if(u!=v)fa[u]=v;}for(int i=0; i<n; i++)find(i);for(int i=0; i<n; i++)mi[fa[i]]=min(a[i],mi[fa[i]]),Q.push(make_pair(a[i],fa[i]));sort(fa,fa+n);int tn=unique(fa,fa+n)-fa;if(tn==1)cout<<0;else{long long s=0;for(int i=0; i<tn; i++)s+=mi[fa[i]];while(!Q.empty()){if(tn==2)break;t=Q.top();Q.pop();if(!vis[t.second]){vis[t.second]=1;continue;}s+=t.first,--tn;}if(tn==2)cout<<s;else cout<<"Impossible";}return 0;
}

特判下impossible速度并没有更快

#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5,INF=0x3f3f3f3f;
int a[N],fa[N],vis[N],mi[N];
typedef pair<int,int> pii;
priority_queue<pii, vector<pii >, greater<pii > >Q;
int find(int x)
{return x==fa[x]?x:(fa[x]=find(fa[x]));
}
int main()
{ios::sync_with_stdio(false);int n,m;cin>>n>>m;for(int i=0; i<n; i++)cin>>a[i],fa[i]=i,mi[i]=INF;for(int i=0,u,v; i<m; i++){cin>>u>>v,u=find(u),v=find(v);if(u!=v)fa[u]=v;}for(int i=0; i<n; i++)find(i);for(int i=0; i<n; i++)mi[fa[i]]=min(a[i],mi[fa[i]]),Q.push(make_pair(a[i],fa[i]));sort(fa,fa+n);int tn=unique(fa,fa+n)-fa;if(tn==1)cout<<0;else if((tn-1)*2>n)cout<<"Impossible";else{long long s=0;for(int i=0; i<tn; i++)s+=mi[fa[i]];while(!Q.empty()){if(tn==2)break;pii t=Q.top();Q.pop();if(!vis[t.second]){vis[t.second]=1;continue;}s+=t.first,--tn;}cout<<s;}return 0;
}

优化不了了,最后的代码也很棒

#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5,INF=0x3f3f3f3f;
typedef pair<int,int> pii;
int fa[N],vis[N],mi[N],V[N];
vector<pii >Q(N);
int find(int x)
{return x==fa[x]?x:(fa[x]=find(fa[x]));
}
int main()
{ios::sync_with_stdio(false);int n,m,tn=0;cin>>n>>m;for(int i=0; i<n; i++)cin>>Q[i].first,fa[i]=i,mi[i]=INF;for(int i=0,u,v; i<m; i++){cin>>u>>v,u=find(u),v=find(v);if(u!=v)fa[u]=v;}for(int i=0; i<n; i++){find(i);if(!vis[fa[i]])V[tn++]=fa[i];vis[fa[i]]=1,Q[i].second=fa[i],mi[fa[i]]=min(Q[i].first,mi[fa[i]]);}if(tn==1)cout<<0;else if((tn-1)*2>n)cout<<"Impossible";else{long long s=0;for(int i=0; i<tn; i++)s+=mi[V[i]];if(tn!=2)sort(Q.begin(),Q.begin()+n);for(int i=0; i<n&&tn!=2; i++){if(vis[Q[i].second]){vis[Q[i].second]=0;continue;}s+=Q[i].first,tn--;}cout<<s;}return 0;
}

E - Antennas on Tree


Time limit : 2sec / Memory limit : 256MB

Score : 900 points

Problem Statement

We have a tree with N vertices. The vertices are numbered 0 through N−1, and the i-th edge (0≤i<N−1) comnnects Vertex aiand bi. For each pair of vertices u and v (0≤u,v<N), we define the distance d(u,v) as the number of edges in the path u-v.

It is expected that one of the vertices will be invaded by aliens from outer space. Snuke wants to immediately identify that vertex when the invasion happens. To do so, he has decided to install an antenna on some vertices.

First, he decides the number of antennas, K (1≤KN). Then, he chooses K different vertices, x0x1, ..., xK−1, on which he installs Antenna 01, ..., K−1, respectively. If Vertex v is invaded by aliens, Antenna k (0≤k<K) will output the distance d(xk,v). Based on these K outputs, Snuke will identify the vertex that is invaded. Thus, in order to identify the invaded vertex no matter which one is invaded, the following condition must hold:

  • For each vertex u (0≤u<N), consider the vector (d(x0,u),…,d(xK−1,u)). These N vectors are distinct.

Find the minumum value of K, the number of antennas, when the condition is satisfied.

Constraints

  • 2≤N≤105
  • 0≤ai,bi<N
  • The given graph is a tree.

Input

Input is given from Standard Input in the following format:

N
a0 b0
a1 b1
:
aN−2 bN−2

Output

Print the minumum value of K, the number of antennas, when the condition is satisfied.


Sample Input 1

Copy
5
0 1
0 2
0 3
3 4

Sample Output 1

Copy
2

For example, install an antenna on Vertex 1 and 3. Then, the following five vectors are distinct:

  • (d(1,0),d(3,0))=(1,1)
  • (d(1,1),d(3,1))=(0,2)
  • (d(1,2),d(3,2))=(2,2)
  • (d(1,3),d(3,3))=(2,0)
  • (d(1,4),d(3,4))=(3,1)

Sample Input 2

Copy
2
0 1

Sample Output 2

Copy
1

For example, install an antenna on Vertex 0.


Sample Input 3

Copy
10
2 8
6 0
4 1
7 6
2 3
8 6
6 9
2 4
5 8

Sample Output 3

Copy
3

For example, install an antenna on Vertex 049.


一颗树让你找最少k个点放监控,使得所有节点到这个节点的k维空间向量(无方向)两两不同

#include <bits/stdc++.h>
using namespace std;
const int N=1e5+5;
vector<int>G[N];
int n,dp[N],f=-1;
void dfs(int i,int p)
{int F=0;for(auto j:G[i]){if(j==p)continue;dfs(j,i);dp[i]+=dp[j];if(!dp[j]){if(!F)F=1;else dp[i]++;}}
}
int main()
{scanf("%d",&n);for(int i=1,u,v; i<n; i++)scanf("%d%d",&u,&v),G[u].push_back(v),G[v].push_back(u);for(int i=0; i<n; i++)if(G[i].size()>2){f=i;break;}if(f==-1)printf("1\n");else dfs(f,-1),printf("%d\n",dp[f]);return 0;
}

转载于:https://www.cnblogs.com/BobHuang/p/8413338.html

相关文章:

【Qt】使用QCamera获取摄像头,并使用图像视图框架QGraphics*来显示

代码下载 https://download.csdn.net/download/u010168781/10373174 #####头文件 #ifndef CAMERATEST_H#define CAMERATEST_H#include <QMainWindow> #include <QGraphicsView> #include <QKeyEvent> #include <QTimer>namespace Ui { class Camera…

CVPR 2019收录论文ID公开,你上榜了吗?

整理 | 琥珀 出品 | AI科技大本营&#xff08;ID: rgznai100&#xff09; 计算机视觉和模式识别大会 CVPR&#xff08;Conference on Computer Vision and Pattern Recognition&#xff09;作为人工智能领域计算机视觉方向的重要学术会议&#xff0c;每年都会吸引全球最顶尖的…

什么是 prelink

2019独角兽企业重金招聘Python工程师标准>>> Most programs require libraries to function. Libraries can be integrated into a program once, by a linker, when it is compiled (static linking) or they can be integrated when the program is run by a load…

PythonR爬取分析赶集网北京二手房数据(附详细代码)

本文转载自数据森麟&#xff08;ID:shujusenlin&#xff09; 作者介绍&#xff1a;徐涛&#xff0c;19年应届毕业生&#xff0c;专注于珊瑚礁研究&#xff0c;喜欢用R各种清洗数据。 知乎&#xff1a;parkson 如何挑战百万年薪的人工智能&#xff01; https://edu.csdn.net/t…

【Qt】QCloseEvent的使用小结

问题描述 在程序中使用QCloseEvent时,有时没有反应,没有关闭程序。 原因 经测试只有在界面起来以后,使用event->accept()才能关闭程序 测试如下 在构造函数中调用close() 在构造函数中调用close()时,会触发QCloseEvent事件,但是程序界面没有关闭。 使用按钮触发…

Java反射 - 私有字段和方法

尽管普遍认为通过Java Reflection可以访问其他类的私有字段和方法。 这并不困难。 这在单元测试中可以非常方便。 本文将告诉你如何。 访问私有字段 要访问私有字段&#xff0c;您需要调用Class.getDeclaredField&#xff08;String name&#xff09;或Class.getDeclaredFields…

.Net 程序员面试 C# 语言篇 (回答Scott Hanselman的问题)

过去几年都在忙着找项目&#xff0c;赶项目&#xff0c;没有时间好好整理深究自己在工作中学到的东西。现在好了&#xff0c;趁着找工作的这段空余时间&#xff0c;正好可以总结和再继续夯实自己的.Net, C#基本功。在05年的时候&#xff0c;Scott Hanselman(微软的一个Principa…

一个小小的AI训练营竟然卧虎藏龙

年前&#xff0c;我来到了一个近墨者黑的地方&#xff0c;黑的不能再黑。。。这个神秘的组织叫做 21 天入门机器学习训练营。讲真的&#xff0c;当初报名这个训练营&#xff0c;我是冲着机器学习来的&#xff0c;主要是好奇想转型&#xff0c;而且听说这个课程对小白很友好&…

【Qt】QCamera查询和设置摄像头的分辨率

查询和设置摄像头分辨率的API QCamera::supportedViewfinderResolutions() QCamera::setViewfinderSettings() 设置摄像头帧率、比例、分辨率、格式的类&#xff1a;QCameraViewfinderSettings 使用注意事项 查询和设置摄像头分辨率时&#xff0c;需要在摄像头启动后调用&a…

附录G Netty与NettyUtils

版权声明&#xff1a;本文为博主原创文章&#xff0c;未经博主允许不得转载。 https://blog.csdn.net/beliefer/article/details/77450134 注&#xff1a;本文是为了配合《Spark内核设计的艺术 架构设计与实现》一书的内容而编写&#xff0c;目的是为了节省成本、方便读者查阅。…

grails日志系统的研究

对于grails的日志输出&#xff0c;我真的是给弄吐血了。开始以为很简单&#xff0c;后来发现grails封装log4j做的有点太多了&#xff0c;很多东西的封装理解了觉得还挺合理&#xff0c;但是不理解的话真是无比迷茫。对于是否有必要做这么多强制性约束&#xff0c;我保留意见...…

给老婆写个Python教程

作者 | 水风 来源 | 水风知乎问答 如何挑战百万年薪的人工智能&#xff01; https://edu.csdn.net/topic/ai30?utm_sourcecsdn_bw 什么是code code就是一种语言&#xff0c;一种计算机能读懂的语言。计算机是一个傻逼&#xff0c;他理解不了默认两可的任何东西。比如&#xf…

SpringBoot的修改操作

今天学习SpringBoot 的 CRUD 操作&#xff0c;练习 修改操作 时&#xff0c;发生了如下的异常&#xff1a; [nio-8080-exec-7] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.dao.InvalidDataAccessApiUsa…

【Qt】QImage、QPixmap、QBitmap和QPicture

简述 Qt 提供了四个用于处理图像数据的类: QImage、 QPixmap、 QBitmap和QPicture。QImage是为 I/O 设计和优化的, 用于直接像素访问和操作, 而QPixmap是为在屏幕上显示图像而设计和优化的。QBitmap继承自QPixmap&#xff0c;用在位深为1&#xff08;黑白图片&#xff09;上。…

ASP.NET,IIS7.0 上传大视频文件报错

一、问题概述&#xff1a; 最近开发上传视频文件的功能。基本流程已经跑通了&#xff0c;可是上传30M以上的文件时就会报错。 二、资料海洋瞎扑腾 从网上查了一些资料&#xff0c;一般都是下面这种说法&#xff1a; 看着步骤倒是也不算繁琐&#xff0c;可是本人照着步骤做了却没…

【imx6】Unable to find the ncurses libraries的解决办法

问题描述 在执行make menuconfig时&#xff0c;报错&#xff1a; Unable to find the ncurses libraries… 解决方法 安装ncurses和ncursesw库 sudo apt-get insatll ncurses-dev sudo apt-get insatll ncursesw-dev 注意&#xff1a;ncursesw库是ncurses的升级版本&#…

Elasticsearch6.1.3 for CRUD

为什么80%的码农都做不了架构师&#xff1f;>>> 一、创建文档 [root AOS2 AutoTest01:/root]#curl -X PUT 9.1.6.140:9200/students/class1/1?pretty -d > { > "first_name": "changwei", > "last_name": "…

指纹锁就安全了?防火防盗还得防AI

整理 | 一一 出品 | AI科技大本营&#xff08;ID:rgznai100&#xff09; 如何挑战百万年薪的人工智能 https://edu.csdn.net/topic/ai30?utm_sourcecsdn_bw 近日&#xff0c;你应该看到了社交媒体上对于网站 ThisPersonDoesNotExist.com&#xff0c;生成无数不存在人脸的铺天…

迪杰斯特拉算法(C语言实现)

迪杰斯特拉算法&#xff08;C语言实现&#xff09; 如上图&#xff0c;求以a为源点到个顶点的最短路劲。 #include "stdio.h"#include "stdlib.h"//用一个最大数表示顶点之间不相关#define MAX 999//设置顶点个数#define MAX_VERTEX_NUM 7//表示顶点之间不…

小米半年来最大调整:成立技术委员会,雷军称技术事关生死存亡

整理 | 琥珀出品 | AI科技大本营&#xff08;ID:rgznai100&#xff09;昨晚&#xff0c;小米集团组织部下发正式文件&#xff0c;宣布了最新一轮组织架构调整&#xff0c;任命了崔宝秋为集团副总裁&#xff0c;集团技术委员会主席&#xff0c;并且在核心管理岗位上共任命了 14 …

【驱动】在内核源码中添加驱动程序

以wifi驱动(RTL8188EUS驱动)为例 添加源码 将源码rtl8188EUS添加到drivers/net/wireless/rtl818x/目录下 添加Kconfig 在drivers/net/wireless/rtl818x/rtl8188EUS添加Kconfig&#xff0c;内容如下&#xff1a; config RTL8188EUtristate "Realtek 8188E USB WiFi&qu…

怎么让wordpress用sqlite3 搭建轻量级博客系统

wordpress 默认是用mysql作为数据库支持&#xff0c;这个对个人站长来说还是有点麻烦了些。特别是如果以后网站备份迁移就有点事多了。 之前用django开发自己的博客感觉其实用sqlite3作为数据库插好&#xff0c;就是一个文件而已。备份网站&#xff0c;直接打包整个目录即可方便…

IBM蓝色基因/Q将采用NAND闪存存储

IBM将在计划中的高性能“怪兽”——蓝色基因/Q中采用NAND闪存存储。 这是一款采用水冷方式的高性能计算系统&#xff0c;IBM在近日的SC10大会上展示了其原型机的组件。 蓝色基因/Q将采用的闪存是来自SMART的XceedIOPS MLC NAND产品&#xff0c;它使用34nm制程工艺&…

全球超2万名开发者调研:Python 3渗透率至84%

编辑 | suiling 出品 | Python大本营&#xff08;ID&#xff1a;pythonnews&#xff09; 60s测试&#xff1a;你是否适合转型人工智能&#xff1f; https://edu.csdn.net/topic/ai30?utm_sourcecxrs_bw 在2018年秋季&#xff0c;Python软件基金会与JetBrains发起了年度Python…

【Qt】QWidget对样式表设置边框无效的解决方法

1、现象 在对QWidget使用样式表时无效 QWidget#MyWgt{border:1px solid gray; }2、原因 原因是QWidget只支持background、background-clip和background-origin属性。 3、解决方法 3.1 使用QFrame代替QWidget&#xff0c;QFrame继承自QWidget&#xff0c;并且带有框架属性 …

break continue

break 终止整个循环体&#xff0c;执行循环后的代码&#xff1b; continue 终止单次的循环&#xff0c;整个循环体还是会继续执行转载于:https://www.cnblogs.com/RonnieQin/p/8430783.html

CSSA email list

UCSD: cssamailman.ucsd.eduUChicago: cssalists.uchicago.edu 转载于:https://www.cnblogs.com/stoneresearch/archive/2010/11/30/4336484.html

LVS原理详解(3种工作方式8种调度算法)--老男孩

一、LVS原理详解&#xff08;4种工作方式8种调度算法&#xff09;集群简介集群就是一组独立的计算机&#xff0c;协同工作&#xff0c;对外提供服务。对客户端来说像是一台服务器提供服务。LVS在企业架构中的位置&#xff1a;以上的架构只是众多企业里面的一种而已。绿色的线就…

【Qt】QMainWindow最大化按钮是灰色(不能最大化)的解决方法

解决方法 设置最大尺寸为16777215&#xff0c;并且使能Qt::WindowMaximizeButtonHint&#xff08;默认就是使能的&#xff0c;不执行也可以&#xff09; const QSize MAIN_SIZE_MAX QSize(16777215, 16777215); this->setMaximumSize(MAIN_SIZE_MAX); this->setWindow…

“AI明星”地平线B轮融资6亿美元!

整理 | 一一 出品 | AI科技大本营&#xff08;ID:rgznai100&#xff09; 60s测试&#xff1a;你是否适合转型人工智能&#xff1f; https://edu.csdn.net/topic/ai30?utm_sourcecxrs_bw 2 月 27 日&#xff0c;人工智能芯片技术的 AI 创业企业地平线(Horizon Robotics)宣布&a…