自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 关于左值右值的定义

左值:指向内存的位置(可以看作是指针类型变量)右值:是存储在内存中某些地址的数值,是不可被改变的常量

2020-11-11 09:21:47 94

原创 PAT 1121 Damn Single

#include <iostream>#include <vector>#include <map>#include <set>using namespace std;map<string,string> st1;set<string> ans;set<string> tt;int main()...

2020-03-31 15:45:37 79

原创 PAT1106DFS为什么会有段错误呢

#include <iostream>#include <vector>#include <cmath>#include <algorithm>using namespace std;int cnt = 0;int minth = 99999;struct NODE{ int id; vector<int>...

2020-03-29 00:20:53 160

原创 PAT1102用笨办法解翻转二叉树

#include <iostream>#include <string>#include <vector>#include <algorithm>#include <queue>using namespace std;struct node{ int id,l,r;}a[100];int root = 0;bo...

2020-03-28 19:17:17 92

原创 PAT1092字符比较类

#include <iostream>#include <string>using namespace std;int main(){ string a,b; cin >> a; cin >> b; int lena = a.length(); int tempa = lena; int le...

2020-03-27 19:54:36 124

原创 PAT 1047 用set的自动排序有一组超时,还得用二维数组和然后比较字典序自己排序

#include <iostream>#include <set>#include <string>using namespace std;int main(){ int n,m; cin >>n>>m; set<string> s[m]; for(int i=0;i<n;i...

2020-03-23 15:20:28 105

原创 PAT1039为什么有一组超时数据呢

#include <iostream>#include <vector>#include <algorithm>#include <map>#include <set>using namespace std;map<string,set<int>> tt;vector<string> s...

2020-03-22 15:51:06 159

原创 PAT甲级1036 记录关于sort函数报错问题,太粗心了

如果是结构体类型的STL容器,用sort排序必须带上cmp函数不然报错。。 #include <iostream>#include <algorithm>#include <vector>#include <cmath>using namespace std;typedef struct Node{ string ...

2020-03-21 22:14:25 180

原创 PAT 1029

这个好像比柳婼大神的简单些#include <iostream>#include <algorithm>#include <cstring>using namespace std;int a1[2000005];int main(){ int n,m; cin >> n; for(int i = 0;i&lt...

2020-03-21 12:53:44 50

原创 1082 射击比赛 (20分)

简单一遍对#include <vector>#include <algorithm>#include <iostream>#include <map>using namespace std;int main(){ int n; cin >> n; getchar(); int name[100...

2020-03-08 22:58:47 57

空空如也

空空如也

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

TA关注的人

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