![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CCF
HBWYZ007
这个作者很懒,什么都没留下…
展开
-
CCF邻域均值
不知道错哪里了 一直显示编译错误#include<iostream>using namespace std;int main(){ int n,L,r,t; cin>>n>>L>>r>>t; float A[n][n]; float newA[n+1][n+1],newB[n+1][n+1]; int i,j; for(i=0;i<n;++i) { for(j=0;j<n;++j) { c原创 2021-05-02 19:19:07 · 424 阅读 · 0 评论 -
CCF回收站选址
CCF题号2019-12-02题目思路:构造一个结构体,每一个点都是一个结点,这个结点存储了该点的横纵坐标和八个方位上是否有其他点的存在,据此,将所有点都进行编排,然后筛选得到符合要求的垃圾集中点源码#include<iostream>#include<string>using namespace std;typedef struct spot{ long x; long y; bool up;//上邻居是否存在,默认不存在flase,以下同理原创 2021-03-29 22:05:35 · 134 阅读 · 0 评论 -
CCF报数
CCF题号2019-12-01题目记录两种源码方法一致,然而一种得100分,一种只能得70分。日后再来看看是为何满分代码#include<iostream>#include<string>using namespace std;int main(){ int i,j,k,p,q,n; int skip1,skip2,skip3,skip4; skip1=skip2=skip3=skip4=0; scanf("%d",&n); for(int原创 2021-03-29 13:23:22 · 259 阅读 · 0 评论 -
CCF题稀疏向量
#CCF题目题号2020-06-02题目背景本题有2个坑不可以用数组下标作为维度,因为数组下标是有界限的,因此当声明数组元素个数过大的时候,并不安全抛去这一点,还有一个就是内积的数据类型,要声明为long long型的,因为内积可能很大,如果不注意,这里会出错如果不注意这两点,一般都是60分源码#include<iostream>#include<string>using namespace std;int main(){ int n,a原创 2021-03-27 22:09:43 · 201 阅读 · 0 评论 -
CCF线性分类器
CCF-CSP题题号2020-06-01题目背景#源码#include<iostream>#include<string>using namespace std;//是否对n组数据分割成功的函数typedef struct query{ int c1; int c2; int c3;}query;typedef struct location{ int x; int y; char kind; }location;//分割函数,输入参数原创 2021-03-27 12:01:29 · 137 阅读 · 0 评论