把一个pair里的values变成一个数组,然后k-v1 k-v2... 如果是mapValues会输出:【对比区别】 (mobin,List(22, male))(kpop,List(20, male))(lufei,List(23, male)) ...
分类:
其他好文 时间:
2019-08-11 13:37:25
阅读次数:
207
是cf933C的升级版。 平面图欧拉定理。over! f=e v+c+1 c是联通块,相交才视为一块。 e是圆弧数,v是顶点数。 c++ include define pii pair define mp make_pair define fi first define se second defi ...
分类:
其他好文 时间:
2019-08-09 23:50:44
阅读次数:
112
今天是这几天考试中唯一一次发挥正常一点儿的... T1:https://www.luogu.org/problem/T93119 这么小的数据,O(n^3)暴力就行 而我非常愚蠢加个二分,一样可以过 #include<cstdio> #include<iostream> #include<algor ...
分类:
其他好文 时间:
2019-08-09 21:48:33
阅读次数:
63
题目链接:https://codeforc.es/contest/1202/problem/B 题意: 给你一串数,问你插入最少多少数可以使x-y型机器(每次+x或+y的机器,机器每次只取最低位--%10)产生这个子序列。 解: 这题真的是。。。唉我真的,还是怪自己太弱吧,比如08888,8和前一个 ...
分类:
其他好文 时间:
2019-08-09 13:27:31
阅读次数:
227
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=6089 题解 这波强行维护搞得我很懵逼。。。 扫描线,只考虑每个点能走到左上方(不包括正上方,但包括正左方)的哪些点,然后旋转四次坐标系处理 所有询问和操作点按照先$x$后$y$坐标的顺序排序,然后枚举每 ...
分类:
其他好文 时间:
2019-08-06 13:55:05
阅读次数:
101
A. Detective Book 模拟题,有一些细节需要注意。 cpp include include include include include using namespace std; typedef pair PII; typedef long long LL; const int N ...
分类:
其他好文 时间:
2019-08-05 14:22:31
阅读次数:
105
https://leetcode.com/problems/generate-parentheses/ Medium Medium Medium Given n pairs of parentheses, write a function to generate all combinations o ...
分类:
其他好文 时间:
2019-08-04 19:39:29
阅读次数:
95
#include //CLOCKS_PER_SEC #define se second #define fi first #define ll long long #define Pii pair #define Pli pair #define ull unsigned long long #de... ...
分类:
其他好文 时间:
2019-08-03 21:43:35
阅读次数:
81
P3358 最长k可重区间集问题 "题目链接" cpp include using namespace std; typedef pair P; struct edge { int to, cap, cost, rev; edge(int a, int b, int c, int d) : to(a ...
分类:
其他好文 时间:
2019-08-03 00:15:09
阅读次数:
80