roarctf 2019 easy calc

【SQLServer2019管理】事务日志备份策略

查询日志大小: dbcc sqlperf(logspace) go 备份事务日志,之后清理掉3天前的备份,最后的目的是进行日志收缩 收缩的T-SQL语句 USE [infusion] GO DBCC SHRINKFILE (infusion_log,100) GO DBCC SHRINKFILE ( ......
备份 SQLServer 策略 事务 日志

2023年最新!Windows server 2019安装

2023年最新!Windows server 2019安装 导航 目录2023年最新!Windows server 2019安装导航一、下载所需工具二、配置WindowsServer三、进入虚拟机并初始配置四、激活服务器五、遇到的问题 一、下载所需工具 下载VMwareVMware官网下载:http ......
Windows server 2023 2019

【SQLServer2019管理】事务日志收缩

SQL Server日志清理 在数据库使用很久后日志文件会累计的越来越大,如果硬盘空间不足可能会导致宕机。 SQL Server三个恢复模式 sql server数据库提供了三种恢复模式:完整,简单和大容量日志,这些模式决定了sql server如何使用事务日志,如何选择它要记录的操作,以及是否截断 ......
SQLServer 事务 日志 2019

【SQLServer2019备份恢复】查询本身有问题、未正确设置 "ResultSet" 属性、未正确设置参数或未正确建立连接

在SQLServer2019 AlwaysOn节点备份策略失败: 备份数据库(完整) (8502-HIS-SQLAG\HISAG) 备份数据库所在的位置: 本地服务器连接 兼容性级别为 70 (SQL Server 7.0 版)的数据库将被跳过。 数据库: 所有用户数据库 类型: 完整 追加现有 任 ......
quot 备份 SQLServer ResultSet 属性

opencv4.8+vs2019 运行出现一堆[INFO:XXX]信息

前言 Opencv+vs2019搭建成功运行后出现一堆INFO信息,虽说不影响程序运行但是会占据控制台窗口,覆盖正常调试输出 出现时机:在每次需要显示图像时均会出现,如:namedWindow、imshow函数调用时。 一、现象分析 这些不是错,是OpenCV在启动时加载GUI(图形用户界面)后端注 ......
opencv4 opencv 信息 2019 INFO

【HTB】 Devvortex 红队 easy

1、端口扫描 2、网页检测 发现一个表单,查看源代码发现是假表单 可能发现一个自定义域名 3、子域名扫描 gobuster dir -w /usr/share/dirb/wordlists/common.txt -u http://dev.devvortex.htb/ --no-error 4、目录 ......
红队 Devvortex easy HTB

Windows Server 2019 安装 Docker

一、通过PowerShell安装(使用管理员身份运行) # 安装完成后将自动重启,重启后自动继续安装 Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/ ......
Windows Server Docker 2019

【SQLServer2019管理】备份环境包含数据库

恢复报错信息: sp_configure 值 'contained database authentication' 必须设置为 1 才能 创建 包含的数据库。您可能需要使用 RECONFIGURE 设置 value_in_use。 (Microsoft SQL Server,错误: 12824) ......
备份 SQLServer 环境 数据库 数据

P5048 [Ynoi2019 模拟赛] Yuno loves sqrt technology III

题意 给定序列 \(s\),每次询问 \(l, r\) 的区间众数的出现次数。 强制在线。空间:\(62.5MB\)。 Sol 蒲公英卡常卡空间版。 考虑优化那个 \(n \times m\) 的数组。 我们要求 \(l, r\) 之中某个数的个数。 乍一看不好弄,仔细想想就会发现,如果我们知道当前 ......
模拟赛 technology P5048 loves 5048

【题解】LibreOJ #3051「十二省联考 2019」皮配

传送门:https://loj.ac/p/3051 首先,对于这样“少部分个体有特殊要求”的题目,我们先考虑,如果没有任何个体有特殊要求怎么做,然后再考虑怎么加上特殊要求; 对于这道题,如果 $k=0$,即没有学校有不喜欢的导师,那么,设总人数为 $al$,城市 $i$ 的人数和为 $cit_i$、 ......
题解 LibreOJ 3051 2019

VS2019编译PCL1.11.1源码

最近在使用PCL的体素滤波器进行点云降采样时,遇到了 Leaf size is too small for the input dataset 的报错,出于某些原因,并不想简单的增大 Leaf size 来解决这个问题。尝试修改了PCL的源码,但是很可惜,对源码的改动并不能直接应用到我的项目中,于是 ......
源码 2019 11.1 PCL1 PCL

CVE初探之漏洞反弹Shell(CVE-2019-6250)

ZMQ(Zero MessageQueue)是一种基于消息队列得多线程网络库,C++编写,可以使得Socket编程更加简单高效。该编号为CVE-2019-6250的远程执行漏洞,主要出现在ZMQ的核心引擎libzmq(4.2.x以及4.3.1之后的4.3.x)定义的ZMTPv2.0协议中。 ......
漏洞 CVE Shell 2019 6250

leetcode-1662-easy

Check If Two String Arrays are Equivalent 思路一:把第一个数组入队列,然后遍历比较第二个数组 public boolean arrayStringsAreEqual(String[] word1, String[] word2) { Deque<Charac ......
leetcode 1662 easy

leetcode-1732-easy

Find the Highest Altitude 思路一:直接遍历 public int largestAltitude(int[] gain) { int val = 0; int max = val; for (int i : gain) { val += i; max = Math.max( ......
leetcode 1732 easy

leetcode-1646-easy

Get Maximum in Generated Array You are given an integer n. A 0-indexed integer array nums of length n + 1 is generated in the following way: nums[0] = ......
leetcode 1646 easy

leetcode-2169-easy

Count Operations to Obtain Zero You are given two non-negative integers num1 and num2. In one operation, if num1 >= num2, you must subtract num2 from ......
leetcode 2169 easy

leetcode-2180-easy

Count Integers With Even Digit Sum Given a positive integer num, return the number of positive integers less than or equal to num whose digit sums are ......
leetcode 2180 easy

leetcode-1455-easy

Check If a Word Occurs As a Prefix of Any Word in a Sentence Given a sentence that consists of some words separated by a single space, and a searchWor ......
leetcode 1455 easy

leetcode-1464-easy

Maximum Product of Two Elements in an Array Given the array of integers nums, you will choose two different indices i and j of that array. Return the ......
leetcode 1464 easy

leetcode-1512-easy

Number of Good Pairs Given an array of integers nums, return the number of good pairs. A pair (i, j) is called good if nums[i] == nums[j] and i < j. E ......
leetcode 1512 easy

leetcode-1550-easy

Three Consecutive Odds Given an integer array arr, return true if there are three consecutive odd numbers in the array. Otherwise, return false. Examp ......
leetcode 1550 easy

leetcode-1572-easy

Matrix Diagonal Sum Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements on the primary diagona ......
leetcode 1572 easy

CF1824B1 LuoTianyi and the Floating Islands (Easy Version) 题解

题意: 思路: 由于 $ k ∈ [1,3] $ ,分类讨论: 当 $ k = 1 $ 时,有人结点自身即为好结点,每种情况的期望为 $ \frac{1}{n} $ , $ n $ 种情况的期望和为 $ 1 $ 。最终答案即为 $ 1 $ 。 当 $ k = 2 $ 时,$ 2 $ 个有人结点之间的 ......
题解 LuoTianyi Floating Islands Version

C1. Good Subarrays (Easy Version)

思路:我们枚举每一个左端点,对于每一个左端点,寻找最长的满足条件的区间,这个区间长度就是左端点对答案的贡献,可以发现具有单调性,右端点只会前进不会倒退。所以我们两个指针各扫一遍区间就可以。 #include <bits/stdc++.h> #define ls p<<1 #define rs p<< ......
Subarrays Version Good Easy C1

P8679 [蓝桥杯 2019 省 B] 填空问题 题解

P8679 [蓝桥杯 2019 省 B] 填空问题 题解 题目传送门 欢迎大家指出错误并联系这个蒟蒻 更新日志 2023-05-25 21:02 文章完成 2023-05-27 11:34 文章通过审核 2023-06-20 21:03 优化了文章代码格式 试题 A :组队 【解析】 本题是一道经典 ......
蓝桥 题解 问题 P8679 8679

P8684 [蓝桥杯 2019 省 B] 灵能传输 题解

P8684 [蓝桥杯 2019 省 B] 灵能传输 题解 Part 1 提示 题目传送门 欢迎大家指出错误并私信这个蒟蒻 欢迎大家在下方评论区写出自己的疑问(记得 @ 这个蒟蒻) Part 2 更新日志 2023-06-20 21:46 文章完成 2023-07-03 08:57 文章通过审核 20 ......
蓝桥 题解 P8684 8684 2019

C1. Good Subarrays (Easy Version)(推公式找性质)

思路: \[能想到平方是比较特殊的,因为x*x一定是x的倍数也就是说\sqrt[2]{x*x} = {x} \]\[所以需要考虑平法之间的数手模一下样例可以发现 [x^2 ,(x+1)^2)之间是x倍数的有x^2 \]\[x*(x+1), x*(x+2)这三个,所以可以知道平方之间有三个,只要讨论一 ......
公式 Subarrays 性质 Version Good

[Codeforces] CF1753A1 Make Nonzero Sum (easy version)

题目大意 给你一个数组 \([a_1,a_2,...a_n]\) ,其中每一项 \(a_i\) 都为 \(1\) 或 \(-1\) ,你需要构造一个划分 \([l_1,r_1],[l_2,r_2],[l_3,r_3],...[l_k,r_k]\) 使得: 将每一个区间内的数按照以下方法计算出\(s_ ......
Codeforces Nonzero version 1753A 1753

SQLServer2019及SQLServer FC日志收集

日志收集: 1. SQL Server 错误日志 SQL Server 2019: <Data Drive>:\Program Files\Microsoft SQL Server\MSSQL15.<instance name>\MSSQL\Log 以上路径可能根据您的实例名称不同而有所不同。请找到 ......
SQLServer 日志 2019