本题解与Luogu同步 Solution 考虑,若出现过就$+1$,便是最优答案。 因为右边$+1$并不会影响左边 记得多组数据归零变量! Code #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> u ...
分类:
其他好文 时间:
2021-01-12 10:34:56
阅读次数:
0
vue项目报错: Cannot read property 'init' of undefined 原因: echarts版本过高 解决: 1、查看package.json中的echarts版本: 结果为5.0 2、终端中输入: npm uninstall echarts 卸载echarts 3、终 ...
分类:
其他好文 时间:
2021-01-11 11:03:02
阅读次数:
0
背景:gitee上下载的开源vue项目,本地部署。执行【npm install】时,报错Error: Can't find Python executable "python", you can set the PYTHON env variable。 解决: 网上提供的一个解决办法:管理员身份打开 ...
分类:
编程语言 时间:
2021-01-11 10:40:56
阅读次数:
0
下面的链接下载对应版本的xdebug. https://xdebug.org/download/historical 源码安装:https://xdebug.org/docs/install#linux Installation From Source Obtain You can download ...
分类:
其他好文 时间:
2021-01-11 10:33:04
阅读次数:
0
In AKS, the absolute maximum number of nodes that a cluster can have depends on a few configurations, including whether the node is in a VM State Set ...
分类:
其他好文 时间:
2021-01-08 11:41:16
阅读次数:
0
这个错误是新重新安装时候经常会遇到的。 本文主要介绍如何修复ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061) 1、登录到安装Mysql的主机,打开cmd命令行工具,执行命令mysql -uroot -p, ...
分类:
数据库 时间:
2021-01-08 10:56:05
阅读次数:
0
package LeetCode_605 /** * 605. Can Place Flowers * https://leetcode.com/problems/can-place-flowers/ * You have a long flowerbed in which some of the ...
分类:
其他好文 时间:
2021-01-07 12:22:39
阅读次数:
0
求满足
* $\forall i \in [0,n-1],a[i] \in [1,10]$
* $\exist \space 0\leq x < y < z < w <= n,\sum_\limits{i=x}^{y-1}=X,\sum_\limits{i=y}^{z-1}=Y,\sum_\limi... ...
分类:
其他好文 时间:
2021-01-05 11:21:55
阅读次数:
0
思路:防御式编程,在收尾都加1个0,这样方便循环 bool canPlaceFlowers(vector<int> &flowerbed, int n) { if (n == 0) return true; if (flowerbed.size() == 0) return false; flowe ...
分类:
其他好文 时间:
2021-01-05 10:57:55
阅读次数:
0
使用数组创建队列 1 #include <stdio.h> 2 #define MAXQUEUE 10 3 4 int queue[MAXQUEUE]; 5 int front = -1; 6 int rear = -1; 7 8 int enqueue(int value) 9 { 10 if(r ...
分类:
其他好文 时间:
2021-01-04 11:36:12
阅读次数:
0