自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【CCF CSP历年考试带注释全题解 C++版 总目录】

写在前面:之前开这个专栏的时候信誓旦旦要把历年考试全题解写出来,结果写了三道题就弃坑了,一直到现在准备报考9月13号的第二十次CCF计算机软件能力认证,决定再把坑补回来。很高兴看到有一个小伙伴说自己看不懂代码,没想到真的会有人认真看,故此,这次我会好好做注释,争取用最简单直白的语言把每一道题讲好。数了一下总共是100题,还剩一个月,每天写几道应该不成问题,希望和各位小伙伴们共同进步!202006:...

2020-08-15 00:24:12 857

原创 【CCF CSP历年考试带注释全题解 C++版】202006-3 Markdown渲染器

#include <iostream>#include <string>using namespace std;const int EMPTY = 0; //标识空行const int PARAGRAPH = 1; //标识段落const int LIST = 2; //标识列表const int EX_LIST = 3; //标识扩展列表int calculate_num_of_lines(string &str, int width) { //计算...

2020-08-18 12:01:01 753 1

原创 【CCF CSP历年考试带注释全题解 C++版】202006-2 稀疏向量

#include <iostream>#include <vector>using namespace std;int main() { int n, a, b; cin >> n >> a >> b; vector<pair<int, int>> u; //实际上只需要记录一个向量 int index, value; //由于后面反复输入,放在外面省去每次处理空间的时间 for (int i =...

2020-08-17 12:53:57 571

原创 【CCF CSP历年考试带注释全题解 C++版】201912-4 区块链

#

2020-08-15 16:25:40 410

原创 【CCF CSP历年考试带注释全题解 C++版】202006-1 线性分类器

#include <iostream>#include <vector>using namespace std;int sign(pair<int, int> point, vector<int> para) { //方便直接输出函数正负号 int value = para[0] + point.first * para[1] + point.second * para[2]; return value > 0 ? 1 : (value...

2020-08-14 23:57:16 381

原创 【CCF CSP历年考试带注释全题解 C++版】201912-3 化学方程式

#include <iostream>#include <unordered_map>using namespace std;unordered_map<string, int> record;int count = 0;bool recursion(string cur, bool add, int time);int main() {...

2020-03-04 19:06:05 680 3

原创 【CCF CSP历年考试带注释全题解 C++版】201912-2 回收站选址

#include <iostream>#include <vector>#include <cmath>using namespace std;int main() { int n; cin >> n; vector<vector<int>> bin(n, vector<int>(2)); ...

2020-03-04 17:20:06 618

原创 【CCF CSP历年考试带注释全题解 C++版】201912-1 报数

#include <iostream>using namespace std;bool has_seven(int n) { if (n % 7 == 0) return true; while (n != 0) { if (n % 10 == 7) return true; n /= 10; } return false;}int main() ...

2020-03-04 17:12:33 405

空空如也

空空如也

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

TA关注的人

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