上一页 1 2 3 4 5 6 7 8 9 10 ··· 46 下一页
摘要: #include#include#includeusing namespace std;struct cmp{ bool operator () ( int r , int l ){ ... 阅读全文
posted @ 2019-07-30 16:37 eason99 阅读(1966) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;struct cmp{ bool operator () ( int r , int l ){ ... 阅读全文
posted @ 2019-07-30 16:37 eason99 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1140/problem/C#includeusing namespace std;#define ls rt>1; ll tmp=0; ... 阅读全文
posted @ 2019-07-30 14:38 eason99 阅读(120) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1140/problem/C#includeusing namespace std;#define ls rt>1; ll tmp=0; ... 阅读全文
posted @ 2019-07-30 14:38 eason99 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 判断正方形方法:三个条件同时满足(1:四条边相等,2:边不为0,3:有一个直角)判断矩形的话就是条件1变为有2对边相等 #include #include #include using namespace ... 阅读全文
posted @ 2019-07-30 10:43 eason99 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 判断正方形方法:三个条件同时满足(1:四条边相等,2:边不为0,3:有一个直角)判断矩形的话就是条件1变为有2对边相等 #include #include #include using namespace ... 阅读全文
posted @ 2019-07-30 10:43 eason99 阅读(971) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/946/对操作顺序执行的话,会出现递归调用的情况,这样的话复杂度起码是m^2了,所以考虑把操作离线,然后逆序执行,这样的话已经执行过的就不会... 阅读全文
posted @ 2019-07-26 15:30 eason99 阅读(75) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/946/对操作顺序执行的话,会出现递归调用的情况,这样的话复杂度起码是m^2了,所以考虑把操作离线,然后逆序执行,这样的话已经执行过的就不会... 阅读全文
posted @ 2019-07-26 15:30 eason99 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 今天才知道可以在multiset里自带了lowbound和uppbound函数,而且用起来比三个参数的要快,multiset和set区别就是可以放重复元素,用迭代器删只会删指定的那一个,按数值删会把该值全删了... 阅读全文
posted @ 2019-07-24 11:09 eason99 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 今天才知道可以在multiset里自带了lowbound和uppbound函数,而且用起来比三个参数的要快,multiset和set区别就是可以放重复元素,用迭代器删只会删指定的那一个,按数值删会把该值全删了... 阅读全文
posted @ 2019-07-24 11:09 eason99 阅读(65) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 46 下一页