码迷,mamicode.com
首页 >  
搜索关键字:pair    ( 2800个结果
docker
预备知识 1. veth 主要目的是为了跨Network Namespace之间提供一种类似于Linux进程间通信的技术,所以veth总是成对出现的。veth工作在L2数据链路层,veth pair设备在转发数据包过程中并不篡改数据包的内容。 2. 网络名命空间是用于隔离网络资源。所以通过veth ...
分类:其他好文   时间:2019-10-15 20:50:38    阅读次数:73
httpclient模拟post(applecation/x-www-form-urlencoded方式)请求
http post请求工具类: 请求数据组装: ...
分类:移动开发   时间:2019-10-15 19:22:55    阅读次数:800
20191008,10,12
2019.10.08 T1 20pts 考试时$n^2$写挂,最后也不知道$x$用来干啥。 70pts: $\mathcal{O}(n^2)$, 令 $f_i$ 表示一行和为 $i$ 的方案数。显然 $f_i={m \choose i}x^{m i}y^i$ 令 $g_i$ 表示一行和大于等于 $i ...
分类:其他好文   时间:2019-10-15 10:03:08    阅读次数:49
python学习5
python学习5-一些关于基本数据结构的练习题 ...
分类:编程语言   时间:2019-10-14 22:22:52    阅读次数:126
【2019CCPC秦皇岛:A】Angle Beats 分类讨论 (unordered_map 加 hash)
题意:n个给定点,q个询问点,每次询问给出一个坐标A,问从n中选定两个点B,C,有多少种方案使得ABC是个直角三角形。 思路:直角三角形能想的就那几个,枚举边,枚举顶点,这个题都行,写的枚举顶点的,A点分两种情况,1是直角,2是非直角。防止误差,用分数表示斜率,然后用了map<pair<int,in ...
分类:其他好文   时间:2019-10-14 14:24:08    阅读次数:207
【HDOJ6686】Rikka with Travels(树形DP)
题意:给定一棵n个点,边权为1的树,求有多少个有序数对(l1,l2)使得存在两条互不相交的路径,长度分别为l1和l2 n<=1e5 思路: ...
分类:其他好文   时间:2019-10-13 16:58:07    阅读次数:67
Leetcode-5222 Split a String in Balanced Strings(分割平衡字符串)
1 using namespace std; 2 typedef pair<int,int> P; 3 typedef long long ll; 4 #define _for(i,a,b) for(register int i = (a);i < b;i ++) 5 #define _rep(i,... ...
分类:其他好文   时间:2019-10-13 13:26:35    阅读次数:121
Leetcode-5224 Dice Roll Simulation(掷骰子模拟)
1 typedef pair P; 2 typedef long long ll; 3 #define _for(i,a,b) for(register int i = (a);i b;i --) 5 #define INF 0x3f3f3f3f 6 #define MOD 1000000007 7... ...
分类:其他好文   时间:2019-10-13 13:18:52    阅读次数:445
Leetcode-5223 Queens That Can Attack the King(可以攻击国王的皇后)
1 typedef pair<int,int> P; 2 typedef long long ll; 3 #define _for(i,a,b) for(register int i = (a);i < b;i ++) 4 #define _rep(i,a,b) for(register int i... ...
分类:其他好文   时间:2019-10-13 12:52:23    阅读次数:80
CSP-S模拟题(补几天的坑,62~69)
模拟62 Graph 很显然的一个性质是旅行次数为一个联通块中边数/2向下取整,树DP+贪心走一边DFS即可求出方案 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> P; typedef pair<P,int> D ...
分类:其他好文   时间:2019-10-12 21:03:10    阅读次数:112
2800条   上一页 1 ... 55 56 57 58 59 ... 280 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!