摘要: 利用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) 编辑