题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 100010, M = N << 1; int n, m; int h[N] ...
分类:
其他好文 时间:
2021-06-02 15:30:41
阅读次数:
0
####需求,当符合条件1 修改 A表 或 新增 A表 oracle 写法 语法: merge into 目标表 a using 源表 b on(a.条件字段1=b.条件字段1 and a.条件字段2=b.条件字段2 ……) when matched then update set a.更新字段=b ...
分类:
数据库 时间:
2021-06-02 14:37:34
阅读次数:
0
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Reflection; using System.Collections; using System. ...
今天遇见一个诡异的事情,我用FileStream操作一个文件的时候,明明设置了FileAccess.ReadWrite, FileShare.ReadWrite了,但是依然报错,说是“流不可写” 后来仔细一研究才发现,原来是我用的不对,我是在FileStream里面先用了BinaryReader,然 ...
分类:
数据库 时间:
2021-06-02 14:10:45
阅读次数:
0
考虑每个点它能到达的点的集合,可以发现是个 \(V\) 字形的图案,因为每个点第一步只有 \(2\) 种选择。 然后暴力就是用单调栈求出每个点的两条出边后 \(bfs\) 一遍即可。 设 \(C...D\) 段最高的高度为 \(mx\),若 \(B...C-1\) 有比它高的则无解。 \(A...B ...
dui界面基于 https://github.com/dingyuanhong/dui_ffplay/ extern "C" { #include "common.h" //ff相关 } #include <Windows.h> #include "../DuiLib/UIlib.h" using ...
一、mysql的安装 1,安装环境:centos 7.4 ,MySQL安装包:mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar ,两台服务器的IP分别为:192.168.112.129 ;192.168.112.130 分别安装下MySQL 2,解压MySQL的安装包 ...
分类:
数据库 时间:
2021-06-02 13:16:45
阅读次数:
0
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
原题链接 题意:每次加一个数,要求最小 $\sum max_ - min_, 题解:本来以为就是纯贪心,然后发现竟然是区间dp,就是先排完序,然后就加入然后取 \(min\)。 代码: #include <iostream> #include <bits/stdc++.h> using namesp ...
分类:
其他好文 时间:
2021-06-02 13:04:14
阅读次数:
0
这题很妙。 多去完成这种级别的题目,建模能力才会真正得到提高。 题解干完springboot活补。 #include<bits/stdc++.h> using namespace std; inline int read() { int x=0,f=1;char c=getchar(); while ...
分类:
其他好文 时间:
2021-06-02 12:02:18
阅读次数:
0