码迷,mamicode.com
首页 >  
搜索关键字:network namespace    ( 53294个结果)
Raspberry Pi 4B + Ubuntu 20.04 server for arm64 的wifi配置
1、查看网口 ip a 看到 eth0 lo wlan0等 2、进入 /etc/netplan/ ,复制备份内部现存的*.yaml文件,编辑原文件 network: version: 2 ethernets: eth0: optional: true dhcp4: true wifis: wlan0 ...
分类:Web程序   时间:2020-10-08 18:17:42    阅读次数:27
【模板】AC自动机(二次加强版)
模板 \(Problem:\) 求 \(n\) 个模式串在文本串中出现的次数 \(templete:\) \(Luogu5357\) \(Code\) #include<cstdio> #include<cstring> using namespace std; const int N = 2e5 ...
分类:其他好文   时间:2020-10-08 18:13:37    阅读次数:17
P1217 [USACO1.5]回文质数 Prime Palindromes
先按照题目提示把回文数搞出来,然后挨个判断素数即可。 #include<iostream> #include<set> using namespace std; set<int> s; int a[10]; int m, n; int check(int t){ for(int i = 2; i < ...
分类:其他好文   时间:2020-10-07 21:26:21    阅读次数:27
poi 1182
食物链 || 带权并查集 #include <cstdio> using namespace std; const int maxn=5e4+3; int f[maxn], w[maxn]; void init(int n) { for(int i = 1; i <= n; ++i) f[i] = ...
分类:其他好文   时间:2020-10-07 21:22:07    阅读次数:29
2019-2020 ICPC Northwestern European Regional Programming Contest (NWERC 2019)
2019-2020 ICPC Northwestern European Regional Programming Contest (NWERC 2019) I-Inverted Deck #include<bits/stdc++.h> using namespace std; const int ...
分类:其他好文   时间:2020-10-07 20:36:52    阅读次数:20
1360 奇怪的电梯(lift)
#include<bits/stdc++.h> using namespace std; struct dt{ int cs,bs; }que[210]; int n,a,b,ans=-1; int yd[205]; int book[205]; int f,r; bool fs=false; vo ...
分类:其他好文   时间:2020-10-07 20:27:24    阅读次数:30
2020.09.27省赛模拟补题
ZOJ-4123 Happy Equation 链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827370518 题意:求x∈{1,2,.....,2^p}使得a^x≡x^a(mod 2^p),满足的x个数为多少个。 分析: ...
分类:其他好文   时间:2020-10-06 20:47:21    阅读次数:25
CF995D Game
Solution 我们考虑在第 \(i\) 步时,如果此时是 \(Allen\) ,他会将 \(x_s=t\) ( $0\leq s\leq n,0\leq t\leq 1$ ),此时的 \(v_{s,t}\) 为最大,那么 \(v_{v,1-t}\) 就是最小的,也就是 \(Bessie\) 所做 ...
分类:其他好文   时间:2020-10-06 20:44:34    阅读次数:29
CF1424G Years
Solution 这个题意思很显然,是求 \(n\) 个区间重叠最多的地方和值。 那么我们能想到用差分数组,在扫一遍的过程中维护最大值和 \(pos\) 。 但是需要注意的是,区间最大会到 $10^9$ ,直接差分是不行的,我们需要先对所有 \(b\) 和 \(d\) 进行离散化,然后再去差分。 代 ...
分类:其他好文   时间:2020-10-06 20:44:06    阅读次数:25
P1550 [USACO08OCT]Watering Hole G
Miku 我们只需要一个额外的点代表水库 #include<iostream> #include<cstdio> #include<algorithm> using namespace std; int head[400]; int n; int w[400]; int x,y,z; struct ...
分类:其他好文   时间:2020-10-06 20:27:46    阅读次数:26
共53294条   上一页 1 ... 81 82 83 84 85 ... 5330 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!