![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
less_than_one
这个作者很懒,什么都没留下…
展开
-
PAT.1014.福尔摩斯的约会 (20)
第一次碰到段错误- -也是涨了见识这道题弄了两天 查了一些答案感觉非常非常膜。。碰到了无数问题和大坑= =长见识+10000086#include <iostream> using namespace std; #define N 61 int main() { int i,j,t; char k,w; char str1[N],str2[N],str3[N]...原创 2018-04-05 14:51:06 · 155 阅读 · 0 评论 -
PAT.1005. 德才论 (25)
看到各种大牛用了各种方法- -好厉害顺便科普了宏是什么= =虽然实践的并不是很好- -vector的用法:#include <vector> vector<int>test;//建立一个空的vector test.push_back(1); test.push_back(2);//把1和2压入vector,这样test[0]就是1,test[1]就是2 //或者说将一个值...原创 2018-04-08 00:32:02 · 126 阅读 · 0 评论 -
开始学习cpp——the first day of pat
看了看cpp的语法感觉和C很像,加上最近学习数据结构,看了很多C和CPP混用的代码,感觉还算得心应手。故有了学习cpp的打算。上手一门语言最快的就是用它来写东西,然而鉴于之前上来就写项目发现啥都不会导致了很深的挫败感- -……这次吸取教训,打算先把PAT乙级刷一遍。没学会走就想跑的行为都是耍流氓- -。。1011. A+B和C #include <iostream> using nam...原创 2018-03-26 00:27:35 · 139 阅读 · 0 评论 -
PAT.1013. 数素数(20)
做了一晚上真的心好累。。就一个错误怎么都过不去。。。。#include <iostream> #include <math.h> using namespace std; int main() { int m,n; int i,j,counter=2,flag=1; cin>>m>>n; if(m==1) ...原创 2018-03-27 23:27:46 · 172 阅读 · 1 评论