自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 2021计算机夏令营经验分享(西交软院、南开计算机、中南计算机、南京大学计算机、华东师大数据学院、上交电院直博、国防科大计算机、上科大)

自报家门本科院校:东北某末流985 软件工程专业夏令营名次:前3%四六级:均过,但分不高,六级490项目经历:一段大创经历生信方向(没结题)。两个课外小项目(机器学习方向的,发表了软著,比较水)。比赛:数学建模省二,互联网+(现在看来,都没有什么用处)最终去向:由于对地域的重视,想早点就业,选择了华东师大参营学校经验分享1.西安交通大学软件学院西交软院是参加的第一个夏令营 6月25号。整体来说是很水的 没有难度。开始之前,老师对考核说的很明确。1)2分钟英文自我介绍2)准备一页的

2022-01-24 17:06:16 10260 17

原创 PAT a1082中文读数字

主要思想:将数字分为4个一组,每一组由个,十,百,千组成。一个非0数字前面有0,则输出ling。#include <iostream>#include <cstdio>#include <string>#include <cstring>using namespace std;string Dict[] = { "Ge", "Shi", "Bai", "Qian", "Wan", "Yi" };string Num[]={"ling","yi"

2021-04-29 16:53:44 175

原创 VS2017 ‘inet_ntoa‘ 报错解决方案

在使用VS2017进行socket编程时,报错:‘inet_ntoa’: Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNIN解决方案一:项目-》属性-》C/C++ -》常规-》SDL检查-》改为否。项目-》属性-》C/C++ -》常规-》预处理器-》增加“CRT_SECURE_NO_WARNINGS; ”。但是,我配到这里还是不行解决方案二:给项目增加头文件:#pragma warning(

2021-04-12 20:00:10 722 1

原创 CSP元素选择器--100分题解

用到了栈的思想,注意大小写的区分与合并#include <iostream>#include <vector>#include <stack>#include <string>#include <cstring>#include <ctype.h>#include <cstdio>#include <algorithm>#include <set>using namespace s

2021-04-04 20:29:44 122

原创 CIDR合并90分

#include <iostream>#include <string>#include <cstring>#include <vector>#include<algorithm>#include <cstdio>using namespace std;struct IP_pre{//存放标准IP前缀 int a[4]={0}; int plen=-1;};int z1[8],z2[8],z3[8];

2021-04-02 00:11:19 94

原创 csp 2019-03小中大

很简单的题,代码如下:#include <cstdio>#include <iostream>#include <cmath>#include <vector>#include <algorithm>using namespace std;int main(){ int n; scanf("%d",&n); vector<int> vec; for(int i=0;i<n;

2021-03-28 20:55:48 56

原创 markdown渲染器--ACwing网站yxc老师题解

markdown渲染器来源:ACwing–yxc#include <iostream>#include <cstring>#include <algorithm>#include <vector>#include <cstdio>using namespace std;const int N= 20*1024*1024+10;char str[N];vector<string>strs;bool check_

2021-03-28 07:57:49 863

原创 20分markdown渲染器

20分markdown渲染器(只做了段落的部分,还没拿满分,有点崩溃,觉得自己算法思路过于繁琐)(先看题解,有时间再实现自己的思路,把代码先放到博客里)ps:第三题怎么这么难啊,????#include <iostream>#include <string>#include<cstdio>#include <cstring>#include <vector>using namespace std;vector<string

2021-03-27 22:42:26 146

原创 CSP2018-09买菜

CSP2018-09(二)买菜此题为区间相交的问题,代码如下:#include <iostream>#include <cstdio>#include <algorithm>typedef long long LL;using namespace std;struct period{ int a; int b;}H[2010],W[2010];int main(){ int n; scanf("%d",&n);

2021-03-24 19:24:50 57

原创 CSP2019-12回收站选址

CSP2019-12(二)回收站选址代码如下:#include <iostream>#include <cstdio>#include <algorithm>typedef long long LL;using namespace std;struct point { int x; int y;}trash[1010];bool judge1(int x,int y,int n){ for(int i=0;i<n;i++){

2021-03-24 16:00:50 58

原创 CSP2019-12报数

2010-12(一)报数代码如下:#include <iostream>#include <cstdio>typedef long long LL;using namespace std;bool judge(int num){//判断num中是否含有7 while(num!=0){ if(num%10==7){ return true;//num中含有7 } num=num/10;

2021-03-24 11:21:55 308

原创 csp2020-06稀疏向量map解法

CSP2020-06(二)稀疏向量考虑稀疏矩阵的长度不确定性,用map(或者vector)来存放。代码如下:#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>#include <map>typedef long long LL;using namespace std;int main(){ map<int,int&

2021-03-24 10:32:09 162

原创 CSP2020-6-线性分类器

CSP认证2020-6(一)线性分类器解法,代码如下下面展示一些 内联代码片。#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>using namespace std;struct point{ int x; int y; char c=' ';}A[1010];int judge(int a,int b,int z,i

2021-03-24 09:35:26 223

原创 c/c++数组的应用-——杨辉三角

两个一维数组实现杨辉三角代码如下#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main(){ int s[10];//创建两个数组 int q[10]; memset(s,0,sizeof(s)); memset(q,0,sizeof(q)); q[0]=1; s[0]=1; int lay=

2021-03-17 19:55:38 437

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除