题意:有4种菜,每种菜有n1,n2,n3,n4个,每个菜有一个价格。 需要你每种菜选1个,问最小价格。但1和2、2和3、3和4之间有些菜有1对1的互斥关系,如果有互斥则不能选。 做法:把每两组贪心线性预处理,最后合并即可 #include<bits/stdc++.h> using namespace ...
分类:
其他好文 时间:
2021-02-23 14:09:14
阅读次数:
0
Oracle OCP 19c 认证1Z0-082考试题库(第5题)-CUUG收集整理 5.A database is configured to use automatic undo management with temporary undo enabled. An UPDATE is execu ...
分类:
数据库 时间:
2021-02-23 14:07:10
阅读次数:
0
冗余路径 \(\href{https://www.acwing.com/solution/content/20697/}{边连通分量}\) \(本题是等价于加入最少边是整个图变成边连通分量(没有桥)\) #include <bits/stdc++.h> using namespace std; #d ...
分类:
其他好文 时间:
2021-02-22 12:51:09
阅读次数:
0
Aimee 矩阵加速递推的模板了。 #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #define int long long #define ll long long using names ...
分类:
其他好文 时间:
2021-02-22 12:24:51
阅读次数:
0
A 模拟 B 模拟 C 模拟 #include<bits/stdc++.h> using namespace std; #define SET0(a) memset(a,0,sizeof(a)) #define FOR(i,a,b) for(int i=(a);i<=(b);i++) #define ...
分类:
其他好文 时间:
2021-02-22 12:10:05
阅读次数:
0
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { /* 贪心算法(集 ...
分类:
编程语言 时间:
2021-02-20 12:42:12
阅读次数:
0
从dockerhub里拉取最新版nginx镜像 [root@VM-0-15-centos home]# docker pull nginx Using default tag: latest latest: Pulling from library/nginx 45b42c59be33: Alrea ...
分类:
其他好文 时间:
2021-02-20 12:23:24
阅读次数:
0
一、慢查询日志 -- 是否记录查询日志 show variables like 'slow_query_log'; -- 是否记录未使用索引的查询 show variables like 'log_queries_not_using_indexes'; -- 开启 set GLOBAL log_qu ...
分类:
数据库 时间:
2021-02-20 12:13:00
阅读次数:
0
一、MHA简介和架构 1.1 MHA简介 MHA(Master High Availability Manager and tools for MySQL)目前在MySQL高可用方面是一个相对成熟的解决方案,它是由日本人youshimaton采用Perl语言编写的一个脚本管理工具。MHA是一套优秀的 ...
分类:
数据库 时间:
2021-02-20 11:56:46
阅读次数:
0
#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> a; for(int i=0;i<n;i++) { ...
分类:
其他好文 时间:
2021-02-19 13:54:37
阅读次数:
0