![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CCF计算机软件能力认证
hit大聪明
这个作者很懒,什么都没留下…
展开
-
CCF计算机软件能力认证考试 CSP-201912-2 回收站选址
#include<iostream> using namespace std; #include <map> typedef struct node { long long x,y; bool isrecy; int score; }coordinate; bool isrecy(coordinate p,coordinate pos[],int n) { bool flag1=false,flag2=false,flag3=false,flag...原创 2020-12-10 20:21:05 · 163 阅读 · 0 评论 -
CCF计算机软件能力认证考试 CSP-202006-2 稀疏向量
#include<iostream> using namespace std; #include <map> typedef struct node { int index; int value; }node; int main(void) { int n,a,b; long long int sum=0;//大数用long long int ,要不然会溢出 cin>>n>>a>>b; map&l..原创 2020-12-09 11:09:55 · 133 阅读 · 0 评论 -
第20次CCF计算机软件能力认证 CSP-202006-1-线性分类器
#include<iostream> using namespace std; typedef struct node { int x,y; char type; }coordinate; int main(void) { int n,m; cin>>n>>m; coordinate point[n]; for(int i=0;i<n;i++) { cin>>point[i]....原创 2020-12-09 10:00:10 · 100 阅读 · 0 评论 -
第21次CCF计算机软件能力认证 CSP-202009-2-风险人群筛查(详细注释版)
#include<iostream> using namespace std; typedef struct coordinate//定义坐标类型,处理更加方便 { int x,y; }coordinate; int main(void) { int n,k,t,xl,yd,xr,yu;//按题目中要求命名一致,思路更清晰 cin>>n>>k>>t>>xl>>yd>>xr>>yu;/...原创 2020-11-29 21:15:28 · 1014 阅读 · 0 评论 -
第21次CCF计算机软件能力认证 CSP-202009-1-称检测点查询
题目背景 2020 年 6 月 8 日,国务院联防联控机制发布《关于加快推进新冠病毒核酸检测的实施意见》,提出对“密切接触者”等八类重点人群“应检尽检”,其他人群“愿检尽检”。 问题描述 某市设有 n 个核酸检测点,编号从 1 到 n,其中 i 号检测点的位置可以表示为一个平面整数坐标(xi,yi) 。 为方便预约核酸检测,请根据市民所在位置(x,y) ,查询距其最近的三个检测点。 多个检测点距离相同时,编号较小的视为更近。 输入格式 输入共 n+1行。 第一行包含用空格分隔的三个整数 n、x 和 y,表原创 2020-11-29 20:21:52 · 749 阅读 · 0 评论