随笔分类 -  PAT

A1042
摘要:#include<iostream> #include<vector> using namespace std; int main(){ int n,temp; vector<int>v; cin>>n; for(int i=0;i<54;i++){ cin>>temp; v.push_back(t 阅读全文

posted @ 2020-02-01 10:58 妄想症T 阅读(186) 评论(0) 推荐(0)

A1038
摘要:在开始必须膜拜柳神 bool cmp(string a,string b){ return a+b<b+a; } 真的长见识了,sort函数还有这样用的。膜 #include<iostream> #include<vector> #include<algorithm> #include<map> u 阅读全文

posted @ 2020-01-31 14:49 妄想症T 阅读(148) 评论(0) 推荐(0)

A1034
摘要:#include<iostream> #include<map> #include<set> #include<vector> //研究一下stringToInt using namespace std; map<string,int>stringToInt; map<string,int>time 阅读全文

posted @ 2020-01-30 17:24 妄想症T 阅读(150) 评论(0) 推荐(0)

A1022
摘要:#include<iostream> #include<vector> #include <string> #include <set> using namespace std; struct book{ int ID; string title; string author; vector<str 阅读全文

posted @ 2020-01-27 15:51 妄想症T 阅读(180) 评论(0) 推荐(0)

A1010
摘要:#include<iostream> #include<cstdio> #include<cctype> #include<math.h> #include <algorithm> using namespace std; long long loop(string s,long long min, 阅读全文

posted @ 2020-01-15 08:46 妄想症T 阅读(400) 评论(0) 推荐(0)

导航