摘要: #include<iostream> #include<cstdio> #include<map> #include<set> #include<string> #include<algorithm> #include<vector> using namespace std; vector<stri 阅读全文
posted @ 2020-12-04 20:16 hulian425 阅读(65) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<map> #include<set> #include<algorithm> #include<vector> using namespace std; int cnt; map<string,int> ma1 阅读全文
posted @ 2020-12-04 14:48 hulian425 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1. 并查集找父亲用find()函数,不能直接访问fa[]数组 2.关系数量不代表节点数量,这个要注意 阅读全文
posted @ 2020-12-04 14:46 hulian425 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1.打开Dev-C++,在菜单栏上选择【工具[T]】-【编译选项[C]】 2.在打开的窗口中,将【编译时加入一下命令】选中√,并加入以下语句 -std=c++11 1 3.这样,你的Dev-C++就可以支持C++11了 4.若g++要运用于其他环境,请重启设备 阅读全文
posted @ 2020-12-04 13:12 hulian425 阅读(1111) 评论(0) 推荐(0) 编辑