随笔分类 -  stl

摘要:https://vjudge.net/contest/185301#problem/B 用队列记录,set的不重复性来判断 1 //#include<bits/stdc++.h> 2 #include<stdio.h> 3 #include<string.h> 4 #include<math.h> 阅读全文
posted @ 2019-01-29 16:35 XXrl 阅读(308) 评论(0) 推荐(0)
摘要:https://vjudge.net/contest/185301#problem/A 学习了好多新函数,只要关注每个单词的列宽就行了。自动切分太厉害了吧~ 1 #include<iomanip> 2 #include<stdio.h> 3 #include<string.h> 4 #include 阅读全文
posted @ 2019-01-28 16:47 XXrl 阅读(219) 评论(0) 推荐(0)
摘要:唔,第一次参加,掉了好多分。 http://codeforces.com/contest/1104/problem/B 不用考虑太多,string真的好厉害。 1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h> 4 #include 阅读全文
posted @ 2019-01-23 09:43 XXrl 阅读(137) 评论(0) 推荐(0)
摘要:http://codeforces.com/group/w1oiqifZbS/contest/1036/problem/C ①先查找,存入vector(dfs)-->排序(sort)-->二分(lower_bound,upper_bound) 1 #include<stdio.h> 2 #inclu 阅读全文
posted @ 2019-01-22 13:51 XXrl 阅读(156) 评论(0) 推荐(0)
摘要:https://cn.vjudge.net/contest/177260#problem/C stringstream :https://blog.csdn.net/xw20084898/article/details/21939811 学习:http://www.cnblogs.com/yjlbl 阅读全文
posted @ 2019-01-20 16:59 XXrl 阅读(212) 评论(0) 推荐(0)
摘要:http://poj.org/problem?id=1208 晚点仔细看 https://blog.csdn.net/yxz8102/article/details/53098575 1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h 阅读全文
posted @ 2019-01-20 15:26 XXrl 阅读(243) 评论(2) 推荐(1)
摘要:https://vjudge.net/problem/UVA-10474 https://blog.csdn.net/xiyaozhe/article/details/81081344 简单用法 sort(start,end) 默认是升序 实现降序: #include <functional> in 阅读全文
posted @ 2019-01-20 13:05 XXrl 阅读(144) 评论(0) 推荐(0)