码迷,mamicode.com
首页 >  
搜索关键字:pair    ( 2800个结果
Spark常用的算子总结(3)—— flatMapValues
把一个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
linux文本处理sed、软件包管理、磁盘存储和文件系统
...
分类:系统相关   时间:2019-08-10 17:01:01    阅读次数:197
zoj2589
是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
8.9 Round 1
今天是这几天考试中唯一一次发挥正常一点儿的... T1:https://www.luogu.org/problem/T93119 这么小的数据,O(n^3)暴力就行 而我非常愚蠢加个二分,一样可以过 #include<cstdio> #include<iostream> #include<algor ...
分类:其他好文   时间:2019-08-09 21:48:33    阅读次数:63
(模拟)关于进制的瞎搞---You Are Given a Decimal String...(Educational Codeforces Round 70 (Rated for Div. 2))
题目链接:https://codeforc.es/contest/1202/problem/B 题意: 给你一串数,问你插入最少多少数可以使x-y型机器(每次+x或+y的机器,机器每次只取最低位--%10)产生这个子序列。 解: 这题真的是。。。唉我真的,还是怪自己太弱吧,比如08888,8和前一个 ...
分类:其他好文   时间:2019-08-09 13:27:31    阅读次数:227
HDU 6089 Rikka with Terrorist (线段树)
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=6089 题解 这波强行维护搞得我很懵逼。。。 扫描线,只考虑每个点能走到左上方(不包括正上方,但包括正左方)的哪些点,然后旋转四次坐标系处理 所有询问和操作点按照先$x$后$y$坐标的顺序排序,然后枚举每 ...
分类:其他好文   时间:2019-08-06 13:55:05    阅读次数:101
Codeforces Edu Round 62 A-E
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
Leetcode 22. Generate Parentheses
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可重区间集问题
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
2800条   上一页 1 ... 67 68 69 70 71 ... 280 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!