![](https://img-blog.csdnimg.cn/20190927151101105.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
csp认证_刷题过程
本人在 csp认证 道路上的学习轨迹
S_h_a_
学业中哦~~~
展开
-
csp 202112-1 序列查询
题目详细说明#include<stdio.h>#include<iostream>using namespace std;int main(){ int n,N; cin>>n>>N; int arry[10000]={0}; for(int i=1;i<=n;i++){ cin>>arry[i]; } int sum=0; int count=0; for(int j=1;j<=n;j++){ s原创 2022-01-09 22:54:03 · 747 阅读 · 0 评论 -
csp 202006-1 线性分类器
题目详细说明#include<iostream>#include<bits/stdc++.h>using namespace std;struct Point{ int x; int y;}pointA[1005],pointB[1005];int main(){ std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n,m; cin>>n>>原创 2021-12-04 18:53:05 · 582 阅读 · 0 评论 -
csp 202009-2 风险人群筛查
题目详细说明#include<iostream>using namespace std;int main(){ int n,k,t,x1,y1,x2,y2; int x,y; int ans1=0; int ans2=0; cin>>n>>k>>t>>x1>>y1>>x2>>y2; for(int i=0;i<n;i++){ int temp=0; int stay=0;原创 2021-12-04 00:25:43 · 159 阅读 · 0 评论 -
csp 202009-1 称检测点查询
题目详细说明#include<iostream>#include<bits/stdc++.h>using namespace std;int main(){ std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n,x,y; cin>>n>>x>>y; pair<int,int>dis[n]; int x0,y0; for原创 2021-12-03 21:50:15 · 209 阅读 · 0 评论 -
csp 202012-2 期末预测之阈值
题目详细说明#include<iostream>#include<bits/stdc++.h>using namespace std;struct Stu{ int y; int result;}stu[100005];int sum[100005];bool cmp(struct Stu a,struct Stu b){ return a.y<b.y; // 按照y来进行升序排序 }int main(){ std::ios::sync_with_原创 2021-12-04 00:26:24 · 553 阅读 · 0 评论 -
csp 202012-1 期末预测之安全指数
题目详解#include<iostream>#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int x0,y0; int sum=0; for(int i=1;i<=n;i++){ cin>>x0>>y0; sum+=x0*y0; } int y=max(sum,0); cout<<y; retur原创 2021-12-03 18:22:33 · 3001 阅读 · 0 评论 -
csp 202104-2 领域均值
题目详解#include<iostream>#include<bits/stdc++.h>using namespace std;#define N 601int arr[N][N];int sum[N][N];int main(){ // 对 cin 和 cout 进行提速 std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); // 对 sum 前缀和进行清空 memse原创 2021-12-03 18:06:09 · 120 阅读 · 0 评论 -
csp 202104-1 灰度直方图
题目详细说明#include<iostream>using namespace std;int cnt[257];int main(){ int n,m,L; cin>>n>>m>>L; int ele; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { cin>>ele; cn原创 2021-11-30 00:22:36 · 98 阅读 · 0 评论 -
csp 202109-2 非零段划分
考试的时候用的暴力求解(70分)参照大佬:csp2021-09-2 非零段划分_隔壁李叟的博客-CSDN博客#include<bits/stdc++.h>#include<iostream>using namespace std;int arr[10000];int num[10000]={0};int main(){ int n; cin>>n; //输入数组长度 for(int j=1;j<=n;j++){ cin>&g原创 2021-11-29 23:43:30 · 265 阅读 · 0 评论 -
csp 202109-1 数组推导
一.前提介绍: 1.csp网站:首页 - 计算机软件能力认证考试系统 2.编译软件:Dev-cpp(c++语言)二.问题描述:60 0 5 5 10 103015710 20 30 40 50 60 75285285三.审题(很重要) 1.最大值求法:即将 输入的数据进行 求和 即可; 2.最小值求法:即将 输入的数据 进行 去重操作,之后 再进行 求和;三...原创 2021-10-18 00:19:18 · 295 阅读 · 0 评论