https://www.cnblogs.com/yeungchie/ CentOS6 已经停更了,但由于某些原因还得接着用着,找到几个暂时还能用的 yum 源 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.r ...
分类:
系统相关 时间:
2021-02-20 12:38:48
阅读次数:
0
//出发器 ALTER trigger [dbo].[trsx] on [dbo].[T1] for insert as BEGIN DECLARE @URL VARCHAR(1000) set @URL='http://192.168.1.xx/api/blade-meal/meal/menu/g ...
分类:
数据库 时间:
2021-02-20 12:17:00
阅读次数:
0
##\(\text{Solution}\) 我们设 \(dp_i\) 表示编号为 \(i\) 的节点到达该树叶子节点的最小花费,那么显然我们有以下的转移方程: \(dp_i=\begin{cases}0&i \text{ is leaf}\\\min\limits_{j \in child_s}\l ...
分类:
其他好文 时间:
2021-02-17 14:47:56
阅读次数:
0
比赛地址:这里 T1: 根据题意,符合题目要求的只有两种字符串:0101010…或1010101…,因此,我们可以直接构造这两种字符串并比较与原串的差异即可。 附上代码: class Solution { public: int minOperations(string s) { int len = ...
分类:
其他好文 时间:
2021-02-17 14:32:43
阅读次数:
0
A - Favorite Sound #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 5; typedef long long LL; int main(){ int a, b, c; cin >> a >> b >> ...
分类:
其他好文 时间:
2021-02-16 12:44:42
阅读次数:
0
地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805502658068480 主要是模拟 题意比较绕。 题目大意是 接受各个学生的三门成绩 C M E, 然后四舍五入计算出平均成绩A 在 接受询问的学生的id后 打印 ...
分类:
其他好文 时间:
2021-02-16 11:53:57
阅读次数:
0
注意不满$4$位的话要补成$4$位。 string s; set<int> S; int main() { cin>>s; while(s.size()<4) s='0'+s; while(true) { sort(s.begin(),s.end(),greater<char>()); string ...
分类:
其他好文 时间:
2021-02-15 12:21:49
阅读次数:
0
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
#creation:2021-02-02#Define variabledate=`date +%Y%m%d`basedir=/data2/backup#Create cd $basedirmkdir rmanbak0_$date#delete expire document#find $based ...
分类:
其他好文 时间:
2021-02-09 11:53:37
阅读次数:
0
leetcode打卡 题面 class Solution { public: bool checkPossibility(vector<int> &nums) { int n = nums.size(); for (int i = 0; i < n - 1; ++i) { int x = nums[ ...
分类:
其他好文 时间:
2021-02-08 12:11:43
阅读次数:
0