一边写草稿一边做题吧。要看题解的往下翻,或者是旁边的导航跳一下。 草稿 因为可以开展贸易活动的条件是存在一种通用语 \(L\) 满足 \(u_i\) 到 \(v_i\) 的最短路径上都会 \(L\) 。所以我们考虑能够带来贡献的,只有同一次传教。 但是很有可能在进行当前这一次传教过程中,中间的两座城 ...
分类:
编程语言 时间:
2020-11-23 12:39:51
阅读次数:
19
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace odds { class Program { s ...
分类:
编程语言 时间:
2020-11-23 12:16:41
阅读次数:
8
string方法的一些函数作用 2.继承演示 -子类 using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1 { /// <summary> /// 胡萝卜类:继承与蔬菜类。在这 ...
写在前面 最近开始刷CF,今天第一次补完完整的一套CF,总结一下吧,发现做过的题不赶紧总结写题解就容易忘了。 立个flag 争取每天更新一篇CF题解 A. Boring Apartments 模拟题,模拟就完了 #include<bits/stdc++.h> using namespace std; ...
分类:
其他好文 时间:
2020-11-21 12:44:54
阅读次数:
33
比赛链接:https://codeforces.com/contest/1440 A. Buy the String 题解 枚举字符串中 $0$ 或 $1$ 的个数即可。 代码 #include <bits/stdc++.h> using namespace std; int main() { io ...
分类:
其他好文 时间:
2020-11-21 12:41:54
阅读次数:
32
@(C++内联函数) #include <iostream> using namespace std; inline int Max(int a, int b) { if (a > b) return a; else return b; } int main() { cout << Max(23, ...
分类:
编程语言 时间:
2020-11-21 12:39:21
阅读次数:
17
###P3899 [湖南集训]谈笑风生 二维数点问题,主席树模板(两种写法 #include<bits/stdc++.h> #define IL inline #define LL long long #define pb push_back using namespace std; const i ...
分类:
其他好文 时间:
2020-11-21 12:15:18
阅读次数:
7
cf gym 链接 A. Kick Start 简单签到题。 code: #include<bits/stdc++.h> #define pi pair<int,int> #define f first #define s second using namespace std; const stri ...
分类:
其他好文 时间:
2020-11-21 11:48:03
阅读次数:
4
kube-system:是 namespace 名称 1、查看命名空间 kubectl get all -n kube-system 2、删除deployment(先删除deployment,删除后replicaset.apps 和 pod 自动就被删除了) kubectl delete deplo ...
分类:
其他好文 时间:
2020-11-21 11:45:05
阅读次数:
4
什么是Docker? Docker是由dotcloud公司使用golang语言进行开发的,基于Linux内核的 cgroup,namespace,以及OverlayFS类的Union FS等技术,对进程进行封装隔离,属于操作系统层面的虚拟化技术。由于隔离的进程独立于宿主和其它的隔离的进程,因此也称其 ...
分类:
其他好文 时间:
2020-11-20 12:22:59
阅读次数:
27