摘要: #include<iostream>#include<vector>#include<map>#include<cstring>using namespace std;typedef pair<int,int> Elem;int num;//编号 map<string,int > ID ;//字符串 阅读全文
posted @ 2019-05-28 22:22 ACM-Lxw 阅读(74) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<vector>#include<queue>#include<set>using namespace std;typedef long long ll;const int a[3]={2,3,5};int main(){ priority_que 阅读全文
posted @ 2019-05-27 20:02 ACM-Lxw 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<queue>#include<map>#include<cstring>using namespace std;const int maxn=1000+10;int main(){ int t,kase=0,x; while(scanf("%d" 阅读全文
posted @ 2019-05-27 19:43 ACM-Lxw 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<set>#include<vector>#include<map>#include<algorithm>#include<stack>#include<cstring>#define ALL(x) x.begin(),x.end()#define 阅读全文
posted @ 2019-05-26 23:21 ACM-Lxw 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>#include<vector>#include<map>#include<algorithm>using namespace std;map<string,int>cnt;vector<string>words;string re 阅读全文
posted @ 2019-05-26 19:05 ACM-Lxw 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 利用set集合的特性保存单词即可。 #include<iostream>#include<set>#include<sstream>#include<string>using namespace std;set<string> t;int main(){ string s,ch; while(cin 阅读全文
posted @ 2019-05-22 20:15 ACM-Lxw 阅读(219) 评论(1) 推荐(0) 编辑
摘要: #include<iostream>#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>#include<cmath>#include<vector>using namespace std;const int ma 阅读全文
posted @ 2019-05-22 19:49 ACM-Lxw 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 输入正整数n 以及n 个文件名,排序后按列优先的方式左对齐输出。假设最长文件名有M 字符,则最右边有M字符,其他列都是M+2 字符。 #include<iostream>#include<algorithm>#include<string>using namespace std;const int 阅读全文
posted @ 2019-05-22 15:26 ACM-Lxw 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<algorithm>using namespace std;struct node { double x; double y;};node a,b,c,d;node p1[1005],p2[1005];bool pd(node a,node b, 阅读全文
posted @ 2019-05-22 14:21 ACM-Lxw 阅读(477) 评论(0) 推荐(0) 编辑