![](https://img-blog.csdnimg.cn/20200430181605953.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
csp
我的csp题解
Lucy Ling
菜鸟小龙
展开
-
【CSP】201912-2 回收站
思路:第二题就很简单,将判断是否是合格地址和统计四角点数分成两个函数,就可以了。不用vector和struct会更简洁。 代码: #include<iostream> #include<vector> using namespace std; struct Point { int x, y; }; bool judge(Point point, vecto...原创 2020-04-30 18:31:03 · 123 阅读 · 0 评论 -
【CSP】201703-3 markdown
中规中矩的解法。 其中我遇到的坑是:在标题和无序列表中会出现空格(如# aaa bbb ccc,* a bc),如果仅仅用字符串流获取会导致结果出错。因此写了一个gettext函数。 #include<iostream> #include<string> #include<algorithm> #include<sstream> usi...原创 2020-04-30 18:10:34 · 140 阅读 · 0 评论